Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
51 views
In my tree, the leaves are the data carriers, but I want a click on a particular node to (visually) select itself and all its descending nodes. I am then using the list of selected nodes in an Ajax request.

But I haven't been able to figure out how to accomplish this.

I started out by selecting all the node's children:

var toSelect = !node.get_selected();

if (toSelect)
                node.select();
            else
                node.unselect();

 children.forEach(function(child) {
                if (toSelect )
                    child.select();                    
                else
                    child.unselect();
            });

This does indeed select all the nodes. The problem though, is that it does not show (they don't turn blue). So I was looking for a way to do this through the Telerik client side API, but failed. So I turned to Jquery:

var tree = $find("rtCustomerGroups");
var nodes = tree.get_nodes();

nodes.forEach(function(node) {
if (node.get_selected())
node.addClass("rtSelected");
else
node.removeClass("rtSelected");

The problem with this approach is that, while it works visually, the browser does not seem to like it - as it's complaining (sometimes) with a typeError saying addClass/removeClass aren't functions.

This also breaks the javascript as the next line, calling the Ajax function, never gets run.

This really bugs me, as the selection really works the way I want, including multi selection with ctrl click.

Ivan Danchev
Telerik team
 answered on 02 Mar 2015
2 answers
320 views
We are removing all Infragistic controls from our website and converting them over to Telerik.

I am looking for any tools or information on how to convert UltraWebGrid over to Telerik RadGrid.

Thanks
C
Top achievements
Rank 1
 answered on 02 Mar 2015
5 answers
199 views
I have seen and tried this code that is floating around using this code bit:

<telerik:RadDatePicker ID="RadDatePicker1" runat="server">    
<Calendar runat="server" ShowDayCellToolTips="false">        
<ClientEvents OnLoad="calendarLoad" />    
</Calendar>
</telerik:RadDatePicker>

function calendarLoad(sender, args) {    
$(sender.get_element()).find("[title]").each(function (i, el)
 {        
el.title = "";    });

}

however when i use this code, it DOES remove the title text, but the tooltip still shows up blank. we have deployed the RadTooltipManager in our Master Page. is there some way to mute these blank tooltips from the calendar? is there no setting like ShowDayCellToolTips="false" for the day cells that apply to the navigation and Day of the Week titles?
this is very frustrating. any help would be GREATLY appreciated

thanks in Advance


Web Developer
Top achievements
Rank 1
 answered on 02 Mar 2015
0 answers
67 views
I need to consume a service to CRUD operation and bind the data to RadGrid. I need to understand which of the below two methods will give me good performance or both of them would yield same results.

1. Consume service using client side and bind to the RadGrid - something like demonstrated in this url - http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/insert-update-delete-client/defaultcs.aspx

2. Consume service using code behind (.Net Code) and ajaxfying the events using RadAjaxManager

For both of the above method, the effect would pretty much look the same but i guess there should be some performance difference?





A
Top achievements
Rank 1
 asked on 02 Mar 2015
1 answer
157 views
Is there a way to assign a tooltip or otherwise uniquely identify the spin up / spin down buttons on a RadNumericTextBox?  (Nothing jumps out in the documentation as to how to accomplish this; searches have been fruitless thus far.)

When running JAWS against our application in assistive technology mode, the buttons show up in the JAWS Links List as "Spin Up" and "Spin Down" so that there's no indication of with which control they're associated (see attached).

Daniel
Telerik team
 answered on 02 Mar 2015
1 answer
137 views
Hello,

I have a radGrid that populates with groups. The group header displays the group header title and aggregate sum as expected but the group header text is not aligned under the column name. All the header text is aligned in the left side of the groupheader. My code for calculates the sum is this:

protected void RadGrid1_PreRender(object sender, EventArgs e)
        {
            RadGrid1.HeaderStyle.Font.Size = 10;
            RadGrid1.GroupHeaderItemStyle.Font.Size = 10;  
 
            GridGroupByExpression gridGroupByExpression1 = new GridGroupByExpression();
            GridGroupByField gridGroupByField1 = new GridGroupByField();
             
            gridGroupByField1.FieldName = "GroupName";
            gridGroupByField1.HeaderValueSeparator = " ";
 
            gridGroupByExpression1.SelectFields.Add(gridGroupByField1);
            gridGroupByExpression1.GroupByFields.Add(gridGroupByField1);
 
            GridGroupByField gridGroupByField3 = new GridGroupByField();
             
            foreach (totals tot in totalsList)
            {
                gridGroupByField3 = new GridGroupByField();
                gridGroupByField3.FieldName = tot.name;
                gridGroupByField3.HeaderText = " ";
                gridGroupByField3.HeaderValueSeparator = " ";
                gridGroupByField3.FormatString = " (Total: {0})";
                gridGroupByField3.Aggregate = GridAggregateFunction.Sum;
                gridGroupByExpression1.SelectFields.Add(gridGroupByField3);
            }
 
            RadGrid1.MasterTableView.GroupByExpressions.Add(gridGroupByExpression1);
        }

I need to align the sum under the column name inside the groupheader text.

Thank you
Daniel
Telerik team
 answered on 02 Mar 2015
1 answer
100 views
When you select a file it then uploads the file and shows the remove button next to it. If you press the remove button the file disappears but when you do a postback and the fileupload event fires , it has the file that was deleted  in the collection and moves it to the target folder. This is in the 2015.1.225.45 version. It did not do this in earlier versions.
Plamen
Telerik team
 answered on 02 Mar 2015
1 answer
232 views
I have radgrid and in the GridTemplateColumn iteam template  I have comboBox. On button click event, I want to get the selected value of the comboBox inside radgrid. I have used following jquery code but it not giving me right output

  $("#RadGrid1 tr").each(function () {
                            var testBit = $(this).find("select[class*=ddtestCombox]").val();
                            }
                        });

how do I accomplished this task using jquery?

Thanks
Hristo Valyavicharski
Telerik team
 answered on 02 Mar 2015
0 answers
140 views
Hi Team,

We developed multiple file upload feature using RadAsyncUpload control with telerik version 2012.1.411.35 on our SharePoint platform.
Our environment have 4 web front end servers; hence we use network-shared-folder for Target and Temp folder of RadAsyncUpload  control.
This network-shared-folder was granted "full access" on Network Systems, Authenticated Users and Every One user accounts. But we are unable to succeed using RadAsyncUpload control.

So,
Can you tell us what permission / which user to be granted permission on this network-shared-folder?
Is it possible to use local-folder on all 4 WFE platform? Wouldn't we have issues during upload in this case?


FYI, the error we receive while using network-shared-folder is below,

System.Exception: RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path.    at Telerik.Web.UI.RadAsyncUpload.TestTemporaryFolderPermissions()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyn... 2089f4ca-c105-4340-ab32-ac3565390869

Thanks in Advance,
Elito
Top achievements
Rank 1
 asked on 02 Mar 2015
0 answers
101 views
If radcombobox contains items with special characters means non English characters like çã

Radcombobox is not closing after filtering, it  remains opened always and focus is not going out of the control, if focus is moving out i.e. if i press F12 for developer tools it is working

Please suggest a fix for this.
Mahesh
Top achievements
Rank 1
 asked on 02 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?