Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views
Hi,

Do you think I can use OnRowDragStarted event to let the dragclue icon change when I hover an area where the clue may be dropped like this demo:

http://demos.telerik.com/aspnet-ajax/treelist/examples/itemsdragdrop/defaultcs.aspx

I tried but I see that OnRowDragStarted has no get_destinationHtmlElement()

Thanks,
Marc
Antonio Stoilkov
Telerik team
 answered on 12 Apr 2013
2 answers
87 views
Hello everyone ..

I have a problem with IE 9 ..Once upon a time (!)  it posted like that

http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-groupbyexpressions-browser-compatibility.aspx#2570614

Any idea?

 Thnx
Hüseyin
Top achievements
Rank 1
 answered on 12 Apr 2013
1 answer
83 views
Hello,

fairly simple radgrid bound in OnNeedDataSource, everything works great except right clicking to bring up context menu over a template column. Is this a known issue? Tnx
Shinu
Top achievements
Rank 2
 answered on 12 Apr 2013
1 answer
63 views
I get an error in IE 8 and 10 when I try to add a table to the Editor:

Line: 1089
Error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: array
Misho
Telerik team
 answered on 12 Apr 2013
1 answer
397 views
I'm trying to follow along with this demo
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx

However I want to bind the datasource of the first nested radgrid on the code behind.

I thought it might be something like this but is it more complicated than this?
RadGrid1.MasterTableView.DetailTables.radGrid2.DataSource = myDatasource;

Also another question, when I bind to this nested grid (radGrid2), I send all records and the following code will filter or do I need to grab the ID on a method call within the radGrid1? If so please direct me to how to do accomplish this?
<ParentTableRelation>
                                                <telerik:GridRelationFields DetailKeyField="referenceID" MasterKeyField="referenceID"></telerik:GridRelationFields>
                                            </ParentTableRelation>


overview,
radGrid1 shows all records, use the dropdown and show records in the radGrid2 that pertain to that ID of radGrid1.

I foudn the following but get an error : on this line - (GridTableView)item.ChildItem.NestedTableViews[0]

Index was outside the bounds of the array.



protected void RadGrid1_PreRender(object sender, EventArgs e)
     {
         using (var db = new E3TDataContext())
         {
             citationItems = db.Citations.ToList();
             //RadGrid1.MasterTableView.DetailTables.radGrid2.DataSource = myDatasource;
          
         foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
         {
             GridTableView nestedView = (GridTableView)item.ChildItem.NestedTableViews[0];
             if (item["parentrowColumnUniqueName"].Text == "Text")
                 nestedView.DataSource = citationItems;
             else if (item["parentrowColumnUniqueName"].Text != "Text")
                 nestedView.DataSource = citationItems;
         }
        }
     }

Thanks
Shinu
Top achievements
Rank 2
 answered on 12 Apr 2013
3 answers
91 views
Dear Experts,
I am newbie in using telerik controls.
I have 25 columns in my select command, in which I want to show only 5 columns to users on UI, but when user export that data in excel file then all 25 columns value should exported in  excel.
can any one have any Idea how I can achieve this.

Thanks
Vijendra
Shinu
Top achievements
Rank 2
 answered on 12 Apr 2013
0 answers
106 views
Hello everyone,

I'm having problem with RadCombox here is my ASPX Code and i'm binding data using WCF

<telerik:RadComboBox ID="cmb" runat="server" Width="250px" Height="200px"
  Skin="Windows7" MarkFirstMatch="true" AllowCustomText="false" OnSelectedIndexChanged="cmb_SelectedIndexChanged"
  EmptyMessage="Select a Referral" EnableLoadOnDemand="true" DropDownAutoWidth="Enabled"
  EnableAutomaticLoadOnDemand="true" ItemsPerRequest="10" ShowMoreResultsBox="true"
  EnableVirtualScrolling="true" OnClientSelectedIndexChanged="onSelectedIndexChanged"
  AutoPostBack="true">
  <WebServiceSettings Method="GetLookup" Path="../Services/CommonService.svc" />
</telerik:RadComboBox>


here is my WCF method

[OperationContract]
    public RadComboBoxData GetLookup(RadComboBoxContext context)
    {
      RadComboBoxData result = new RadComboBoxData();
      List<Lookup> lst = null;
      try
      {
        lst = Data.GetLookup();
        if (lst != null)
        {
          var alll = from rl in lst
                            orderby rl.Name
                            select new RadComboBoxItemData
                            {
                              Text = rl.Name,
                              Value = Convert.ToString(rl.Id)
                            };
 
          string text = context.Text.Trim().ToLower();
          if (!String.IsNullOrEmpty(text))
          {
            alll = alll.Where(item => item.Text.Trim().ToLower().Contains(text));
          }
 
          int numberOfItems = context.NumberOfItems;
          var ls = alll.Skip(numberOfItems).Take(10);
          result.Items = ls.ToArray();
 
          int endOffset = numberOfItems + ls.Count();
          int totalCount = alll.Count();
 
          if (endOffset == totalCount)
            result.EndOfItems = true;
          result.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>",
                                         endOffset, totalCount);
        }
      }
      catch (Exception ex)
      {
        throw ex;
      }
 
      return result;
    }


i have attached error message Image that get fired when i selecting one of list from RadComboBox

Please help me ,
Kiresh
Top achievements
Rank 1
 asked on 12 Apr 2013
1 answer
154 views
Can I dynamic adding data to TreeList instead of using dataSource? it just like DataTable, we can add column and row by using behind code programming:

 Dim data As New DataTable
  data.Columns.Add("textHeader", GetType(String))
   data.Columns.Add("valueHeader", GetType(String))
 data.Rows.Add("text1", "value1")
 data.Rows.Add("text2", "value2")

Shinu
Top achievements
Rank 2
 answered on 12 Apr 2013
3 answers
122 views
I need to get the number of child nodes of a treelist node.
But the instruction item.ChildItems.Count is always zero.
What I am doing wrong.



    
protected void RadTreeList1_ItemDataBound(object sender, TreeListItemDataBoundEventArgs e)
    {
        if (e.Item is TreeListDataItem)
        {
            TreeListDataItem item = e.Item as TreeListDataItem;
 
            int numberOfChilds = item.ChildItems.Count;
 
 
....
Shinu
Top achievements
Rank 2
 answered on 12 Apr 2013
2 answers
100 views
Is it possible in code-behind to get formatting info (e.g., font name, font size, font colour, bold, justification, cell colour) of a specific cell?
Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 11 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?