|
| |
Regular
Posts: 51
 
| Posted 2010-03-03 8:08 AM Subject: Problem with gridview sorting & paging
It's a bit strange. When I first load the gridview the sorting and paging links show as "javascript;" after I change to any other page the sorting and paging links look like this: "http://localhost:4647/Contacts/ContactList.aspx?EventSource=ctl00%24ctl00%24ContentBody%24cphBody%24gvContactList%7cPage%243" Does anyone know why this may be happening? I created a simple test gridview and it seams to be ok so I don't know where to look to find out why this gridview and one on another page are doing this. What do I need to look at to see why it's not creating the correct Links? Thanks, JefferyS |
|
| |
| |
Regular
Posts: 51
 
| Posted 2010-03-10 1:01 PM Subject: RE: Problem with gridview sorting & paging
Update: After more testing it seams that any link that is doing a callback is being changed after the first callback. On initial page load the links look like this:
Code snippet: <a id="ctl00_ctl00_ContentBody_cphBody_gvGroupList_ctl02_lbEdit" href="javascript:;" onclick="javascript:EzAnthem.request(this, {eventTarget: 'ctl00$ctl00$ContentBody$cphBody$gvGroupList$ctl02$lbEdit'});">Edit</a> <a id="ctl00_ctl00_ContentBody_cphBody_gvGroupList_ctl02_lbDelete" href="javascript:;" onclick="javascript:EzAnthem.request(this, {eventTarget: 'ctl00$ctl00$ContentBody$cphBody$gvGroupList$ctl02$lbDelete'});">Delete</a></td><td> </td>
| After the first callback sense the page was loaded the links look like this:
Code snippet: <a id="ctl00_ctl00_ContentBody_cphBody_gvGroupList_ctl02_lbUpdate" href="/Contacts/ContactGroupLists.aspx?EventSource=ctl00%24ctl00%24ContentBody%24cphBody%24gvGroupList%24ctl02%24lbUpdate%7c" onclick="javascript:EzAnthem.request(this, {eventTarget: 'ctl00$ctl00$ContentBody$cphBody$gvGroupList$ctl02$lbUpdate'});">Update</a> <a id="ctl00_ctl00_ContentBody_cphBody_gvGroupList_ctl02_lbCancel" href="/Contacts/ContactGroupLists.aspx?EventSource=ctl00%24ctl00%24ContentBody%24cphBody%24gvGroupList%24ctl02%24lbCancel%7c" onclick="javascript:EzAnthem.request(this, {eventTarget: 'ctl00$ctl00$ContentBody$cphBody$gvGroupList$ctl02$lbCancel'});">Cancel</a></td><td>
| Does anyone know why it is not clearing out the href and putting "javascript:;" or where in anthem is it supposed to do that. Thanks, JefferyS |
|
| |
| |

 Ezboxx Founder
Posts: 2707
   
| Posted 2010-03-13 4:57 AM Subject: RE: Problem with gridview sorting & paging
I have some time alloted to me in work this week fir Anthem upgrades. both this grid issue and also the viewstate validation issue you've raised will be addressed this week. for the paging in particular, we'll be adding the paging control support to all of the bound controls, includign the grid, the paging control gives you complete control over the markup and the controls and arguments provided as well as render override options. we have had the ager control support the repeater for the past 6 months or so alreayd, but with the time allocated all the databound controls will get it.
|
|
| |
| |

 Ezboxx Founder
Posts: 2707
   
| Posted 2010-03-18 9:35 AM Subject: RE: Problem with gridview sorting & paging
heya Jeffries, this code was added into anthem to allow support for Linkbuttons when javscript is disabled. however the Anthem.js file removes these links. (i.e whehn js is enabled theres no href and everythign works as per normal. when js is disabled.. the onclick won't work. so the linkbutton then operates as a normal link doing a get but allow the onclick event to still fire. this was a commonly requested feature from some of the studios that use Anthem. what it looks like though is that theres a bug thats not removing the hrefs when html is injected via callbacks. this is simpy fixed though, and i'll update teh js so that the link checker function is executed after callbacks.
|
|
| |
| |

 Ezboxx Founder
Posts: 2707
   
| Posted 2010-03-18 9:45 AM Subject: RE: Problem with gridview sorting & paging
the updated EzAnthem.js file has been checked in to SVN.
|
|
| |
| |
Regular
Posts: 51
 
| Posted 2010-03-20 8:16 AM Subject: RE: Problem with gridview sorting & paging
Thanks Zan, I'll give it a try today. Any progress on the DataKeyNames problem? JefferyS
|
|
| |