Hey guys.
I haven't looked into it much, but before I do, I figured I would ask around and see if you have any ideas.
I'm including other Telerik controls, like a ComboBox and RadGrid inside of the SchedulerDefaultForm of the Advanced Templates and, so far, any event fired from either of these controls gives this error:
The ComboBox is declared thusly:
GroupId in the Header is coming from the overall combo data source, and the GroupId to bind the SelectedValue to is a custom attribute.
The only difference in the way I've handled GroupId here vs Description in the Telerik example project is that I do not pass GroupId down through the control chain, with Bindable properties and the like. Is this the problem?
If not, how do you suggest handling PPP inside the template given the highly volatile binding situation presented with this nested control structure?
Thanks,
Adam.g
I haven't looked into it much, but before I do, I figured I would ask around and see if you have any ideas.
I'm including other Telerik controls, like a ComboBox and RadGrid inside of the SchedulerDefaultForm of the Advanced Templates and, so far, any event fired from either of these controls gives this error:
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
The stack trace is something like this:" at System.Web.UI.Page.GetDataItem()\r\n at ASP.taskbuilder_advancedscheduler_schedulerdefaultform_ascx.__DataBindingradddlGroupName(Object sender, EventArgs e) in c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\integrationnode\\5a4379f7\\123b663a\\App_Web_si58sjnd.0.cs:line 0\r\n at System.Web.UI.Control.OnDataBinding(EventArgs e)\r\n at Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e)\r\n at Telerik.Web.UI.RadComboBox.PerformSelect()\r\n at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()\r\n at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()\r\n at System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e)\r\n at Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e)\r\n at Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e)\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)" |
The ComboBox is declared thusly:
<telerik:RadComboBox ID="radddlGroupName" runat="server" Skin="Outlook" Style="margin: 0.8em 0pt 0pt 15px;" Width="400px" HighlightTemplatedItems="true" DataSourceID="TaskGroups_DS" DataTextField="Name" DataValueField="GroupId" SelectedValue='<%# Bind("GroupId") %>' OnSelectedIndexChanged="radddlGroupName_SelectedIndexChanged"> |
<HeaderTemplate> |
<table> |
<tr> |
<td width="40" valign="top">Name</td> |
<td>Description</td> |
</tr> |
</table> |
</HeaderTemplate> |
<Items> |
<telerik:RadComboBoxItem runat="server" Text="[-- Select a Group to Execute With This Item --]" Value="-1" /> |
</Items> |
<ItemTemplate> |
<table style="height: 40px;"> |
<tr> |
<td style="width: 50px; height: 21px;"> |
<asp:Label ID="lblGroupNameLabel" runat="server" Text='<%# Eval("GroupId") + "-" + Eval("Name") %>'></asp:Label> |
</td> |
<td style="height: 21px;"> |
<asp:Label ID="lblGroupDescription" runat="server" Text='<%# Eval("Description") %>'></asp:Label> |
</td> |
</tr> |
</table> |
</ItemTemplate> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
</telerik:RadComboBox> |
GroupId in the Header is coming from the overall combo data source, and the GroupId to bind the SelectedValue to is a custom attribute.
The only difference in the way I've handled GroupId here vs Description in the Telerik example project is that I do not pass GroupId down through the control chain, with Bindable properties and the like. Is this the problem?
If not, how do you suggest handling PPP inside the template given the highly volatile binding situation presented with this nested control structure?
Thanks,
Adam.g