Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
144 views
Hi,
when converted asp.net dropdown with 2500 listitem to radcombobox performance has degraded a lot . Can someone help me how to improve the item selection?
Cat Cheshire
Top achievements
Rank 1
 answered on 18 Jul 2011
3 answers
84 views
Hello Telerik,

We upgraded from the 2011 Q1 to the 2011 Q2 release yesterday and noticed that the following functionality in the RadComboBox has changed.

We create our own server control (SingleSelectRadComboBox) that derives from RadComboBox:

public sealed class SingleSelectRadComboBox : RadComboBox, ISingleSelectRadComboBox

In the constructor, we have the following properties set:
/// <summary>
/// Default constructor that sets up common control properties
/// </summary>
public SingleSelectRadComboBox()
{
    AllowCustomText = false;
    ChangeTextOnKeyBoardNavigation = true;
    EnableTextSelection = true;
    MarkFirstMatch = true;
    EmptyMessage = "Select...";
    CloseDropDownOnBlur = true;
    CollapseAnimation.Type = AnimationType.None;
    ExpandAnimation.Type = AnimationType.None;
 
    MaxHeight = Unit.Pixel(200);
    if (Width.Value == 0) { Width = Unit.Pixel(160); }
 
    OnClientFocus = "singleSelect_RadComboBox_Focus";
 
}

When we bind data to the RadComboBox using the Q1 release, the first item that was bound is selected in the dropdown and the SelectedIndex property is 0.  When we switched to Q2, the data is bound properly, but the SelectedIndex property is -1.

If we comment out the following three lines of code in our default constructor the control works the same between releases.
EnableTextSelection = true;
MarkFirstMatch = true;
EmptyMessage = "Select...";

I assume that this change is related to the following comment in the release notes:
  Added: Improved EmptyMessage to show regardless of the value of the AllowCustomText and EnableLoadOnDemand properties

Was the change I describe an intended or unintended side effect of the Q2 release?

Thanks!!
Thad
Simon
Telerik team
 answered on 18 Jul 2011
3 answers
105 views
I have a grid which I generate serverside, and bind clientside. I perform paging serverside. The grid has 14 columns, all of type string. I use the following snippet to bind data to the grid.
this.refreshGrid = function refreshGrid(result) {
    var gridView = $find(this.get_grid()).get_masterTableView();
    gridView.set_dataSource(result.Items);
    gridView.set_virtualItemCount(result.ItemCount);
    gridView.dataBind();
    gridView.updated();
};

where result.Items is in the format of:
var Items = [{ "Heading1": "Row1-1", "Heading2": "Row1-2", "Heading3": "Row1-3"},
            { "Heading1": "Row2-1", "Heading2": "Row2-2", "Heading3": "Row2-3"}];

With 14 headings, and however many rows (between 10 to 50 for a single page).

The problem I'm having is with the speed of binding. When binding 10 items, it takes a fraction of a second. Binding 20 items takes 2 seconds. Binding 50 items shoots up to 13 seconds, and well out of usability. I don't have any custom events tied to the databinding event, this is all internal processings, and I have absolutly no idea whats causing it.

Are there any tools I can use to profile the internals, to see exactly what is causing the binding to take so long?
Genti
Telerik team
 answered on 18 Jul 2011
3 answers
518 views
Hi,

I'm working on a project that has a lot of JavaScript files that are referenced in the masterpage. I'm rebuilding a new version of a site and reusing the same scripts and RadScriptManager in the MasterPage. The old site had used CompositeScript to combine the scripts. When I ported it to the new site's MasterPage I get a warning:

   RadScriptManager does not have a public property named CompositeScript

Because of this warning my designer file does not get updated in my web application project and therefore I get IntelliSense issues. If I merely comment out the CompositeScript block my designer file updates as expected and IntelliSense works fine.

I'm using the exact same Telerik DLL from the first site. The version is 2009.3.1208.20. We cannot upgrade this version as other things in our solution require this specific version (it specifically has to do with the CMS we're using and its dependence on Telerik.). Is there a way for me to fix this issue? I know the composite script feature works because on the front-end it does combine the scripts into ScriptResource.axd so I'm trying to figure out why I get this issue which breaks my IntelliSense.

Thanks in advance.
Simon
Telerik team
 answered on 18 Jul 2011
4 answers
273 views
Hi,

I have a Grid with parent child relation like below:

<

 

 

telerik:RadGrid ID="radgrdMeterData" runat="server" AutoGenerateColumns="false">

 

<

 

 

MasterTableView DataKeyNames="ea_meterdataid,ea_MeterDataType.Id" Width="100%" HierarchyLoadMode="Client"

 

 

 

 

 

 

 

HierarchyDefaultExpanded="false" Name="MeterData">

 

 

 

 

 

 

 

<DetailTables>

 

 

 

 

 

 

 

<telerik:GridTableView AutoGenerateColumns="false" Width="100%" DataKeyNames="ea_auxiliarymeterdatavaluesid,ea_MeterData.Id"

 

 

 

 

 

 

 

Name="AuxiliaryMeterData">

 

 

 

 

 

 

 

<ParentTableRelation>

 

 

 

 

 

 

 

<telerik:GridRelationFields DetailKeyField="ea_MeterData.Id" MasterKeyField="ea_meterdataid" />

 

 

 

 

 

 

 

</ParentTableRelation>

 

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

 

<telerik:GridTemplateColumn UniqueName="ea_auxiliarymeterdataname" HeaderText="Auxiliary Meter Data Name"

 

 

 

 

 

 

 

HeaderStyle-Width="160px">

 

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

 

<telerik:RadComboBox ID="radCmbAuxilarymeterdatatype" runat="server" OnClientSelectedIndexChanging="radCmbAuxilarymeterdatatype_SelectedIndexChanging">

 

 

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

 

</telerik:GridTemplateColumn>
............

 

..............
 
in parent relation i given:
DetailKeyField="ea_MeterData.Id" MasterKeyField="ea_meterdataid"
when i given like this it given error like: Cannot find column [ea_MeterData.Id].
 actually i have a objectlist in that ea_MeterData is a calass in that Id is a property.

when i given same like in datakeys it accepted(see above code) but when i given in detailkeyfield it is not accepting and giving error like cannot find column

i need solution for this ASAP,

Thanks in advance

Ramakrishna
Top achievements
Rank 1
 answered on 18 Jul 2011
3 answers
113 views
I'm struggling with a custom skin in my filter row

So the markup is
<tr class='rgFilterRow'>
<td>
<input>   <-- Textbox
<input>   <-- Filter Control Button

The question is how to get the button to line up with the right side of the filter row with a fixed width, and have the textbox fill the remaining space...

Doable?
Sebastian
Telerik team
 answered on 18 Jul 2011
4 answers
218 views
Hi, I have a dynamically created grid on page_init as you show in your demos.  I would like to know if there is any difference between setting the Grid.DataSource when the Grid is created on Page_Init and setting the DataSource on the NeedDataSource event of the grid.  I ask this because I noticed that the grid always calls the NeedDataSource event as opposed to if the grid was created declaratively in the page.

Any help would be greatly appreciated,
Manuel
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Jul 2011
1 answer
198 views
Hey,
I'm working on a fileExplorer control which explores directory on a different drive than the project's drive, so I'll need to use virtual directory, please can you help me in doing this? I've created a virtual directory in IIS, but I don't know what to do next?what's the appropriate syntax?
Dobromir
Telerik team
 answered on 18 Jul 2011
1 answer
121 views
 I want to show the time not specific time, but range time, for example: 8:00- 10:00(please see the attached picture),
So I change the timpicker format:

  RadTimePickerVisitTime.Culture = new System.Globalization.CultureInfo("en-US")
                {
                    DateTimeFormat = new System.Globalization.DateTimeFormatInfo
                    {
                        ShortTimePattern = "HH:00-HH:00" , // In case of DisplayFormat="Short"
                        LongTimePattern = "HH:00-HH:00"  // In case of DisplayFormat="long"
                    }
                };

also I change the data show in timepicker:

protected void RadTimePickerVisitTime_ItemDataBound(object sender, TimePickerEventArgs e)
        {
           if ((e.Item.ItemType == ListItemType.Item)|| (e.Item.ItemType == ListItemType.AlternatingItem))
            {
                System.Data.DataRowView dataItem = (System.Data.DataRowView)e.Item.DataItem;
                DateTime boundTime = (DateTime)dataItem.Row["Time"];
                var first = boundTime.Hour + ":00-";
                var second = boundTime.AddHours(2).Hour + ":00";
               System.Globalization.CultureInfo  culture =  new System.Globalization.CultureInfo("en-US")
                {
                    DateTimeFormat = new System.Globalization.DateTimeFormatInfo
                    {
                        ShortTimePattern = "HH:00-HH:00", // In case of DisplayFormat="Short"
                        LongTimePattern = "HH:00-HH:00"  // In case of DisplayFormat="long"
                    }
                };
               boundTime = DateTime.Parse(first + second, culture);
            }
        }

But it not work, anyone can give me some suggestion, thanks a lot!!!!
Vasil
Telerik team
 answered on 18 Jul 2011
8 answers
250 views
Hello All,

  I exported the telerik grid to excel by using the command below

RadGrid_DetailsView.MasterTableView.ExportToExcel();

I want to set the header on each page that says
"This is the DRAFT Data".

How can I accomplish that.

Thanks.

Daniel
Telerik team
 answered on 18 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?