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
jqGrid in Add/Edit form via custom_element issues HIERARCHY_REQUEST_ERR
04/07/2011
11:34
Avatar
dr Tr0jan
Russia
New Member
Members
Forum Posts: 1
Member Since:
04/07/2011
sp_UserOfflineSmall Offline

I want to create jqGrid in Add/Edit form via column options:

<script>
  function myelem (value, options) {
    var el = document.createElement("table");

    $(el).jqGrid(
    {
      datatype: "local",
      colNames:['','Name'],
      colModel:[
        {name:'id'},
        {name:'name'},
      ]
    });
 
    return el;
  }

  function myvalue(elem, operation, value) {} 

  jQuery("#grid").jqGrid({
    …
    colModel: [ 
      ... 
      {
        name:'items',
        ...,
        editable:true,
        edittype:'custom',
        editoptions:{
          custom_element: myelem,
          custom_value:myvalue}
      },
      ...
    ]
    …
  });
</script> 

But i've encoutered with problem. Browser issues error exception when i'm clicking a add or edit buttons in main (#grid) table:

SCRIPT5022: DOM Exception: HIERARCHY_REQUEST_ERR (3)
jquery-1.5.2.js, line 5148 character 5

If i've processed rendering of form table (  $(el).jqGrid() ) in the custom_value function (myvalue()), the problem are not issuing. But the form table isn't displaying in the Add form in this case.

I can process rendering of form table in beforeShowForm event of Add/Edit form but consider that first solution is more righter than beforeShowForm.

 
Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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