Hi,
Is it possible to open a RadWindow when I click an item on the RadGrid even by adding a link inside? I did have a solution but it reloads the page and its very sloppy.
The way I did it was that I added the following in my aspx:
<telerik:GridHyperLinkColumn DataTextFormatString="Edit Item"
avigateUrlFields="country_id" UniqueName="country_id" DataNavigateUrlFormatString="~/admin/AdmCountries.aspx?edit_id={0}"
HeaderText="Edit Item" DataTextField="country_id" >
</telerik:GridHyperLinkColumn>
then I updated my codebehind's OnPageLoad like this:
So essentially reloading the page with the ID parameter and if it is set then the window is displayed. What I would like instead is not to have a postback, rather displaying the window with a given ID, maybe using AJAX.
I am new to this great product and would like to get the hang of it, please help.
Thanks,
Miklos
Is it possible to open a RadWindow when I click an item on the RadGrid even by adding a link inside? I did have a solution but it reloads the page and its very sloppy.
The way I did it was that I added the following in my aspx:
<telerik:GridHyperLinkColumn DataTextFormatString="Edit Item"
avigateUrlFields="country_id" UniqueName="country_id" DataNavigateUrlFormatString="~/admin/AdmCountries.aspx?edit_id={0}"
HeaderText="Edit Item" DataTextField="country_id" >
</telerik:GridHyperLinkColumn>
then I updated my codebehind's OnPageLoad like this:
string editID = Request.QueryString["edit_id"]; if (editID != null) { RadWindowManager1.Windows[0].VisibleOnPageLoad = true; } else { RadWindowManager1.Windows[0].VisibleOnPageLoad = false; } |
So essentially reloading the page with the ID parameter and if it is set then the window is displayed. What I would like instead is not to have a postback, rather displaying the window with a given ID, maybe using AJAX.
I am new to this great product and would like to get the hang of it, please help.
Thanks,
Miklos