Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 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
416 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
104 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
136 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
164 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
142 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
109 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
1 answer
135 views
Hi Team,

I am using telerik rad chart in c#.net, how to apply the 3D feature to my stacked bar chart, is there any possiability with out using silverlite, can you please suggest.


Thanks in advance.
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 11 Apr 2013
1 answer
126 views
Hi,

I have a main grid with two hierarchical levels, the main level, and the child level. I am trying to insert record on the main level, and then once I have that record inserted, be able to insert a record onto the child record of that record, but insert it using the same ID as the main record. I already looked at this demo, http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultvb.aspx,
 and it is from where I am getting my bases from, but I am having difficulty when trying to insert a record onto the child level. I am using DatabaseAccessors not SQL connection strings or SQL Commands, I am working in vb.net. I am not sure how to save the fields being inputted, or if there is a way to treat the insert commands for the child table the same as the main table. 
Michael
Top achievements
Rank 1
 answered on 11 Apr 2013
4 answers
160 views
I have a requirement where I need to  have a GridCalculated column inside a GridTemplateColumn. I tried to search online but could not an answer to it.
when I try to add it I get an error.
Is it possible to have a GridCalculatedColumn inside a GridTemplateColumn? If yes then I would need a way to update it client side if a User changes a value.

Thanks
Pooja
Top achievements
Rank 1
 answered on 11 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?