Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
216 views

I'm running the latest build and using server side selection with a TreeListSelectColumn. Markup is below. The server side event SelectedIndexChanged is firing properly and I am using AJAX to update additional controls from the SQL database. Currently the user has to click on the checkbox (i.e. select column) to fire the selected index event and select the item in the tree. I would like to allow the user to click any column in the list to select the item (i.e. checkbox or item text) and fire the selected index event and subsequently the item to be selected.

Is this possible through a setting? I can't seem to find it. Or is there some custom code I need to add to implement this functionality. Thanks..

<telerik:RadTreeList ID="radtreeCustomer" runat="server" AutoGenerateColumns="false" AllowMultiItemSelection="false" GridLines="None">
   <Columns>
      <telerik:TreeListSelectColumn Display="true" UniqueName="Checked" HeaderStyle-Width="30px"></telerik:TreeListSelectColumn>
      <telerik:TreeListBoundColumn Display="false" UniqueName="Organization_Id" DataField="Organization_Id"></telerik:TreeListBoundColumn>
      <telerik:TreeListBoundColumn Display="false" UniqueName="Parent_Organization_Id" DataField="Parent_Organization_Id"></telerik:TreeListBoundColumn>
      <telerik:TreeListBoundColumn Display="true" UniqueName="Business_Name" DataField="Business_Name"></telerik:TreeListBoundColumn>
   </Columns>
</telerik:RadTreeList>
Steve
Top achievements
Rank 1
 answered on 26 Feb 2016
1 answer
113 views

Hi all;

I'm struggling with the best way to approach this one.  I have a requirement for a grid with two levels grouping (outer and inner).  The inner group requires aggregates of the average of the detail lines in the group - no problem there.  The outer group, though, needs the average of the inner group results -- NOT the average of all the child detail lines.  Anybody have any suggestions how I should approach this?

Thanks,

Jason

Eyup
Telerik team
 answered on 26 Feb 2016
5 answers
435 views
I have a RadTabStrip with 3 tabs ("Show Grid", "Show Chart", "Show Grid & Chart").  It is assigned to a RadMultiPage control with 2 pageViews.  

<telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" skin="Outlook" CssClass="NoBg">
 <Tabs>
   <telerik:RadTab runat="server" Text="Show Grid" PageViewID="PageView1">
   </telerik:RadTab>
   <telerik:RadTab runat="server" Text="Show Chart" PageViewID="PageView2">
   </telerik:RadTab>
   <telerik:RadTab runat="server" Text="Show Grid & Chart">
   </telerik:RadTab>
 </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage id="RadMultiPage1" runat="server" SelectedIndex="0" Width="400">
  <telerik:RadPageView id="PageView1" runat="server">
      show the radgrid
  </telerik:RadPageView>
  <telerik:RadPageView id="PageView2" runat="server">
     show the radhtmlchart
  </telerik:RadPageView
</telerik:RadMultiPage>

How do I make my 3rd tab "Show Grid & Chart" show both "PageView1" & "PageView2"?  Is this possible?  I do NOT want to add a 3rd pageView that has the duplicate controls in PageView1 & PageView2.

Please advise on how to do this either via client-side (javascript) or server-side (c#) code.

Thanks!

Chris
Top achievements
Rank 1
 answered on 26 Feb 2016
1 answer
102 views

Hi,

 

             I am having a # error which is inserted by the Rad DatePicker. When i open one of the DatePicker it closes suddenly and the page url adds the # symbol at the end of the Url. Can anyone tell me how to resolve this issue.

 

Thanks,

Pranith

Eyup
Telerik team
 answered on 26 Feb 2016
5 answers
199 views

I would like than the text of a row must just on one line.

Sometimes, the size text are so important and I would like to cut the text after 100px by exemple and don't put on line (by default).

Any ideas to resolve my problem?

Adrien
Top achievements
Rank 1
 answered on 26 Feb 2016
5 answers
130 views
Occasionally on a website I am getting a webresource error now I followed this site, http://www.telerik.com/blogs/debugging-asp-net-2-0-web-resources-decrypting-the-url-and-getting-the-resource-name ,and decrypted the web resource url. It seems to be throwing the error at pTelerik.Web.UI|Telerik.Web.UI.Skins.Default.Editor.ToolbarSprites.gif . I do have several pages that have a radeditor, but the decryption did not specify as to where the error occurred. Now, some of them have the skin to default where as the others don't have a skin set, of which I don't think it will matter. The only thing I can think of is that the skins dll and web ui dll are different versions. Now the error happens randomly. The skins dll is 2014 ver. whereas ui dll is 2015 ver. Would that cause the issue, and if not what else could cause it?
Vessy
Telerik team
 answered on 26 Feb 2016
14 answers
225 views
Hi,

I am getting this weird behaviour when i refresh the radgrid during an ajax call. Basically the first cell which is the row selection column, automatically gets a colspan of 2 which breaks the table structure.

problem

I have written a hack for this, but would prefere to not have to write javascript to fix the single cell. Has anyone come across this behaviour? If so, What was the problem?

function GridCreated(sender, eventArgs) { 
 
    var gridID = sender.get_id(); 
    if (gridID != null) { 
        var grid = $('#' + gridID); 
        var td = $("td[colSpan=2]", grid); 
        $(td).attr("colSpan",1); 
    } 


Thanks

Amar

Viktor Tachev
Telerik team
 answered on 26 Feb 2016
3 answers
136 views
Hi,

I am facing a strange situation with AjaxManager and, although the code works as expected, I receive everytime the following error:

JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null. Parameter name: key.

A simple code like the following raises the error, and usually all calls made to Ajax Manager from code behind are problematic.

   Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
        If e.Argument = "Rebind" Then
            RadGridItems.MasterTableView.SortExpressions.Clear()
            RadGridItems.MasterTableView.GroupByExpressions.Clear()
            RadGridItems.Rebind()
        End If

I am using version 2014.1.225.45 and Visual Studio 2013 (updated). I found the following thread thas looks similar but I cannot find a proper solution.
http://www.telerik.com/forums/rad-ajaxmanager-issue-with-telerik-reportviewer-webforms-reportviewer-control

I also have noticed that ajaxifying some other controls (RadCombobox or buttons) are also causing the error:

<telerik:AjaxSetting AjaxControlID="BtnAddtoBasket">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="BtnAddtoBasket" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>

Thanks.
Eyup
Telerik team
 answered on 26 Feb 2016
1 answer
172 views

Hi,

I have used InsertCommand when inserting new rows to the radgrid.

  

protected void grvTasks_InsertCommand(object sender, GridCommandEventArgs e)
{
    var editableItem = ((GridEditableItem)e.Item);
 
    GetTasks();
 
    if (_taskListMain != null)
    {
        Task newTask = new Task(_taskListMain.DataConnections);
 
        Hashtable values = new Hashtable();
        editableItem.ExtractValues(values);
 
        if (values["Name"] != null)
            newTask.Name = (string)values["Name"];
 
        if (values["Description"] != null)
            newTask.Description = (string)values["Description"];
 
        if (values["EstimateInHours"] != null)
            newTask.EstimateInHours = int.Parse(values["EstimateInHours"].ToString());
 
 
        _taskListMain.Tasks.TaskRows.Add(newTask);
        _taskListMain.Tasks.Save();
    }
}

 

I copy data from each field from hashtable to the final class properties. This means lot of rows if there are lot of fields, so I wondering is there another way to copy inserted data from GridEditableItem to final custom class? e.g. Similar function what is use in UpdateCommand ( editableItem.UpdateValues(task);)

 

Regards,

Auvo

Viktor Tachev
Telerik team
 answered on 26 Feb 2016
3 answers
325 views

Hello...

I have a radgrid1 (the parent) which allows you to insert records with a formtemplate.

 inside radgrid1's form template i have another radgrid (radgrid2) which basically is a child of radgrid one.... think of radgrid1 as a cars, and radgrid 2 as carparts.... so i want to insert a honda.... but as part of honda i want to add engine, seats etc.

 

my problem is i'm not sure how to approach a scenario where i click "add new record" on radgrid1... my formtemplate pops up... but because performinsert hasn't been called yet.... i can't add items to my radgrid2 since the parent doesnt have a datakeyvalue yet as parent record not inserted yet.

 

How would you go about this?  how would i databind the child grid when i'm still trying to add the parent?

Viktor Tachev
Telerik team
 answered on 26 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?