<telerik:GridTemplateColumn HeaderText="Account" UniqueName="Account"> <ItemTemplate> <div> <asp:DropDownList ID="ddlAccountLookup" Visible="false" runat="server"> </asp:DropDownList> <asp:Label ID="grdAccountName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AccountName") %>' /><br /> <asp:Label ID="grdPhone" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Phone") %>' /><br /> <asp:Label ID="grdEmail" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Email") %>' /> </div> </ItemTemplate> <HeaderStyle CssClass="BigNormalBold" HorizontalAlign="Left" VerticalAlign="Bottom" /> <ItemStyle CssClass="Normal" /></telerik:GridTemplateColumn>Hello
Support,
Currently
we are using trial version of telerik.
We
have Telerik reports, grids and charts in our application
We
want to purchase the Telerik license for the application.
Could
you please assist which product we should buy to fullfill our
requirements and what is the process to buy the license.
Thanks and Regards
Sandip Katore
Hiiii,
We have a Tree view and clicking "+" uses the web service . How to call the web service explicitly to expand that node and get it selected .
<telerik:RadTreeView ID="RadTreeViewBottom" runat="server" PersistLoadOnDemandNodes="false" RegisterWithScriptManager="true"
LoadingStatusPosition="None" OnClientNodeClicked="RadTreeViewBottom_ClientNodeClicked"
OnClientKeyPressing="RadTreeViewBottom_ClientKeyPressing" EnableViewState="false"
OnClientNodePopulating="RadTreeViewBottom_ClientNodePopulating"
OnClientLoad="RadTreeViewBottom_OnClientLoad"
OnClientNodeDataBound="NodeDataBound" OnClientNodeExpanded="Expanded"
Style="white-space: normal;">
<WebServiceSettings Method="ViewerBottom_GetNodesChildren" Path="~/ScriptServices/ScriptService.asmx" />
<Nodes>
<telerik:RadTreeNode Text="ExistingNode" Visible="True"/>
</Nodes>
</telerik:RadTreeView>
Below one is the Webmethod which i use to call in the web service
[WebMethod(EnableSession=true)]
public RadTreeNodeData[] ViewerBottom_GetNodesChildren(RadTreeNodeData node, object context)
{
IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context;
int topID = int.Parse(contextDictionary["TopID"].ToString());
string type = contextDictionary["Type"].ToString();
int parentID = 0;
if (node != null)
parentID = int.Parse(node.Value);
object[] parms = new object[3];
parms[0] = (int)topID;
parms[1] = type;
parms[2] = parentID;
global::Viewer.ViewerService.Outline outline = (ViewerService.Outline)Data.WebServiceDataProvider.GetData(Data.ViewerClientServiceWrapper.MethodName.getOutline, parms);
ViewerService.OutlineItem[] outlineItems = outline.ChildItems;
List<RadTreeNodeData> result = new List<RadTreeNodeData>();
foreach (ViewerService.OutlineItem item in outlineItems)
{
RadTreeNodeData nodeData = new RadTreeNodeData();
nodeData.Text = item.Title;
nodeData.Value = item.Id.ToString();
nodeData.Attributes.Add("DocID", item.DocumentId);
if (item.HasChildren)
nodeData.ExpandMode = TreeNodeExpandMode.WebService;
result.Add(nodeData);
}
return result.ToArray();
}
Below is my JS 1183 is parent node and 1185 is the child node.
var node1 = parentNode.findNodeByValue("1183");
if (node1 == null)
return;
else {
node1.expand();
var node2 = parentNode.findNodeByValue("1185");
if (node2 != null) {
node2.select();
}
in JS here node2 returns me null i think because I'm not able to Call the Webservice ecplicitly can anyone suggest me ? how to call it programatically .
We would like add a custom attribute with a unique value to each option (<li>) in RadComboBox. Either the custom attribute needs to be added to <li> tag or add a <span> tag inside <li> tag and add custom attribute to <span> tag.
We load the options to ComboBox using web service. I read the Item Templates are not supported when we use a web service to populate RadComboBox with data so we assume adding a <span> tag with custom attribute is not possible.
Is there any way to achieve this?
<ul class="rcbList">
<li class="rcbHovered">1</li>
<li class="rcbItem">2</li>
<li class="rcbItem">3</li>
<li class="rcbItem">4</li>
<li class="rcbItem">4</li>
<li class="rcbItem">5</li>
</ul>


Hello,
i have a column in rad data grid which bind to property from TimeSpan type the kind of this column is template and i present the data in this format HH:MM:SS, when hour present the total hours (more then 24) from this function:
protected string PrintTimeSpan(TimeSpan? time) { return time == null ? "N/A" : string.Format("{0}:{1}:{2}", (int) time.Value.TotalHours, time.Value.Minutes, time.Value.Seconds); }
I want to enable to filter this column when user input will be in same format currently when i enter input with more than 24 hours it throw error about the format, how i costume the action of some filters on template column (like "greater than" and "less than"), without to implement the section of filter template in myself.
in addition how i define validator on filter filed to unable to enter string with wrong format, currently i can enter in this column filter of kind time span regular string and get error on page when try to filter
this is example of my column definition
01.<telerik:GridTemplateColumn DataField="AllGood" FilterControlAltText="Filter AllGood column" SortExpression="AllGood" UniqueName="AllGood" FilterControlWidth="70px">02. <HeaderTemplate>03. <table style="width: 100%; text-align: center">04. <tr style="text-align: center">05. <td>06. <asp:Image runat="server" AlternateText="Status - All Good" ToolTip="Status - All Good" ImageAlign="Middle" Height="60px" Width="60px" ImageUrl='~/Images/Stations/Green.png' />07. </td>08. </tr>09. </table>10. </HeaderTemplate>11. <ItemTemplate>12. <asp:Label ID="AllGoodLabel" runat="server" Text='<%# PrintTimeSpan((TimeSpan?)Eval("AllGood")) %>'></asp:Label>13. </ItemTemplate>14. </telerik:GridTemplateColumn>
I'm working on customizing advanced form of the scheduler.
I have been able to achieve the customization part using user controls (AdvancedForm, ResourceControl and MultipleValuesResourceControl).
I have two controls of single value resource control type and one control of multiple values resource control type. Find the screenshot depicting this.
My requirement involves replacing this multiple values resource control from check boxes to a multi-select combo box.
I tried replicating the current multiple values resource by adding a new user control, called it MultipleValuesDropDownResourceControl.ascx, registered it in AdvancedForm and tried making changes in the MultipleValuesDropDownResourceControl.cs file to replace with but I wasn't able to achieve this functionality. I wasn't able to even partly achieve this, hence I don't have any code to share.
Can anyone please provide some guidance on how a control type can be modified.
Links I have referred to achieve customized advanced form - http://www.telerik.com/support/code-library/customize-the-advanced-form-with-the-advanced-template-user-controls
http://www.telerik.com/videos/aspnet-ajax/advanced-aspnet-ajax-scheduler-customization (tutorial I followed)
http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/customize-the-advanced-form-template