Hi!
I have a checkbox column within my TreeList, when Click [Add], I could get almost all of the fields within the <telerik:RadTreeList> except the checkbox field.
I have tried, if I changed the InUse Column to <telerik:TreeListBoundColumn>, it will be included in the ExtractValues Hashtable. But, when I changed it back to checkbox field(code as below), then it is not included in the hashtable. How could I get the value of the checkbox?
Thanks in advance!
SH
<telerik:TreeListTemplateColumn DataField="InUse" UniqueName="InUse" HeaderText="Enabled" EditFormHeaderTextFormat="Enabled: ">
<HeaderStyle Width="30px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' Enabled="false" />
</ItemTemplate>
<EditItemTemplate>
<asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' />
</EditItemTemplate>
<InsertItemTemplate>
<asp:CheckBox ID="chkInUse" runat="server" />
</InsertItemTemplate>
</telerik:TreeListTemplateColumn>
.aspx.cs
protected void radTreeList_InsertCommand(object sender, TreeListCommandEventArgs e)
{
Hashtable hashPCRelation = new Hashtable();
TreeListEditableItem editItem = e.Item as TreeListEditableItem;
TreeListEditFormItem oEditFormItem = editItem as TreeListEditFormItem;
editItem.ExtractValues(hashPCRelation);
...
}
Hi there
Is there a way to move the DataLabelFields and Title down?
The reason why i ask this. Is, i have line chart that goes into the Negative and my Labels show up on the 0 line and not at the bottom of the chart.
how can this be fixed?
i have attached a picture.
regards
Jeremy
Hello,
I would like to hyperlink the group footer in my GRID. I've tried several approaches on this forum and none of them are working for me. I would like to pass an ID as the hyperlink in each group footer and navigate to an internal page that will show information related to grouped items.
Any help from you guys would be highly appreciated.
Thank you.
1) Is there something similar to GridView’s CommandField in Telerik Radgrid? I need to edit fields row by row.
This is how it is done in GridView:
<asp:CommandField ShowDeleteButton="True" />
<asp:CommandField ShowEditButton="True" />
2) I also need to add a custom button for each row in RadGrid. How can this be done?
Thanks!
Can anyone advise: we need to have 2 slots which visually behave like the current 'All Day' slot - the other being an 'Any Time' slot. This means the job can be carried out any time throughout the day, whether a 10 minute or 2 hour job. Can we customise the scheduler so two slots appear and behave this way?
Alternatively, could we utilise the 1am slot for example (as none of our users would use this), rename it and then customise the view so the 1am/Any Time slot appears under All Day, and then skips 2 - 6am, followed directly by 7am which is by default the first hour of the working day view.
The reason we are hesitant to use/rename the 6am slot is that our users may need to use it.
Any help/advice massively appreciated.
Hi,
I am using a RadGrid to show data (obviously). Within a specific cell I have a literal that is called "DocumentName". The user has an option to rename that generic name to something custom. What I do is have a button that they click and an asp:TextBox control becomes visible with a save button. When I enter text into that textbox and hit the save button I want to get that new value from the textbox. However, I am getting an empty string every time. I have tried multiple ways Here is my code.
foreach (GridDataItem g in EventsDocsRadGV.Items)
{
// First way - returns an empty string
TextBox RenameDocumentName = (TextBox)g.FindControl("RenameDocumentName");
// Second way - returns an empty string
string txt = (g["EventTypeDesc"].FindControl("RenameDocumentName") as TextBox).Text;
// Third way - returns an empty string
GridDataItem item = (GridDataItem)g;
TextBox RenameDocumentName2 = (TextBox)item["EventTypeDesc"].FindControl("RenameDocumentName");
}
I also tried the same only wrapped in this loop
foreach (GridDataItem g in EventsDocsRadGV.MasterTableView.Items)
{
// First way - returns an empty string
TextBox RenameDocumentName = (TextBox)g.FindControl("RenameDocumentName");
// Second way - returns an empty string
string txt = (g["EventTypeDesc"].FindControl("RenameDocumentName") as TextBox).Text;
// Third way - returns an empty string
GridDataItem item = (GridDataItem)g;
TextBox RenameDocumentName2 = (TextBox)item["EventTypeDesc"].FindControl("RenameDocumentName");
}
I can access the other properties and cells that were bound onitemdatabound but not this textbox. Ideas?
Thanks!
What is the proper way to set/adjust the tab height when rendermode = 'Lightweight'?
I am using the latest version (Q2 2016)
Changing the height value on the control does not seem to work. Entering a number smaller than the default height cuts off the bottom of the tab, IE: text remains same distance from top of tab.
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Black" RenderMode="Lightweight" Height="25px" SelectedIndex="4" >
<Tabs>
<telerik:RadTab runat="server" Text="Root RadTab1" >
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Root RadTab2" >
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Root RadTab3" >
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Root RadTab4" >
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Root RadTab5" Selected="True" >
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
Entering a number larger than the default is ignored.
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Black" RenderMode="Lightweight" Height="325px" SelectedIndex="4" >
<Tabs>
<telerik:RadTab runat="server" Text="Root RadTab1" >
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Root RadTab2" >
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Root RadTab3" >
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Root RadTab4" >
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Root RadTab5" Selected="True" >
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
See attached image for examples.
I have bound a RadListView control with client side binding. I need to fire item data bound event and make the image controls (html image) visible true/false depending on the data record.
Also I want fire item command event on click of image (html image control) in the radListview and in that event, hide that item from the radListView.
Please suggest how to achieve the above two tasks.