Lakshmi Thangaraj
Top achievements
Rank 1
Lakshmi Thangaraj
asked on 09 Jul 2010, 11:19 AM
Hai
when i click on edit,pagination and sort on grid the system processing speed goes down and no action takes place on grid.
even he paging and inline editing is not worked out. Have any one faced these kind of issues. I am using vista skin.
when i click on edit,pagination and sort on grid the system processing speed goes down and no action takes place on grid.
even he paging and inline editing is not worked out. Have any one faced these kind of issues. I am using vista skin.
3 Answers, 1 is accepted
0
Hi Lakshmi,
Could you please verify that you are not populating the grid control using simple binding with DataBind()
calls? If this is the case, please transform your code to take advantage of the advanced binding with NeedDataSource handling.
Sincerely yours,
Pavlina
the Telerik team
Could you please verify that you are not populating the grid control using simple binding with DataBind()
calls? If this is the case, please transform your code to take advantage of the advanced binding with NeedDataSource handling.
Sincerely yours,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lakshmi Thangaraj
Top achievements
Rank 1
answered on 12 Jul 2010, 06:17 AM
yes am using need data source advanced binding to populate grid.
And i Used item databound event to bind the dropdown...
protected void grdEscalation_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
try
{
oEscalation = new List<OMSEscalationReport>();
oEscalation = AdminBase.GetAllEscaltion();
grdEscalation.DataSource = oEscalation;
}
catch (Exception ex)
{
Session["Error"] = ex.ToString();
Response.Redirect("~/OMSError.aspx");
}
}
And i Used item databound event to bind the dropdown...
protected void grdEscalation_ItemDataBound(object sender, GridItemEventArgs e)
{
//Get Available doctors for the selected specialty
try
{
if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)
{
Doctor = new List<OMSDoctors>();
GridEditableItem item = e.Item as GridEditableItem;
RadComboBox drname = (RadComboBox)item.FindControl("drpDoctorName");
int caseid = int.Parse(item.OwnerTableView.DataKeyValues[item.ItemIndex]["CaseID"].ToString());
Doctor = AdminBase.GetAllAvailableDoctors(caseid);
drname.DataSource = Doctor;
drname.DataTextField = "FullName";
drname.DataValueField = "doctorid";
drname.DataBind();
}
}
catch (Exception ex)
{
Session["Error"] = ex.ToString();
Response.Redirect("~/OMSError.aspx");
}
//Display the escalation text in tooltip
try
{
if (e.Item is GridDataItem && !(e.Item.IsInEditMode))
{
GridDataItem dataItem = (GridDataItem)e.Item;
//Get escalationmessage and set it in tool tip
(dataItem["Reason"] as TableCell).ToolTip = "<B><U>Escalation:</U></B></br>" + dataItem["Reason"].Text;
//Remove after 25th characters
if (dataItem["Reason"].Text.Length > 10)
{
string temp = dataItem["Reason"].Text;
temp = temp.Remove(10);
temp += "...";
dataItem["Reason"].Text = temp;
}
}
}
catch (Exception ex)
{
Session["Error"] = ex.ToString();
Response.Redirect("~/OMSError.aspx");
}
}
0
Hi Lakshmi,
I reviewed the code snippet, and it looks correct. If you are facing any issues, you can open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and get back to you with more information on the matter.
Kind regards,
Pavlina
the Telerik team
I reviewed the code snippet, and it looks correct. If you are facing any issues, you can open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and get back to you with more information on the matter.
Kind regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items