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_TopicIcon
Subgrid feature not working if id contains special characters
17/05/2010
22:55
Avatar
snark
New Member
Members
Forum Posts: 1
Member Since:
17/05/2010
sp_UserOfflineSmall Offline

Not sure if it has been mentioned anywhere in the docs, so I'm apologizing if this is a duplicate/known issue:

The row ids in my dataset look like this: "a:b:c", where a, b, and c are alphanumeric strings. This works fine with the grid itself, however the subgrid fails to render, even though the row id gets encoded correctly when accessing the subgrid url.

When I removed the ":" sign from ids making it look like "abc", everything started working fine.

18/05/2010
11:01
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thanks.

This is a issue that we know, but you should correct it in your code (suppose you use a subgrid as grid)

    subGridRowExpanded: function(subgrid_id, row_id) {
        var subgrid_table_id, pager_id;
        subgrid_table_id = subgrid_id+"_t";
        pager_id = "p_"+subgrid_table_id;
        $("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='"+pager_id+"' class='scroll'></div>");
        jQuery("#"+jQuery.jgrid.jqID(subgrid_table_id)).jqGrid({
            url:"subgrid.php?q=2&id="+row_id,
            datatype: "xml",
...

More you can find here:

http://docs.jquery.com/Frequen.....otation.3F

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

27/09/2011
13:46
Avatar
bhuvin
New Member
Members
Forum Posts: 2
Member Since:
22/08/2011
sp_UserOfflineSmall Offline

Hey, I am facing the same problem. I am using subgrid as row_ids.

Now i am handling the table id but what happens is that there is a div already created with an unacceptable id .

For eg : if the cell content is : yahoo.com

Now the Subgrid_id is domainWiseReportTbl_yahoo.com

Now with the same id a div is created so even if we handle the table id with jq id still the div is there and it creates a problem there. So this is creating a problem.

I am stuck with this problem. Please help out ....

Thanks in advance

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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