<
td
id
=
"td_grdRuleList"
align
=
"left"
style
=
"vertical-align: top; width: 700px;"
colspan
=
"2"
>
<
asp:Label
ID
=
"sds"
runat
=
"server"
Height
=
"1px"
></
asp:Label
>
<
div
id
=
"dv_memberAndRule"
runat
=
"server"
style
=
"width: 100%; display: none;"
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock20"
runat
=
"server"
>
<
table
border
=
"0"
>
<
tr
>
<
td
style
=
"width: 500px;"
>
<
telerik:RadMultiPage
runat
=
"server"
ID
=
"RadMultiPage1"
title
=
""
SelectedIndex
=
"0"
CssClass
=
"pageView"
>
<
telerik:RadPageView
ID
=
"RadPageView2"
runat
=
"server"
Height
=
"450"
>
<
table
width
=
"100%"
border
=
"0"
cellpadding
=
"0px"
cellspacing
=
"0px"
class
=
"tblspacer"
>
<
tr
>
<
td
style
=
"width: 100%;"
>
<
div
id ="Mohamed">
<
telerik:radgrid
>
<
telerik:RadAsyncUpload
ID
=
"RadAsyncUpload1"
runat
=
"server"
Skin
=
"Windows7"
FileUploaded
=
"RadAsyncUpload1_FileUploaded"
AllowedFileExtensions
=
"jpg,jpeg,gif,png"
>
</
telerik:RadAsyncUpload
>
<
div
>
Valid image types: JPEG, GIF, PNG.</
div
>
<
hr
/>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Skin
=
"Windows7"
Text
=
"Upload"
OnClick
=
"RadButton1_OnClick"
>
</
telerik:RadButton
>
<
telerik:RadTextBox
ID
=
"DescriptionTextBox"
TextMode
=
"MultiLine"
runat
=
"server"
Width
=
"100%"
Height
=
"150px"
/>
Hello .. I hope someone can help. I have a RadGrid on a Web Form with master page... i need to select a row and capture selected row index in a Label, to use this javascript code:
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function RowSelected(sender, args) {
document.getElementById("<%= Label1.ClientID %>").innerHTML = args.get_itemIndexHierarchical();
}
</
script
>
</
telerik:RadCodeBlock
>
At runtime, in the internet explorer, I can see that Label change to value of Row Selected ... for example: 2, 4, 7, 11 .
However, when I press a button the value of Labelxx.Text is ever "Label", the value really never change. I read many forums and posed a possible solution and that many people have worked is:
1) In the webform.aspx replace the code
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text
=
"Label"
></
asp:Label
>
by this
<
asp:HiddenField
ID
=
"Label1"
runat
=
"server"
/>
2) replace the next line in javascript code:
document.getElementById("<%= Label1.ClientID %>").innerHTML = args.get_itemIndexHierarchical();
by this
document.getElementById('Label1').value = args.get_itemIndexHierarchical();
3) in the Webform.aspx.cs take the value of label with:
string value_row = Label1.value
Curiosly .. this solucion works for me when the Webform.aspx isnot with the masterpage... When Webform.aspx is with MasterPage ... the same code is not working; I checked variables, codes, script and dont working ... nothing :'(
The MasterPage only contain a RadToolBar, a scriptManager and ContentPaceHolder... its all.
The WebForm only contain a RadGrid, native asp Label and native asp button...
any idea why this happens? .. Thanks in advance for your help.
Hello .. I hope someone can help. I have a RadGrid on a Web Form with master page... i need to select a row and capture selected row index in a Label, to use this javascript code:
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function RowSelected(sender, args) {
document.getElementById("<%= Label1.ClientID %>").innerHTML = args.get_itemIndexHierarchical();
}
</
script
>
</
telerik:RadCodeBlock
>
At runtime, in the internet explorer, I can see that Label change to value of Row Selected ... for example: 2, 4, 7, 11 .
However, when I press a button the value of Labelxx.Text is ever "Label", the value really never change. I read many forums and posed a possible solution and that many people have worked is:
1) In the webform.aspx replace the code
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text
=
"Label"
></
asp:Label
>
by this
<
asp:HiddenField
ID
=
"Label1"
runat
=
"server"
/>
2) replace the next line in javascript code:
document.getElementById("<%= Label1.ClientID %>").innerHTML = args.get_itemIndexHierarchical();
by this
document.getElementById('Label1').value = args.get_itemIndexHierarchical();
3) in the Webform.aspx.cs take the value of label with:
string value_row = Label1.value
Curiosly .. this solucion works for me when the Webform.aspx isnot with the masterpage... When Webform.aspx is with MasterPage ... the same code is not working; I checked variables, codes, script and dont working ... nothing :'(
The MasterPage only contain a RadToolBar, a scriptManager and ContentPaceHolder... its all.
The WebForm only contain a RadGrid, native asp Label and native asp button...
any idea why this happens? .. Thanks in advance for your help.