Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
272 views
For example: the default SelectedValue of ComboBox is set by code-bebind to "A4", but for some reasons I need to disable the ComboBox and enable some other controls. For this case, the SelectedValue will not return the default value "A4" that I set before. But it works fine when the ComboBox is enabled.
Moreover, the SelectedValue will be lost after post-back when the ComboBox is disabled.

Louis
Oscar
Top achievements
Rank 1
 answered on 19 Nov 2008
3 answers
228 views
Hi there,

I have two combobox, infoCat and childCat
When the ParentCombo selectedindex is changed, I want ChildCombo to re-databind (as the data is obtained through the database).

I'm having a difficulty with this. On other post, you said that I can use ItemsRequested event.. But it seems the demo code is outdated..
the script in the aspx file doesn't make sense..


within ASPX.VB File:

 

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

 


On ASPX File:

 

<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>

 


I tried using script

 

<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>

 


but not working. How come in the demo it uses (item) <-- where is the argument used..?

Can you provide me some guidance/script/solution to this?

Thanks,

Andreas
Simon
Telerik team
 answered on 19 Nov 2008
3 answers
244 views
We had purchased the Rad Controls suite for Q3 2007, ASP.NET, WinForms, and Prometheus. I am trying to find the WSP file to install the full MOSS version of the RadEditor in my MOSS site. Where can I find this file?

Thank You.
Rumen
Telerik team
 answered on 19 Nov 2008
1 answer
340 views
I have an instance of RADScheduler that I view only in Month view.  There are several days that I need to make stand out, and I'd like to do that by changing the background color of the day cell.

However, I noticed that the Scheduler does not have a DayRender event like other calendars do.  Is there a way to replicate this functionality in the Scheduler?  Only reason I'm using the scheduler is for the Outlook-like appointment spanning.

Any help would be appreciated.

Thanks,
Kevin
Peter
Telerik team
 answered on 19 Nov 2008
2 answers
149 views
Hello.

I created a context menu from the radreeview properties. When I create a new ContextMenu and click in  Items to add new items it works fine, but after a while (I don't know when exactly) when I try to access the Items properties of the MenuContext a visual studio message box appears with this message: "Object neference not set to an Isntance of an object".

I didn't touch the aspx markup:
    <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> 

The project runs fine even when I modify the markup manually, it might be a VS interaction issue. Any ideas?
Paul
Top achievements
Rank 1
 answered on 19 Nov 2008
1 answer
142 views
Hi

I notice that there is a handler/tag in the lower right corner - by dragging it with the mouse, the editor control can be resized by the user. I want it to be disabled, how can it be done?

Regards,

Kasper Bergmann
Rumen
Telerik team
 answered on 19 Nov 2008
1 answer
146 views
I have installed the latest service pack and my code where I was accessing my resources (list of users displayed as checkbox) inside the  RadScheduler1_FormCreated is not working anymore. I am not sure if I coded it in the correct way in the first place but I had to disable those check boxes in the EditMode.
I did the following which was working with the July service pack. Currently it can't find the checklist box with all the users. "User" is the name of my resource which is coming out of the database with the Scheduler provider model.

 

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

 

 

 

 

Peter
Telerik team
 answered on 19 Nov 2008
1 answer
121 views
How can I set the default value of a DropDown list in the Scheduler control? I want to set it to the same value that was selected in a DropDown list earlier on the page.
Peter
Telerik team
 answered on 19 Nov 2008
1 answer
107 views

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.

aykut
Top achievements
Rank 1
 answered on 19 Nov 2008
4 answers
78 views
Hi:

I am following the tutorials and am unable to locate the folder for \VS Projects - I have downloaded the trial version and am evaluating but cannot seem to find this particular folder.  Any help in finding it greatly appreciated.

Roger
Roger
Top achievements
Rank 2
Veteran
 answered on 19 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?