Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
97 views
I have been working with a Microsoft developer directly over the last week. We were trying to determine why Visual Studio 2008 "hangs" for up to 10 seconds after clicking on controls within my page in Design mode of the IDE.

I'm developing a site using Visual Studio 2008, VB.Net and SQL 2005.

The page in question is a content page. The master page is fairly simple. It only contains a couple label controls, a radMenu and a breadcrumb.

The content page contains a set of drop-down lists populated using SQLDataSource controls. These appear at the top of the page within an HTML <table>. These drop-down are all linked as Control Parameters to a SQLDataSource that populates a GridView. (not the radGrid)

Users are able to select a row in the gridview making the gridview a master of other details.

Under the gridview I have a radTabStrip and of course matching radMultiPage / radPageView controls which encapsulate 8 separate DetailsView controls. (one in each PageView)

One of these DetailsViews has a radEditor control (simplified to have only 3 items in the options menu).

Also there are several ModalPopupExtender controls being used on the page as well. (From the Ajax Control Toolkit).

While in the Visual Studio 2008 IDE, editing this form in Design mode, when I click on any control within any PageView, Visual Studio 2008 (devenv.exe) eats up 50% CPU (I have a dual core, so that means 100% of one CPU) for up to 10 seconds.

I tried my best to prove to the Microsoft developer that it wasn't your controls. However, a simple test proved that it was.

I removed the radTabStrip, radMultiPage and radPageViews, as well as the radEditor control. Once I did that, the IDE performed as expected and was not "hanging" at all.

I do not consider this form I've designed (using a radTabStrip) "complex" or something out of the ordinary.

From our tests it appears that the 50% CPU occurs when the Design view is attempting to update the Source view and vice-versa. (It also occurs while in source view and just hitting the enter key on any line of code).

Again, no problems occur when Telerik controls are not used on the page.

My question is: Is Telerik aware of this flaw in the design of your component(s) and are you working to resolve it? If so, have you deteremined the exact cause? (e.g. too many properties, causing the IDE to load slower?)





Charles Forsyth
Top achievements
Rank 2
 answered on 19 Nov 2008
4 answers
262 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
226 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
233 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
329 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
136 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
136 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
139 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
106 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?