Protected Sub infoCat_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.WebControls.RadComboBoxSelectedIndexChangedEventArgs) Handles infoCat.SelectedIndexChanged
PopulateChildIDs()
End Sub
Protected Sub infoCat_ItemsRequested(ByVal o As Object, ByVal e As Telerik.WebControls.RadComboBoxItemsRequestedEventArgs) Handles infoCat.ItemsRequested
PopulateInfoIDs()
End Sub
Protected Sub childCat_ItemsRequested(ByVal o As Object, ByVal e As Telerik.WebControls.RadComboBoxItemsRequestedEventArgs) Handles childCat.ItemsRequested
PopulateChildIDs()
End Sub
Private
Sub PopulateInfoIDs()
sql =
"SELECT category, category As value FROM InfoCategory"
dbCommand = db.GetSqlStringCommand(sql)
Dim ds As DataSet = db.ExecuteDataSet(dbCommand)
infoCat.DataSource = ds
infoCat.DataTextField =
"category"
infoCat.DataValueField =
"value"
infoCat.DataBind()
If infoCat.Items.Count > 0 Then
infoCat.SelectedIndex = 0
End If
Private Sub PopulateChildIDs()
If infoCat.SelectedIndex <> -1 Then
sql =
"SELECT title, title As value FROM Information WHERE category ='" & infoCat.SelectedValue & "'"
dbCommand = db.GetSqlStringCommand(sql)
Dim ds As DataSet = db.ExecuteDataSet(dbCommand)
childCat.DataSource = ds
childCat.DataTextField =
"title"
childCat.DataValueField =
"value"
childCat.DataBind()
If childCat.Items.Count > 0 Then
childCat.SelectedIndex = -1
End If
<div class="editdropdown2">
<radC:RadComboBox ID="infoCat" runat="server" AutoPostBack="True" Skin="ClassicBlue" Width="582px">
</radC:RadComboBox>
<radC:RadComboBox ID="childCat" runat="server" AutoPostBack="True" Skin="ClassicBlue" Width="582px" OnClientItemsRequested="ItemsLoaded">
</radC:RadComboBox>
</div>
<script type="text/javascript">
var childCombo = <%= childCat.ClientID %>;
function PopulateChildIDs(item)
{
childCombo.SetText(
"Loading...");
childCombo.RequestItems(item.Value,
false);
}
function ItemsLoaded(combo)
{
if (combo.Items.length > 0)
{
combo.SetText(combo.Items[0].Text);
combo.Items[0].Highlight();
}
combo.ShowDropDown();
}
</script>

| <telerik:RadTreeView ID="RadTreeView1" Runat="server" |
| LoadingStatusPosition="BeforeNodeText" |
| onclientcontextmenushowing="OnContextShowing"> |
| <contextmenus> |
| <telerik:RadTreeViewContextMenu ID="MenuContextMenu" runat="server" |
| Flow="Horizontal"> |
| <expandanimation type="OutQuart" /> |
| <defaultgroupsettings expanddirection="Auto" flow="Vertical" /> |
| <collapseanimation duration="200" type="OutQuint" /> |
| <Items> |
| <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Add " |
| Value="add"> |
| <groupsettings expanddirection="Auto" flow="Vertical" /> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Delete " |
| Value="delete"> |
| <groupsettings expanddirection="Auto" flow="Vertical" /> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadTreeViewContextMenu> |
| </contextmenus> |
| <Nodes> |
| <telerik:RadTreeNode runat="server" ExpandMode="ClientSide" |
| Text="Context Menu Test" Value="1"> |
| </telerik:RadTreeNode> |
| </Nodes> |
| <CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation> |
| <ExpandAnimation Type="OutQuart" Duration="100"></ExpandAnimation> |
| </telerik:RadTreeView> |

protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
if (e.Container.Mode == SchedulerFormMode.AdvancedEdit || e.Container.Mode == SchedulerFormMode.Edit)
{
CheckBoxList chkList = e.Container.FindControl("User") as CheckBoxList;
if (chkList != null )
chkList.Enabled = false;
RadDatePicker startDate = e.Container.FindControl("StartDate") as RadDatePicker;
if (startDate != null)
startDate.Enabled = false;
RadDatePicker endDate = e.Container.FindControl("EndDate") as RadDatePicker;
if (endDate != null)
endDate.Enabled = false;
}
}
Please advise on how to really get hold of the items and disable them inside the form, if this is not the correct way. Are they not rendered as Checkbox list anymore?
By the way none of your Forum links are working from the demo pages anymore. You have to come to the Forum page from the main Home Page.
Thanks
Himadri
I have simple radgrid. One column is template column and it had RADEditor. grid opens modal edit dialog:
<MasterTableView CommandItemDisplay="Top" DataKeyNames="ID" DataSourceID="SqlDataSource1" EditMode="PopUp">
column template is:
<telerik:RadEditor ID="RadEditor1" Runat="server"
Content='<%# Bind("databasefield") %>'>
<Content>
</Content>
</telerik:RadEditor>
when I edit grid, popup appears,which is fine, then when I click imagemanager or flashmanage button to select image, this dialog appears BEHIND the grid's popup dialog and cannot be accessed.
I searched thru forums but couldn't find any solution.. Im not very good at RAD products. can you help me please ?
best regards.