protected
void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
e.Appointment.Subject =
"TEST";
}
What I am aiming to do is to assign colors based on custom resources using a Data Source, which I was unable to get to work, so I hoped to prove the I was actually firing the Data Bound event by testing it with the Subject change.
Here is an example oh how I would like to display colors for different resources ("CalendarType"):
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
if (e.Appointment.Resources.GetResourceByType("CalendarType") != null)
e.Appointment.CssClass = DataBinder.Eval(e.Appointment.Resources.GetResourceByType("CalendarType").DataItem, "CalendarTypeColor").ToString();
}
Thanks in advance. You guys have a great product and we will purchase once we solve this problem!
<
telerik:RadMenuItem runat="server">
<ItemTemplate>
search:
<telerik:RadTextBox ID="txtQuickSearch" runat="server" Height="12px">
</telerik:RadTextBox> <asp:Button ID="btnQiuckSearch" runat="server" OnClick="btnQiuckSearch_Click"
Text="Go" BackColor="#FF8000" Height="22px" Font-Size="Small" BorderStyle="Double" /></ItemTemplate>
</telerik:RadMenuItem>
The above code .iam not able to access textbox and button from the code behind.
Please give me the suggession.
Thanks
Satish.
var masterTable = $find("<%=dtInvoice.ClientID%>").get_masterTableView();
var amount = masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[row], "Apply")
if (amount)
{
amount.innerHTML = displayamt;
}
return false;
I have not figured out a way to pull the value on the serverside. I tried pulling using the dataitem but it always returns empty. What am i missing?
| <rad:radgrid id="UserGridRegular"> |
| <MasterTableView DataKeyNames="ID" DataKeyNames="ID"> |
| <NestedViewTemplate> |
| <Rad:RadGrid ID="nestedgrid" runat="server" OnNeedDataSource="UserGridRegular_NeedDataSource1"> |
| <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind" EnableNoRecordsTemplate="false" |
| DataKeyNames="ID,ParentID"> |
| <SelfHierarchySettings ParentKeyName="ParentID" KeyName="ID"></SelfHierarchySettings> |
| <DetailTables> |
| <Rad:GridTableView DataKeyNames="ID"> |
| <ParentTableRelation> |
| <Rad:GridRelationFields DetailKeyField="ID" MasterKeyField="ID" /> |
| </ParentTableRelation> |
| <Columns> |
| <Rad:GridTemplateColumn HeaderText="ID" |
| UniqueName="ID"> |
| <ItemTemplate> |
| <asp:Literal ID="Literal7" runat="server" Text='<%# Eval("ID") %>'></asp:Literal> |
| </ItemTemplate> |
| </Rad:GridTemplateColumn> |
| <Rad:GridTemplateColumn HeaderText="ParentID" |
| UniqueName="ParentID"> |
| <ItemTemplate> |
| <asp:Literal ID="Literal8" runat="server" Text='<%# Eval("ParentID") %>'></asp:Literal> |
| </ItemTemplate> |
| </Rad:GridTemplateColumn> |
| </Columns> |
| </Rad:GridTableView> |
| </DetailTables> |
| </MasterTableView> |
| </Rad:RadGrid> |
| </NestedViewTemplate> |
| <Columns> |
| <Rad:GridTemplateColumn HeaderText="ID" |
| UniqueName="ID"> |
| <ItemTemplate> |
| <asp:Literal ID="Literal2" runat="server" Text='<%# Eval("ID") %>'></asp:Literal> |
| </ItemTemplate> |
| </Rad:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| </rad:radgrid> |