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

[Solved] Changing default postback URL for RadGrid

1 Answer 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cranialstrain
Top achievements
Rank 1
Cranialstrain asked on 16 Nov 2009, 09:40 PM
Dear All,

Forgive the newbie question but am stumped trying to find an elegant solution to this.

I have an ASPX page with a RadGrid control working without issue. However upon initial load a QueryString parameter is passed that I want to remove from future postbacks (or any kind); therefore if the page is called as "WebPage1.aspx?MyParam=Test" the postback URL for paging calls/etc needs to have this parameter removed.

Could someone point me in the right direction? I don't want to use Javascript and thought perhaps parsing out the QS in ItemCreated might work, but am struggling to make it cover all calls.

Many thanks!

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 19 Nov 2009, 03:19 PM
Hello Cranialstrain,

Have you considered using explicit Response.Redirect call to the same page on each postback request you initiate after the initial load? Thus you should be able to remove the query string parameter present in the url.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Cranialstrain
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or