This is a migrated thread and some comments may be shown as answers.

RadGrid Postback URL ReWrite

14 Answers 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 13 Jan 2011, 11:53 AM
Hi,

I have a Radgrid with paging and sorting enabled on page that uses url rewrite.

My page is called http://mywebsite.com/mypage.aspx but use Helicon rewrite to display the page as http://mywebsite.com/DirName/mypage/

When I click on the page numbers I get 404 can I get around this. I've tried the seo friendly paging and that doesn't work either.

Thanks

14 Answers, 1 is accepted

Sort by
0
Karl
Top achievements
Rank 1
answered on 14 Jan 2011, 12:28 PM
Is there away of changing the postback url of the paging buttons and sorting buttons to get around this problem? Would that work?
0
Karl
Top achievements
Rank 1
answered on 17 Jan 2011, 07:40 PM
Any one have an idea how I can fix this?

Thanks
0
Iana Tsolova
Telerik team
answered on 18 Jan 2011, 12:57 PM
Hello Karl,

Can you try enabling RadGrid SEO paging with routing described here and see how it goes?

Best wishes,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Karl
Top achievements
Rank 1
answered on 18 Jan 2011, 01:19 PM
Hi,

I'm not using ASP.NET 4.0, I'm using ASP.NET 2.0

Is there away to overide the postback url?
Thanks
0
Iana Tsolova
Telerik team
answered on 19 Jan 2011, 04:38 PM
Hi Karl,

Can you try updating to the latest version of the controls - Q3 2010 SP2 and see if it makes any difference when the grid SEO paging is enabled?

All the best,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Karl
Top achievements
Rank 1
answered on 25 Jan 2011, 12:06 PM
Hi,

Sorry about the late reply, I've tried updating and it still doesn't work. I need it to postback to the url I've given it, not the actual pagename.aspx.

Can this be done or can't I use Radgrids with Helicon URL rewrite?

Thanks
0
Karl
Top achievements
Rank 1
answered on 28 Jan 2011, 01:37 PM
Hi,

Would it be safe to say that Radgrids can't be used with Helicon or any pages that have been url rewritten?
Thanks
0
Iana Tsolova
Telerik team
answered on 28 Jan 2011, 01:39 PM
Hi Karl,

I performed further investigation and the suggested solution is to migrate to .NET 4.0 and use SEO paging with routing. Other than this, you might need to disable the SEO paging of RadGrid in order to have your Urls properly rewritten.

Please excuse us for the inconvenience.

All the best,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Ricardo Ferraz
Top achievements
Rank 1
answered on 02 Mar 2011, 06:44 PM
i also would like if  i can set as location of client binding a javascript funcion to return a json array.
0
Sebastian
Telerik team
answered on 03 Mar 2011, 11:41 AM
Hi Ricardo,

For this purpose you can utilize programmatic client-side binding and return the result from your javascript function (json array) manually. Codeless declarative location setting of this type is not supported out-of-the-box.

Best regards,
Sebastian
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Ricardo Ferraz
Top achievements
Rank 1
answered on 03 Mar 2011, 01:19 PM
Yes , i already did , but the paging does not work , i fixed  total registers , using vitualitemcount function , but if i click any button to paging the grid user rewrite url , doing a postback ( firecommand event) , and what i want , the button click event calls oncommand client event , so i can get the command and return the page array as we need to do when use PageMethod or WS.
0
Iana Tsolova
Telerik team
answered on 07 Mar 2011, 01:10 PM
Hello Ricardo,

Can you elaborate a bit more on the issue you are facing and the scenario you are implementing?
If I properly understand, you are binding the grid client-side. In this case the paging should be performed on the client, e.g. you do not need to perform any postback.

Best wishes,
Iana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Ricardo Ferraz
Top achievements
Rank 1
answered on 07 Mar 2011, 04:04 PM
yes , you are right .., i dont need any postpack , i call web service to get array of json objects ( almost 100 objects ) and i want to page using pagesize= 10 ... so .... the standart paging should work without any extra code ... just setting "like " paging on client = true , per example. But i had to implement the command event  on client to alow this simple task ... this should be outofbox resource.
0
Iana Tsolova
Telerik team
answered on 10 Mar 2011, 12:42 PM
Hi Ricardo,

This is supported out-of-the-box when you are using the built-in declarative client-side binding. However when you are binding the grid manually on the client, there should be some indicator that the grid is to be bound on the client but server-side. And this is the OnCommand client-side event handler now.

All the best,
Iana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Karl
Top achievements
Rank 1
Answers by
Karl
Top achievements
Rank 1
Iana Tsolova
Telerik team
Ricardo Ferraz
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or