| protected void Page_Load(object sender, EventArgs e) |
| { |
| RadScheduler1.AppointmentTemplate = new AppTemplate(); |
| } |
| public class AppTemplate : ITemplate |
| { |
| private Literal subject; |
| public void InstantiateIn(Control container) |
| { |
| subject = new Literal(); |
| subject.DataBinding += subject_DataBinding; |
| container.Controls.Add(subject); |
| } |
| private void subject_DataBinding(object sender, EventArgs e) |
| { |
| IDataItemContainer aptContainer = (IDataItemContainer)subject.BindingContainer; |
| int lId = (int)DataBinder.Eval(aptContainer.DataItem, "ID"); |
| string strSubject = HttpUtility.HtmlEncode((string)DataBinder.Eval(aptContainer.DataItem, "Subject")); |
| SPWeb oWeb = null; |
| oWeb = SPContext.Current.Web; |
| String requestListName = "TravelCalendarList"; |
| SPListItem itm = oWeb.Lists[requestListName].GetItemById(Convert.ToInt32(lId)); |
| if (itm != null) |
| { |
| if (null != itm["RequestId"]) |
| { |
| subject.Text = "<a href=\"" + oWeb.Url + "/default.aspx?ListId=" + lId + "\">" + strSubject + "</a>"; |
| } |
| else |
| { |
| subject.Text = strSubject; |
| } |
| } |
| } |
| } |
function
OpenRadWindow()
{
var radWindow = GetRadWindowManager().GetWindowByName( 'rwAddItem');
radWindow.Show();
}
I have the RadWindow control set to ReloadOnShow = false and , so it isn't attempting to reload the page again when I show it. I've also set ShowContentDuringLoad to true on the RadWindow control. Both have provided no improvement.
When the parent's gridView has a small amount of data it shows just fine. But in cases where I have many more rows in the grid, and I click the button to show the radwindow, it is VERY VERY SLOW. But since i'm doing this all client-side, no server side postbacks, shouldn't this all be relatively quick.
The contents of the window, when loaded in a standard browser window load just fine, so I just don't understand why it would load so slowly based on teh content of the parent page.
Thanks!
Debbie
writer.RenderBeginTag(
HtmlTextWriterTag.Table);
writer.RenderBeginTag(HtmlTextWriterTag.Tr);
writer.RenderBeginTag(HtmlTextWriterTag.Td);
lblGroup.RenderControl(writer);
writer.RenderEndTag(); // td
writer.RenderBeginTag(HtmlTextWriterTag.Td);
ddGroup.RenderControl(writer);
writer.RenderEndTag(); // td
writer.RenderEndTag(); // tr
//--------Second Row--------
writer.RenderBeginTag(HtmlTextWriterTag.Tr);
writer.RenderBeginTag(HtmlTextWriterTag.Td);
lblUser.RenderControl(writer);
writer.RenderEndTag(); // td
writer.RenderBeginTag(HtmlTextWriterTag.Td);
ddUser.RenderControl(writer);
writer.RenderEndTag(); // td
writer.RenderEndTag(); // tr
writer.RenderEndTag(); // table
please help me in this venture.....
Thnks