Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
CellEdit not focusing
Tags: CellEdit
11/08/2010
17:23
Avatar
dhruv.shukla
Member
Members
Forum Posts: 10
Member Since:
02/07/2010
sp_UserOfflineSmall Offline

Hello,

I am trying to make a cell editable for a single column. But on that I am able to see the checkbox and not able to focus and change the value. Here are the options which I am submitting and also I am doign sortableRows for this Grid.

                datatype: function() {},
                scroll: false,
                height: 270,
                colNames: ["","People"],
                colModel: [{
                    name: "row1",
                    index: "row1",
                    sortable: false,
                    width: 15,
                    align: 'center'
                }, {
                    name: "row2",
                    index: "row2",
                    sortable: false,
                    width: 190,
                    align: "left",
                    editable:true,
                    edittype:'text'
                    //editoptions: {custom_element: myelem, custom_value: myval}
                }],
                cellEdit: true,
                gridview: true,
                hidegrid: false,
                rowNum: -1,
                cellsubmit: 'clientArray',

As you may see row2 is editable but on editable it doesnt work ... All I see is input box and no keydown event happening on it. Plus this isnt workign with any other browser than FF.

Somebody please help.

Thanks,

Dhruv

11/08/2010
20:41
Avatar
dhruv.shukla
Member
Members
Forum Posts: 10
Member Since:
02/07/2010
sp_UserOfflineSmall Offline

Also Few more things:

this grid resides on UI-Dialog as an overlay... and I guess it has a keydown event which gets fired everytime I hit on grid.

-Dhruv.

11/08/2010
23:01
Avatar
dhruv.shukla
Member
Members
Forum Posts: 10
Member Since:
02/07/2010
sp_UserOfflineSmall Offline

Got the solution but with a warning.

The 'charCode' property of a keydown event should not be used. The value is meaningless.
Solution:
Use edittype: custom.
In the custom element set the input box style to position: relative and z-index higher than that of modal.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
61 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information