Hi,
In my current project I have a RadGrid with the following columns:
- Name of type GridBoundColumn
- Email of type GridBoundColumn
- TestEmail of type GridButtonColumn
- Mobile of type GridBoundColumn
- TestSMS of type GridButtonColumn
The web page is available on http://www.gouw.ws/RadGridWithButtons.aspx
Can you please tell me:
1. On each row,
- how to disable the TestEmail button if the Email column is empty, and
- how to disable the TestSMS button if the Mobile column is empty
2. How to process on the code behind when the TestEmail button or TestSMS button is clicked?
The ASPX is given as follows:
Regards,
Herman
In my current project I have a RadGrid with the following columns:
- Name of type GridBoundColumn
- Email of type GridBoundColumn
- TestEmail of type GridButtonColumn
- Mobile of type GridBoundColumn
- TestSMS of type GridButtonColumn
The web page is available on http://www.gouw.ws/RadGridWithButtons.aspx
Can you please tell me:
1. On each row,
- how to disable the TestEmail button if the Email column is empty, and
- how to disable the TestSMS button if the Mobile column is empty
2. How to process on the code behind when the TestEmail button or TestSMS button is clicked?
The ASPX is given as follows:
<
telerik:RadGrid
ID
=
"radGrid"
AutoGenerateColumns
=
"false"
AllowSorting
=
"true"
OnNeedDataSource
=
"radGrid_NeedDataSource"
runat
=
"server"
>
<
ClientSettings
>
<
Scrolling
UseStaticHeaders
=
"true"
/>
</
ClientSettings
>
<
MasterTableView
TableLayout
=
"Fixed"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Name"
DataType
=
"System.String"
HeaderStyle-Width
=
"20%"
HeaderText
=
"Name"
HeaderStyle-HorizontalAlign
=
"Left"
ItemStyle-HorizontalAlign
=
"Left"
AllowSorting
=
"true"
UniqueName
=
"Name"
/>
<
telerik:GridBoundColumn
DataField
=
"Email"
DataType
=
"System.String"
HeaderStyle-Width
=
"20%"
HeaderText
=
"Email"
HeaderStyle-HorizontalAlign
=
"Left"
ItemStyle-HorizontalAlign
=
"Left"
AllowSorting
=
"true"
UniqueName
=
"Email"
/>
<
telerik:GridButtonColumn
ButtonType
=
"PushButton"
Text
=
"Test Email"
HeaderStyle-Width
=
"5%"
HeaderText
=
"Test"
HeaderStyle-HorizontalAlign
=
"Center"
CommandName
=
"TestEmail"
UniqueName
=
"TestEmail"
/>
<
telerik:GridBoundColumn
DataField
=
"Mobile"
DataType
=
"System.String"
HeaderStyle-Width
=
"20%"
HeaderText
=
"Mobile (SMS)"
HeaderStyle-HorizontalAlign
=
"Left"
ItemStyle-HorizontalAlign
=
"Left"
AllowSorting
=
"true"
UniqueName
=
"Mobile"
/>
<
telerik:GridButtonColumn
ButtonType
=
"PushButton"
Text
=
"Test SMS"
HeaderStyle-Width
=
"5%"
HeaderText
=
"Test"
HeaderStyle-HorizontalAlign
=
"Center"
CommandName
=
"TestSMS"
UniqueName
=
"TestSMS"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Regards,
Herman