Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
799 views
I've got a grid with 3 columns set to display=false and after updating my radcontrols to the non-trial version they appear on pageLoad even when Display="False" is set. Any ideas as to what could be the problem there?
Princy
Top achievements
Rank 2
 answered on 23 Apr 2014
1 answer
126 views
i have a radgrid with this column :

<telerik:GridBoundColumn Display="false" DataField="FEATURE_ID" UniqueName="FeatureID"></telerik:GridBoundColumn>

and it contains a detailtable.

what i want is to check every row, if Feature ID = 3 , the row should be expanded.


Princy
Top achievements
Rank 2
 answered on 23 Apr 2014
1 answer
198 views
I have a multi-column combobox that the user wants an ID to show in the box but be able to search on a name using the MarkFirstMatch. What I have noticed is the MarkFirstMatch works on the item.text when the databound event fires. If I set the ID to the text property then you can't search by name. If I set the name to the text property you can search by name but it will not display the ID. Is there anyway to get around this. I have tried the OnItemsRequested but the users don't like the list to get shortned, they just want the hi-light to go to the rows as they type.

telerik:RadComboBox ID="radCBTaxonomy" runat="server" AllowCustomText="true" HighlightTemplatedItems="true"
    DropDownWidth="350px" Width="125px" MaxHeight="200px" OnClientKeyPressing="ChangeToUpperCase" MarkFirstMatch="true"
    OnClientLoad="ChangeToUpperCase" AutoPostBack="true">
    <HeaderTemplate>
        <table style="width: 300px; text-align: left; font-size: 8pt">
            <tr>
                <td style="width: 100px;">
                    Taxonomy Code
                </td>
                <td style="width: 200px;">
                    Name
                </td>
            </tr>
        </table>
    </HeaderTemplate>
    <ItemTemplate>
        <table style="width: 300px; text-align: left; font-size: 8pt">
            <tr>
                <td style="width: 100px; text-transform: uppercase;">
                    <%#DataBinder.Eval(Container.DataItem, "Taxonomy")%>
                </td>
                <td style="width: 200px; text-transform: uppercase;">
                    <%# DataBinder.Eval(Container.DataItem, "ProvName")%>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</telerik:RadComboBox>

ItemDatabound event
e.Item.Text = (DirectCast(e.Item.DataItem, DataRowView))("ProvName").ToString.ToUpper()
e.Item.Value = (DirectCast(e.Item.DataItem, DataRowView))("Taxonomy").ToString.ToUpper()

Shinu
Top achievements
Rank 2
 answered on 23 Apr 2014
5 answers
399 views
Hello.

I have this issue i have grid that i modify data with the event ItemDataBound how can i get the sum and put in the footer of the grid of thes columns, since i dont populate this columns with NeedDataSource

Thanks in advence
Hector Hernandez
Top achievements
Rank 2
 answered on 22 Apr 2014
2 answers
131 views
I have a boolean ShowDelete. If it is true, Delete button in the grid columns should be visible. Not otherwise. How can I achieve this?
RB
Top achievements
Rank 1
 answered on 22 Apr 2014
5 answers
204 views
Can anyone please post some examples how to implement cascading functionality using AutocompleteBox.


I have a scenario where there are two Autocomplete dropdown listing Country and State values.

When the user selects a particular country, the state AutocompleteBox should automatically refresh and list the State values based on the country selected.

Thanks for the help.

Kannan
KANNAN
Top achievements
Rank 1
 answered on 22 Apr 2014
2 answers
244 views
I am implementing cascading dropdownlist . The dropdown are in the radgrid Inline Edit Mode.
protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
      {
 
          if (e.Item is GridEditableItem && e.Item.IsInEditMode)
          {
              GridEditableItem item = e.Item as GridEditableItem;
              GridEditManager manager = item.EditManager;
 
              HyperLink hyperLink = (HyperLink)item["OrderTask"].Controls[0];
              hyperLink.Visible = false;
 
              DropDownList droplist = new DropDownList();
 
              droplist.ID = "DropDownListOrderTask";
              droplist.AutoPostBack = true;         
              item["OrderTask"].Controls.Add(droplist);
              CascadingDropDown ccdOrderTask = new CascadingDropDown();
              ccdOrderTask.ID = "ccdOrderTask";
              ccdOrderTask.Category = "OrderTask";
              ccdOrderTask.TargetControlID = "DropDownListOrderTask";
              ccdOrderTask.PromptText = "Select Order Task";
              ccdOrderTask.LoadingText = "Loading OrderTask";
              ccdOrderTask.ServiceMethod = "BindOrderTask";
              ccdOrderTask.ServicePath = "ajaxservice.asmx";                            
                 
              TextBox txt = (TextBox)item["TaskOwner"].Controls[0];
              txt.Visible = false;
              droplist = new DropDownList();
              droplist.ID = "DropDownListTaskOwner";
              item["TaskOwner"].Controls.Add(droplist);
              CascadingDropDown ccdTaskOwner = new CascadingDropDown();
              ccdTaskOwner.ID = "ccdTaskOwner";
              ccdTaskOwner.Category = "TaskOwner";
              ccdTaskOwner.ParentControlID = "DropDownListOrderTask";
              ccdTaskOwner.TargetControlID = "DropDownListTaskOwner";
              ccdTaskOwner.PromptText = "Select Task Owner";
              ccdTaskOwner.LoadingText = "Loading Task Owner";
              ccdTaskOwner.ServiceMethod = "BindTaskOwner";
              ccdTaskOwner.ServicePath = "ajaxservice.asmx"; 
          }
      }

OnPrerender I have the following:
protected override void OnPreRender(EventArgs e)
       {
           base.OnPreRender(e);
            
           var ajaxManager = RadAjaxManager.GetCurrent(Page);
 
           if(ajaxManager != null)
               ajaxManager.AjaxSettings.AddAjaxSetting(this._UpdatePanel, this._RadGrid1, this._RadLoadingPanel);         
       }


In the ajaxservice.asmx I have the following:

[WebMethod]
      public CascadingDropDownNameValue[] BindOrderTask(string knownCategoryValues, string category)
      {
          OrderRequestTaskTypeTable _orderRequestTaskTypeTable = new OrderRequestTaskType_List().ExecuteTypedDataTable();
          List<CascadingDropDownNameValue> orderTaskDetails = new List<CascadingDropDownNameValue>();
          foreach(DataRow dtRow in _orderRequestTaskTypeTable.Rows)
          {
                 String orderTaskId = dtRow["OrderRequestTaskTypeId"].ToString();
                 String orderTaskName = dtRow["DescriptionTaskType"].ToString();
                  //orderTaskDetails.Add(new CascadingDropDownNameValue(orderTaskId, orderTaskName));
                 orderTaskDetails.Add(new CascadingDropDownNameValue("orderTaskId", "orderTaskName"));
           }
            return orderTaskDetails.ToArray();
      }            
          

The 1st dropdown which calls BindOrderTask is empty! Am I missing something?
Marin
Telerik team
 answered on 22 Apr 2014
7 answers
159 views
 Looking at implementing the radscheduler using the exchange provider to sync with a company Outlook account I have. Excellent examples. I got it to work using the C# example.
 
I was wondering if there is there a VB version of the example? Or any VB examples to work with?

Thanks.
Boyan Dimitrov
Telerik team
 answered on 22 Apr 2014
9 answers
216 views
We are observing that even with recent version of Telerik ASP.NET Ajax Rad Controls, that the JavaScript is detecting for IE, and then rendering the attachEvent method. Unfortunately, this has been deprecated in IE11, so the code would better render if it detected for features (attachEvent) rather than browser.

Relevant snippet of code from running the debugger as below. I am including an image taken from running the F12 debugger to show exactly what is failing. I tried to attach the ScriptResource.axd file, but am not able to attach in this forum because not allowed file type.
if($telerik.isIE){document.attachEvent("onmousedown",this._onDocumentClickDelegate);<BR>document.attachEvent("oncontextmenu",this._onDocumentClickDelegate);<BR>}else{$telerik.addHandler(document,"mousedown",this._onDocumentClickDelegate);<BR>$telerik.addHandler(document,"contextmenu",this._onDocumentClickDelegate);
Nencho
Telerik team
 answered on 22 Apr 2014
3 answers
353 views
Hi,
I m having hard time to display value in tooltip field of column series. Anytime I tried to set value, I always see Y value in tooltip.
See below the way I m adding series and tried to modify tooltip value.
For Each r As DataRow In ds2.Tables(0).Rows
    Dim item As New SeriesItem
    Dim name As String = r.Item("FVID")
    Dim vol As Integer = r.Item("total")
 
    item.Name = name       
    item.YValue = vol
    item.TooltipValue = name    <-- NOT WORKING
 
    barChartSeries.Items.Add(item)
 
    Dim xaxis As New AxisItem(name)
    BarChart.PlotArea.XAxis.Items.Add(xaxis)
Next
Danail Vasilev
Telerik team
 answered on 22 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?