Private Sub RadGrid1_DetailTableDataBind(ByVal source As Object, ByVal e As GridDetailTableDataBindEventArgs) Handles RadGrid1.DetailTableDataBind
Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
Select Case e.DetailTableView.Name
Case "Orders"
Dim CustomerID As String = dataItem.GetDataKeyValue("CustomerID").ToString()
e.DetailTableView.DataSource = GetDataTable("SELECT * FROM Orders WHERE CustomerID = '" & CustomerID & "'")
Case "OrderDetails"
Dim OrderID As String = dataItem.GetDataKeyValue("OrderID").ToString()
e.DetailTableView.DataSource = GetDataTable("SELECT * FROM [Order Details] WHERE OrderID = " & OrderID)
End Select
End Sub
Protected Sub RadGrid1_SortCommand1(sender As Object, e As Telerik.Web.UI.GridSortCommandEventArgs) Handles RadGrid1.SortCommand
event I use e.Item.OwnerTableView.DataSource = m_dtSort and e.Item.OwnerTableView.Rebind() to rebind my MasterTable. How do I sort my detail data and rebind?
Thanks
John
<telerik:RadCodeBlock runat="server">
<script language="javascript" type="text/javascript">
function GetMessage(sender, args) {
PageMethods.CompletedCheck();
alert("Hii");
}
</script>
<telerik:RadScriptManager id="RadScriptManager" runat="server"
EnablePageMethods="True">
</telerik:RadScriptManager>
</telerik:RadCodeBlock>
and this function called in CheckBox checked event.. the Following is the Code for CheckBox Control
<telerik:GridTemplateColumn UniqueName="Complete" HeaderText="Completed" AllowFiltering="false">
<ItemTemplate>
<asp:Panel ID="Panel1" runat="server" Width="2px">
<asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="true" onclick="GetMessage()" />
</asp:Panel>
</ItemTemplate>
</telerik:GridTemplateColumn>
and my Code Behind is
<System.Web.Services.WebMethod()> _
Public Shared Sub CompletedCheck(ByVal sender As Object, ByVal e As System.EventArgs)
//code here
End Sub
in the above grid template check-box control will fire the JavaScript function GetMessage() Well, but it doesn't execute the Code Behind Event.
Please Help me how to execute the Code Behind Method using JavaScript Function..
Thank You
D.Srinivasa Rao
I am trying to set conditional RadComboBoxItem visibility using javascript: RadComboBoxItem.hide(). It will work fine without Filter="Contains" enabled on the ComboBox, but when this is turned on, the ComboBox shows the hidden items the second time it is opened. Is there any way around this.
Thanks,
Thomas
aspx:
<telerik:RadComboBox runat="server" ID="rcbTest" Filter="Contains" > |
<Items> |
<telerik:RadComboBoxItem Text="Test1" /> |
<telerik:RadComboBoxItem Text="Test2" /> |
<telerik:RadComboBoxItem Text="Test3" /> |
<telerik:RadComboBoxItem Text="Test4" /> |
</Items> |
</telerik:RadComboBox> |
<asp:CheckBox ID="cbxTest" runat="server" onclick="Test(this);" /> |
javascript:
function Test(cbx) { |
var rcb = $find('<%=rcbTest.ClientID %>'); |
var items = rcb.get_items(); |
for (var i = 0; i < items.get_count(); i++) { |
if (i != 2) { |
if(cbx.checked) |
items.getItem(i).hide(); |
else |
items.getItem(i).show(); |
} |
} |
} |
.RadWindow.RadWindow_Default.rwNormalWindow.rwTransparentWindow |
{ |
display: none !important; |
} Is it possible to use the RadEditor without a toolbar and show a RadWindow? Thanks Scott |
We are using the ListBox control on a common page in our application. We are using the Move Up, Move Down and Delete features. This control is used in 508 and non-508 mode. We are unable to tab into the ListBox no matter what mode we are in. Is tabbing into this control supported? Is there a different way to get to the rows of the box without using the mouse?
<
telerik:RadListBox
ID
=
"rlbFilters"
runat
=
"server"
AllowDelete
=
"True"
AllowReorder
=
"True"
Height
=
"100px"
Width
=
"450px"
OnDeleted
=
"OnCriteriaRemoval"
OnReordered
=
"OnCriteriaReorderd"
OnClientSelectedIndexChanged
=
"rlbFilters_SelectedIndexChanged"
AutoPostBackOnReorder
=
"true"
AutoPostBackOnDelete
=
"true"
Visible
=
"false"
>
<
ButtonSettings
/>
</
telerik:RadListBox
>
Thank you,
Lindsay