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
No id tag assign to virtual cell when using custom formatter
12/05/2012
19:23
Avatar
trclark
Member
Members
Forum Posts: 7
Member Since:
12/05/2012
sp_UserOfflineSmall Offline

using 4.3.2 latest download

Assume a colModel fragment as follows

            { name: "LinkType", index: "LinkType", width: 80, editable: true, edittype: "select", formatter: "select",
              editoptions: { value: { "default": "Default", "menu": "Menu", "program": "Program" }, "class": "{required:true,  messages:{required:"Missing Link type"}}" }
            },

            { name: "Link", index: "Link", width: 350, editable: true, edittype: "select",
              formatter: function (cellValue, options, row) {
                var s;
                return "XX";
              }, //formatter:
              editoptions: { value: "", "class": "{required:true,  messages:{required:"Missing Link XXX"}}" }

Then when the table is generrated this is the html fragment

<TD title=Dispatch role=gridcell aria-describedby=tbltblCssLinkList_2_Link>
<SELECT class=editable role=select></SELECT></TD>
<TD style="DISPLAY: none" title=2 role=gridcell aria-describedby=tbltblCssLinkList_2_LinkID>2</TD>

note the missing id tag normally a column is generrated when using a select as

<TD title=Program role=gridcell aria-describedby=tbltblCssLinkList_2_LinkType>
<SELECT id=3_LinkType class='{required:true,  messages:{required:"Missing Link type"}} editable'
role=select size=1 name=LinkType><OPTION role=option value=default>Default</OPTION>
<OPTION role=option value=menu>Menu</OPTION><OPTION role=option selected value=program>Program</OPTION>
</SELECT></TD>

so you end up writing something ugly like in the onEdiRow

  var onEditRow = function (rowID) {

  var oGrid = $("#mygrid");

var el = $(oGrid.selector + " #" + rowID + " [aria-describedby='" + oGrid.selector.substr(1) + "_Link']").children(":first")

}

instead of $("#" + rowID + "_Link") like normal to reference a cell item in edit mode

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
31 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