<
span
class
=
"rtIn"
>
<
img
src
=
"images/buttons/F.gif"
> Front Hazard Camera - 2 items
</
span
>
<
span
class
=
"rtIn"
>
<
table
>
<
tbody
><
tr
><
td
><
div
onclick
=
"LoadProd('2B156252391EDR9946N1940N0M1','prod')"
>
<
table
>
<
tbody
><
tr
><
td
><
img
src
=
"images/other/noprod.gif"
></
td
>
<
td
><
img
src
=
"images/buttons/B.gif"
></
td
>
<
td
>2 B 156252391 EDR 99 46 N1940 N0 M1<
br
>1 product : N0</
td
></
tr
></
tbody
></
table
></
div
></
td
></
tr
></
tbody
>
</
table
>
</
span
>
<
div
class
=
"rtIn"
>
<
div
class
=
"rtTemplate"
>
<
table
>
<
tbody
><
tr
><
td
></
td
><
td
><
div
onclick
=
"LoadProd('2P144116118ESF7600P2600L8C1','g')"
>
<
table
>
<
tbody
><
tr
><
td
><
img
src
=
"sqlImageHandler.ashx?id=2P144116118ESF7600P2600L8C1"
width
=
"64"
height
=
"64"
></
td
>
<
td
><
img
src
=
"images/buttons/P.gif"
></
td
>
<
td
>144116118 76 00 P2600...<
br
>2 products : L8 R8</
td
></
tr
></
tbody
></
table
></
div
></
td
></
tr
></
tbody
>
</
table
>
</
div
>
</
div
>
How can I remove the extra line in the nodes added by the web service?
Currently we are using the Telerik RadGrid control to shows the data which is stored in the MOSS custom list. The volume of the data is around 2000+ . [The data may increase as the list is the task list]. The RadContorl is placed on the ASP.Net user control(.ascx page) and the same user control is used in the MOSS site as the custom web part.
When we try to open the page which contains this web part, it is taking long time(about 1 Minute) to load the page. And it is taking about 30 to 40 seconds to group and sort the data.
Data Fetch Login –
1. Get all the records from the Custom List using SharePoint APIs and store it in the DataTable object
2. Store the DataTable in the Session object for further data operations on Grid
The Properties set for the RadGrid are as follows
1. Auto Generate Columns = True
2. Allow Pagination = False
3. Allow Filtering = False
4. Allow Sorting = True
5. Allow Grouping = True
6. Allow Client Site Column Reordering = True
As per Annadatha’s suggestions we disabled the Grouping and Sorting option to check the performance, but find no success. We even tried using the GridBoundColumn (For testing purpose) and disabled “AutoGenrateColumn=False”. But no improvement in page load time.
The browser used by customer – IE6 / IE7. We also used IE8 for testing, the performance is bit good in IE8 as compared with IE6 or IE7.
And the execution time taken is
Data Fetch – About 1 Sec
Data Bind – About 0.3 Sec
Page Rendering Time – 30 Sec
Could you please let us know what could be the issue.
I have a page with a drop-down. Based on the selection in the drop-down, data gets loaded and populates a RadGrid. I am using a custom user control for the EditTemplate, so I can't use radGrid.DataBind(). Instead, I have to use radGrid.MasterTableView.Rebind() in association with a NeedDataSource event handler.
My problem is that when I load the page initially, I populate the drop-down and automatically select a value (first item in the list) which triggers the databinding on the RadGrid. I can step through the code in debug mode and see that the grid is being populated with data (both when the DataSource is being set and when a derived property is visited when it's displayed as a column in the grid), but when the page displays, the grid doesn't get rendered. I can then manually choose an item from the drop-down, which triggers the same grid databinding code, it displays properly the second time.
How do I get it to display the grid the first time the page loads?
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function RowSelected(sender, eventArgs) {
var grid = sender;
var MasterTable = grid.get_masterTableView();
var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
var id = eventArgs.getDataKeyValue("C_n_Id");
alert(id);
var oXmlPanel = $find("<%= RadXmlHttpPanel1.ClientID %>");
oXmlPanel.set_value(id);
}
</
script
>
</
telerik:RadScriptBlock
>
<
div
class
=
"ordersContainer"
>
<
asp:Label
runat
=
"server"
ID
=
"ordersTitle"
CssClass
=
"ordersTitle"
>Orders for</
asp:Label
>
<
telerik:RadXmlHttpPanel
ID
=
"RadXmlHttpPanel1"
runat
=
"server"
OnServiceRequest
=
"RadXmlHttpPanel1_ServiceRequest"
RenderMode
=
"Block"
EnableClientScriptEvaluation
=
"true"
>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
/><
br
/>
</
telerik:RadXmlHttpPanel
>
<%@ Page Language=
"C#"
AutoEventWireup=
"true"
CodeBehind=
"WebForm47.aspx.cs"
Inherits=
"fTest.WebForm47"
%>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head runat=
"server"
>
<title></title>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<div>
<telerik:RadScriptManager ID=
"RadScriptManager1"
runat=
"server"
>
</telerik:RadScriptManager>
<telerik:RadSplitter ID=
"RadSplitter1"
runat=
"server"
Height=
"100%"
Width=
"100%"
BorderSize=
"0"
PanesBorderSize=
"0"
Skin=
"Office2010Silver"
>
<telerik:RadPane runat=
"server"
ID=
"RadPane1"
Width=
"350px"
MaxWidth=
"350"
>
abc
</telerik:RadPane>
<telerik:RadSplitBar runat=
"server"
ID=
"RadSplitbar1"
CollapseMode=
"Forward"
ResizeStep=
"50"
/>
<telerik:RadPane runat=
"server"
ID=
"RadPane2"
Width=
"350px"
MaxWidth=
"350"
>
cde
</telerik:RadPane>
</telerik:RadSplitter>
</div>
</form>
</body>
</html>