Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
251 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
161 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
227 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
362 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
3 answers
182 views
Hi
Is there any way to stick Rad chart Axis Label Issue in Always the middle of Axis?! Please observe that, In that first image Axis Label  in the middle, Once I zoom in scroll to left and right, Axis Label  also moving. Please suggest what kind of options I have to set, to get the Axis Label  always in the middle.
Please find the below chart design code.

please reply as soon as possible

enter image description here          enter image description here

Thanks
Anandhi
Danail Vasilev
Telerik team
 answered on 22 Apr 2014
1 answer
204 views
Hi,
      I am working in radchart control. i am using addrange property to add X axis item dynamically. I have a requirement to show values in reverse order.  I need an immediate solution.






Thanks
Danail Vasilev
Telerik team
 answered on 22 Apr 2014
1 answer
111 views
Hi all,

First of I'm not sure this is the right place for my question, but I could't find a more appropriate.  

On a web page I have have sidebar and main content area. In the main content is a RadGrid with a collections of products of a selected product category. In the sidebar I have User control where the user can filter the product in the grid. This QuickFilter user control have a RadPanelBar and in every panel is a CheckBoxList. This UI of the was requirement from the client.

 The RadPanelBar Items and the CheckBVoxLists are created dynamic because that the number of filter categories (panels in the RadPanelBar) and the number of filter options (check boxes in the CheckBoxList) are different from one product category to another.
In the Page_Inet of the user control I create the RadPanelItems and the CheckBoxLists, so that they an there values are been persisted in the ViewState. In OnClick event of a button I read out the selected check boxes and query the database for the RaGrid and do a Rebind op the grid.
This works as expected.

But now build in a "Brand" selector. I's simple two RadioButtons sitting in the sidebar. In the SelectedIndexChange I have to build the Filter User Control again because that the filter categories and filter options are different between the two Brands.

But because the SelectedIndexChange fires after the Page_Init the new build RadPanelBar items en check boxes are not added to the ViewState. and therefor the selected values aren't persisted.

I have tried to build the RadPanelBar items en check boxes again on the SelectedIndexChange but this seems to work.

I would like just to refresch the Filter User Control in the SelectedIndexChange so that the Page_Init was fired again. Is this possible/ Or can I add the dynamic created controls and the value to the ViewState?

Or is there another solution?

Anders Pedersen
Ianko
Telerik team
 answered on 22 Apr 2014
1 answer
296 views
Hi,

i have created a radhtmlchart dynamically using c# code , now i want to create OnClientSeriesClicked event for this chart and through this event i want to call a java script function ,
what i am doing is that i am creating radhtmlchart using c# code and adding it to panel, this i have achived so far but now i want that when we click on the series of the chart some java scrip funtion should fire, i am not getting clear idea how to achive this .

till now what i have done is below (just a refernce).
create chart()
{
  RadHtmlChart1 = new RadHtmlChart();
               StyleChart();
               RadHtmlChart1.OnClientSeriesClicked += new EventHandler(this.SeriesClicked);
panel p = new panel();
p.controls.add(RadHtmlChart1 )
}

   private void SeriesClicked(object sender, EventArgs e)
      {
         ClientScript.RegisterStartupScript(this.GetType(), "print", "<script>RadHtmlChart1_SeriesClicked();</script>");
         
      }

but i am getting a runtime exception if iam doing this way ("Microsoft JScript runtime error: 'System' is undefined");
Danail Vasilev
Telerik team
 answered on 22 Apr 2014
1 answer
85 views
Hi,I have a RadGrid that has a mastertable and detail tables. Detail tables are loading with "DetailTableDataBind".

I want to sort mastertable and detail tables but their data structure are different. When i try to sort detail table only, it worked. but when i added a sort function to mastertable, it overrides the detail tables' sort function.

Can i sort them seperately with different functions.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 22 Apr 2014
1 answer
97 views
Hi iam having one aspx page in my application. after running it iam getting some extra blank width in right side how to avoid this please help me. .
Vessy
Telerik team
 answered on 22 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?