Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
48 views
I'm using a rad grid with EnableSEOPaging with UseRouting. It work great but the problem is that I need to maintain the anchor link.
For example

/BrowseProducts/BUILDW/?#BUILDING-MATERIALS

should go to
/BrowseProducts/BUILDW/2?#BUILDING-MATERIALS

but goes to:

/BrowseProducts/BUILDW/2

Any suggestions?

Thanks
Radoslav
Telerik team
 answered on 12 Apr 2013
1 answer
126 views
Hi Guys,

I'm starting work on a project who is based on the Telerik RadAjaxManager control and our own control, but seems like the new registered JS on the fly doesn't be called or executes. To simplify the problem, I created a demo control which is really simple and just shows a js "alert" dialog. Also I created a demo to show how we use this demo control and "Telerik RadAjaxManager", if you download the attachment and run the demo, the "Default.aspx" will be shown and a "alert" dialog display,but the problem is that the "alert" dialog doesn't show up again if we click "click me" button. I don't know why. I'm not sure if there is anything wrong I did or it's bug for Telerik RadAjaxManager, if I remove the RadAjaxManager, everything will be fine. please help, it's really urgent for us.

More information:
My development machine: Win7 X64, en-us culture, Vs2010
Telerik.Web.UI.dll version: 2013.1.403.40

The demo attached download address: https://www.dropbox.com/s/mos9y7l4by4dytb/RedControlAjaxIssue.zip


Best Regards,
Johnny
Maria Ilieva
Telerik team
 answered on 12 Apr 2013
1 answer
116 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
92 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
84 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
66 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
406 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
98 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
118 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
158 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?