RadGrid Postback URL ReWrite

15 posts, 0 answers
  1. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 13 Jan 2011 Link to this post

    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
  2. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 14 Jan 2011 Link to this post

    Is there away of changing the postback url of the paging buttons and sorting buttons to get around this problem? Would that work?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 17 Jan 2011 Link to this post

    Any one have an idea how I can fix this?

    Thanks
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 18 Jan 2011 Link to this post

    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.
  6. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 18 Jan 2011 Link to this post

    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
  7. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 19 Jan 2011 Link to this post

    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.
  8. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 25 Jan 2011 Link to this post

    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
  9. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 28 Jan 2011 Link to this post

    Hi,

    Would it be safe to say that Radgrids can't be used with Helicon or any pages that have been url rewritten?
    Thanks
  10. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 28 Jan 2011 Link to this post

    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.
  11. Ricardo Ferraz
    Ricardo Ferraz avatar
    14 posts
    Member since:
    Sep 2009

    Posted 02 Mar 2011 Link to this post

    i also would like if  i can set as location of client binding a javascript funcion to return a json array.
  12. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 03 Mar 2011 Link to this post

    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!
  13. Ricardo Ferraz
    Ricardo Ferraz avatar
    14 posts
    Member since:
    Sep 2009

    Posted 03 Mar 2011 Link to this post

    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.
  14. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 07 Mar 2011 Link to this post

    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!
  15. Ricardo Ferraz
    Ricardo Ferraz avatar
    14 posts
    Member since:
    Sep 2009

    Posted 07 Mar 2011 Link to this post

    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.
  16. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 10 Mar 2011 Link to this post

    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!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017