I have grid whith 2 columns. Couldm1 - row number and Coulmn 2 "Description"(TextBox) and button next to this description text box. When i click on this button i want to open a radwindow with single Textbox that should get value from the parent page (radgrid Description column) and disply in the radwindow Textbox , also when i change the value in Radwindow Textbox and click "Ok" button in radwindow I need want to the grid to be updated with the values entred. I tried a using javascript. But one issue is we can't send huge data using Quertystring.
"The spec for URL length does not dictate a minimum or maximum URL length, but implementation varies by browser. On Windows: Opera supports ~4050 characters, IE 4.0+ supports exactly 2083 characters, Netscape 3 -> 4.78 support up to 8192 characters before causing errors on shut-down, and Netscape 6 supports ~2000 before causing errors on start-up"
so Is there any other way to achive this ?
please check my existing code for this ..
ASPX code
<telerik:RadGrid ID="grd1" runat="server" AllowPaging="true" PageSize="10" AllowSorting="true"
AutoGenerateColumns="False" GridLines="None" Skin="WebBlue" OnItemDataBound="OnItemDataBoundgrd1" >
<MasterTableView >
<Columns>
<telerik:GridBoundColumn
DataField="ID"
HeaderText="ID"
SortExpression="ID"
UniqueName="ID" AllowSorting="true" />
<telerik:GridBoundColumn
<telerik:GridTemplateColumn HeaderText="Comments" UniqueName="Comments">
<ItemTemplate><asp:TextBox ID="txtDetailDesc" runat="server" TextMode="MultiLine" Columns="90" Text='<%# Eval("Comments") %>'></asp:TextBox>
<asp:Button ID="btnShowfullDescription" runat="server" Text="..." /></ItemTemplate>
</telerik:GridTemplateColumn>
</MasterTableView>
</telerik:RadGrid>
.CS code
protected void OnItemDataBoundgrd1(object sender, GridItemEventArgs e)
{
string strD;
string strDetailDesc;
if (e.Item is GridDataItem)
{
GridDataItem dataItem = e.Item as GridDataItem;
intID = dataItem["ID"].Text.ToString();
PropertyDetailDesc = dataItem["Property"].Text;
TextBox txtDetailDesc = e.Item.FindControl("txtDetailDesc") as TextBox;
strDetailDesc = txtDetailDesc.Text;
LinkButton btnOpenFullDesc = e.Item.FindControl("btnShowfullDescription") as LinkButton;
btnOpenFullDesc.OnClientClick = "return OpenWindow('wndnew','Comments.aspx?" + "ID=" + intID + "&DetailDesc=" + strDetailDesc + "','');";
}
}
Please help . my entire app need this functionality!!!!
Thanks
Anand Kesavan