Hi to all,
i have a RadToolbar and a RadGrid.
By clicking RadToolbarButton (OnClientButtonClicked), i want to go throw RadGrid - Items an check if a RadCombobox have a value or not.
It seems that Javascript is not detected or another problem is located.
Can anybody help me ...?
The Error message is a JavaScript Error "OnClientButtonClicking" is undefine
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
<script type="text/javascript"> |
function OnClientButtonClicking(sender, args) { |
var comandName = args.get_item().get_commandName(); |
if (comandName == "SaveSks") { |
alert('Check RadComboBoxes'); |
return false; |
} |
} |
</script> |
</telerik:RadCodeBlock> |
<table cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed"> |
<tr> |
<td> |
<telerik:RadToolBar Width="100%" |
style="display: block; float: none" |
ID="RadToolBar1" |
Runat="server" |
OnClientButtonClicking="OnClientButtonClicking" |
onbuttonclick="RadToolBar1_ButtonClick"> |
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
<Items> |
<telerik:RadToolBarButton Value="Back" |
ImageUrl="~/Arrow Left.png" |
runat="server" Text="Back"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton |
Value="Save" |
CommandName="SaveSks" |
ImageUrl="~/Save.png" |
runat="server" |
Text="Save"> |
</telerik:RadToolBarButton> |
</Items> |
</telerik:RadToolBar> |
</td> |
</tr> |
<tr> |
<td> |
<telerik:RadGrid ID="Sks" runat="server" GridLines="None" |
AllowMultiRowEdit="True" Width="100%" |
AutoGenerateColumns="False" onitemdatabound="Sks_ItemDataBound"> |
<HeaderContextMenu> |
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
</HeaderContextMenu> |
<ClientSettings AllowDragToGroup="false" AllowColumnsReorder="false" ReorderColumnsOnClient="false" AllowColumnHide="True" AllowRowHide="True"> |
<Scrolling AllowScroll="true" ScrollHeight="280" /> |
</ClientSettings> |
<MasterTableView EditMode="InPlace" runat="server"> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<Columns> |
<telerik:GridBoundColumn DataField="CId" UniqueName="CId" |
Visible="false"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="ON" |
UniqueName="ON" Visible="false"> |
</telerik:GridBoundColumn> |
<telerik:GridDropDownColumn DataField="Pe" HeaderText="" |
UniqueName="Pe" ListTextField="Value" ListValueField="TabIndex"> |
<ItemStyle Width="150px" /> |
</telerik:GridDropDownColumn> |
</Columns> |
</MasterTableView> |
<FilterMenu> |
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
</FilterMenu> |
</telerik:RadGrid> |
</td> |
</tr> |
</table> |
thanks a lot