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

Rad Grid RadPageView

1 Answer 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sujata
Top achievements
Rank 1
Sujata asked on 03 Jan 2011, 11:17 AM

How to pass parameter in ContentUrl of RadPageView

Not only Url ContentUrl="http://blogs.telerik.com">

Like

 

ContentUrl

 

=http://blogs.telerik.com?OrderID=>

 

How to give value from Form Control or any other way?

 



 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Jan 2011, 10:57 AM
Hello Sujata,


I hope the RadPageViews are selected based on RadTabStrip selection and want to set url parameter for ContentUrl of pageviews. If so, one suggestion is updating the ContentUrl property from client side in "OnClientTabSelecting" event.

See the client side code:
function OnClientTabSelecting(sender, args) {
    var textBox = document.getElementById("TextBox1");  // Access control
    var url = "Content.aspx?value=" + textBox.value;  // Get the control value
    args.get_tab().get_pageView().set_contentUrl(url);  // Set new url as Contenturl
}


-Shinu.
Tags
Grid
Asked by
Sujata
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or