We are having a hard time figuring out a solution to a long running issue. We are using a RadListBox to display a list of items such as names on a page. There are 2 lists where 1 is the selector list and the second is the "selected" list. When the selector list gets to contain somewhere in the range of 2,500+ names, the transfer runs unacceptably slow. We've tried to disable viewstate, but that breaks our code since we need to handle the transfer on the server side via an AJAX call. When we debug the code, it takes almost 25 seconds for the server-side CodeBehind method to execute.
Please advise on what can be done to improve performance for a RadListBox with transfer enabled that contains large lists of data.
Thank you,
Ed Sudit
<
telerik:RadGrid
ID
=
"rgvwUserList"
runat
=
"server"
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
AllowFilteringByColumn
=
"True"
AllowPaging
=
"True"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
CellSpacing
=
"0"
DataSourceID
=
"sdsUserList"
EnableLinqExpressions
=
"False"
GridLines
=
"None"
PageSize
=
"20"
ShowGroupPanel
=
"True"
Width
=
"900px"
>
<
ClientSettings
AllowDragToGroup
=
"True"
/>
<
MasterTableView
AutoGenerateColumns
=
"False"
CommandItemDisplay
=
"None"
DataKeyNames
=
"StaffID"
DataSourceID
=
"sdsUserList"
EditMode
=
"EditForms"
HorizontalAlign
=
"NotSet"
Width
=
"100%"
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
HeaderText
=
"Edit"
ItemStyle-HorizontalAlign
=
"Center"
UniqueName
=
"EditCommandColumn"
>
<
ItemStyle
CssClass
=
"MyImageButton"
Wrap
=
"False"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridTemplateColumn
AllowFiltering
=
"False"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
<
HeaderTemplate
>Photo</
HeaderTemplate
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
<
ItemTemplate
>
<
asp:Image
ID
=
"imgPhoto"
runat
=
"server"
ImageUrl='<%#EVAL("PhotoPath") %>' Width="50"/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"DisplayName"
FilterControlAltText
=
"Filter DisplayName column"
HeaderText
=
"DisplayName"
ItemStyle-Width
=
"20%"
ReadOnly
=
"True"
SortExpression
=
"LastName"
UniqueName
=
"DisplayName"
/>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
div
align
=
"center"
>
<
asp:FileUpload
ID
=
"fuPhotoPath"
runat
=
"server"
SkinID
=
"FileUpload"
Width
=
"290"
/>
<
asp:Button
ID
=
"btnAddPhoto"
runat
=
"server"
CommandArgument='<%#Bind("StaffID")%>' OnCommand="UploadPhoto" SkinID="ButtonLittle" Text="Add"/>
</
div
>
</
FormTemplate
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
Hi,
I'm sure this is something silly on my part, but I can't spot it.
The following code works:
var x = 'text';
var y = 'Red';
var selectedColorButtonValue = String(x + y);
var selectedColorButton = toolBar.findItemByValue(selectedColorButtonValue);
Now, since the actual value of y is dynamic and only known at run time, I have this code:
var selectedColorButtonValue = getColorButtonValue(fontColor); // Returns 'Red' for this demo
selectedColorButtonValue = String('text' + selectedColorButtonValue);
var selectedColorButton = toolBar.findItemByValue(selectedColorButtonValue);
The above does NOT work. The toolbarbutton that I'm trying to find is not found!
The toolbarbutton in question is one of several items in a RadToolBarSplitButton.
I have written to the console, and the value of selectedColorButtonValue appears fine.
Can anyone spot what I'm doing wrong.
Thanks
Jim
<EditFormSettings EditFormType="Template"> |
<FormTemplate> |
<asp:Label ID="Label4" runat="server" Text='<%# Bind("id") %>'></asp:Label> |
<uc1:edit_user ID="edit_user1" runat="server" id_user='<%# Bind("id") %>' /> |
</FormTemplate> |
<EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" |
uniquename="EditCommandColumn"> |
</EditColumn> |
</EditFormSettings> |
<EditFormSettings EditFormType="WebUserControl" UserControlName="edit_user.ascx"> |
Hi Telerik Team, Hi All,
I have a problem with ajaxifying RadTooltTip.
My case is (drafts):
<RadAjaxPanel>
<RadTooltip>
<Button>
I want to make Button ajaxified. So clicking on in will not do postback, but do ajax request.
How can I do it? Please answer ASAP, It's very important to me.
I have a dynamically generated grid where the first 4 rows are basically headers. "Project Name", "Customer Name", "division Name", "Sector Name"
For each project we have 2 columns. "Plan" and "Assign".
The 4 headers I listed should span the plan and assign columns. See the attached screen shot "Report Before Scrolling (everything looks good).png" to see what the desired output should be.
I used this thread as a starting point on how to make text in one row span 2 columns for a dynamically generated grid:
http://www.telerik.com/support/code-library/span-cells-in-grid-over-multiple-positions
My guess is that the part where you try to track the previousIndex compared to the current index is where I have issues.
When the report is first rendered to the screen it looks correct. Once you use the horizontal scroll the colspan values for the columns start to change. To see the HTML example of this I've included 2 screen shots. One called "HTML Before Scrolling - Colspan values look correct.png" and one called "HTML after scrolling -Colspan values have changed.png".
Here is the OnPreRender code where I set the colspan and very feebly attempt to manage the indeces of the items (read help!):
protected void radGrid1_OnPreRender(object sender, EventArgs e)
{
var headerRows = HeaderRows;
if (headerRows == null) return;
foreach (var row in headerRows)
{
var currentProjectID = row["projectID"].ToString();
var currentPlanColumnName = "Plan" + "_" + currentProjectID;
var currentAssignColumnName = "Assign" + "_" + currentProjectID;
foreach (GridDataItem dataItem in radGrid1.MasterTableView.Items)
{
dataItem[currentPlanColumnName].ColumnSpan = 2;
dataItem[currentAssignColumnName].Visible = false;
int previousItemIndex = dataItem.ItemIndex - 1;
if (previousItemIndex >= 0)
{
if (dataItem["Employees"].Text == dataItem.OwnerTableView.Items[previousItemIndex]["Employees"].Text)
{
dataItem.OwnerTableView.Items[previousItemIndex]["Employees"].RowSpan = 2;
dataItem["Employees"].Visible = false;
}
}
}
}
}
As I stated above the code in the OnPreRender where it compares the dataItem text to the previousItemIndex's text is where I'm probably causing the issue??
Any help is greatly appreciated.
Thank you :)​
Hi Guys,
I have a strange issue where the radcombobox allows the user to enter text and search data, also this data which he entered is allowed to save.
<telerik:radcombobox id="rdChangeOwner" skin="Web20" cssclass="RadComboBoxDropDownrcbScroll"
dropdowncssclass="RadComboBoxDropDownrcbScroll" runat="server" font-names="calibri"
font-size="11pt" width="230px" allowcustomtext="false" height="180px" enableloadondemand="True"
showmoreresultsbox="true" enablevirtualscrolling="true" emptymessage="Please Select..."
radcomboboximageposition="Right" zindex="10000002" onitemsrequested="ddlChangeOwnerItemsRequested"
causesvalidation="true" highlighttemplateditems="true" onclientblur="rdChangeOwnerBlur">
</telerik:radcombobox>
Initial Value of DropDown is "Asif Mohammed"
Looking for a Employee in picker and entered Asif
Didn’t not select the populated value(Asif Mohammed), just left the entered text as "Asif".
Asif is not there in the list, but "Asif Mohammed" is available, but it allowed me to save Asif into DB and hence got me error because internally it was not able to resolve.
Please help in getting a solution for this Issue.
Thanks and Regards,
Mohammed Asif Mtext