Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
895 views
Hi team,
I'm on version 2009.2.701.35. I need a way to set the parent node to (checked) when all children are (checked). 

 

telerik:RadTreeView Skin="Web20" runat="server" ID="radTVBranches" CheckBoxes="true"   
   
 
 
 
   
 
   
 
OnClientNodeChecked="AfterCheck">  
my ActerCheck function is written as this:   
Format Code Block(  
 
   
function  
 
   
 
AfterCheck(sender, eventArgs) (   
   
 
   
 
 
 
   
 
var childNodes = eventArgs.get_node().get_nodes(); //get all the child nodes   
   
 
 
 
   
 
   
 
var isChecked = eventArgs.get_node().get_checked(); //get all nodes that are checked   
   
 
 
 
   
 
   
 
var node = eventArgs.get_node(); // get the parent node   
   
 
 
 
   
 
   
 
   
 
// uncheck the parent if any child is unchecked.   
   
 
 
 
   
 
   
 
if (!node.get_checked()) {   
   
 
   
 
 
 
   
 
while (node.get_parent().set_checked != null) {   
   
 
node.get_parent().set_checked(  
 
 
 
   
 
false);   
   
 
nodenode = node.get_parent();  
 
}  
 
}  
 
UpdateAll(childNodes, isChecked, node);   
 
 
 
   
 
//update all nodes after check   
   
 
 
 
   
 
}  
 
)  
 

What am I missing ?
Thanks,
 DK
Derrick King
Top achievements
Rank 1
 answered on 11 Mar 2010
4 answers
274 views
Hi,
We discovered an omission in the RadControls VB.NET WebSite VSTemplate for Visual Studio 2008 in the RadControls for ASP.NET AJAX Q3 2009 SP2 distribution. Due to a wrong Telerik.Web.UI.VSX assembly version mentioned in the VSTemplate file, the Visual Studio IDE throws an error, saying "this template attempted to load an untrusted component 'Telerik.Web.UI.VSX, Version-2009.03.1313.0...".

Below are the steps to fix the problem:
  1. Download the attached RadControlsForASPNETAJAXVisualBasicWebSite.zip file and copy it to the [Visual_Studio_2008_Install_Dir]\Common7\IDE\ProjectTemplates\Web\VisualBasic folder (typically C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\Web\VisualBasic). When asked, replace the original one.
  2. EDIT (to fix the Telerik > Web node in the New Project dialog as well): In addition to replacing the zip file, extract its content to the [Visual_Studio_2008_Install_Dir]\Common7\IDE\Templates\Telerik\Web\VisualBasic folder, replacing the files when asked.
  3. Start a Visual Studio 2008 Command Prompt and run the following command:
    devenv.com /setup

Erjan Gavalji
The Telerik team
Lynn
Top achievements
Rank 2
 answered on 11 Mar 2010
1 answer
180 views

Can you provide or point me to an example of adding a RadToolTip to a RadGrid:GridImageColumn.

 

The sample code I have seen finds the target control using e.Item.FindControl to find the control by Id name but I don’t know how to find the GridImageColumn since it doesn’t have an Id attribute.

 

Thanks,

-Chip

Svetlina Anati
Telerik team
 answered on 11 Mar 2010
2 answers
239 views
I was viewing the sample that you have on your site for the TreeView and Editor drag and dropping of images between the two, and I was wondering if this would be possible with the RadGrid as well? I saw the demo of the Telerik RadGrid where rows can be dropped from one control to the other, and I was not sure if there was anyway of doing this with a 1 column RadGrid (which will contain images)?


Thank you in advance!
Tim O'Brien
Top achievements
Rank 1
 answered on 11 Mar 2010
7 answers
237 views
i am doing my grid binding, sorting, paging client side

i have handled the client side oncommand event like below as an example
 
function radGrid_Command(sender, e) { 
    showloadingpanel(true); 
    e.set_cancel(true); 
    var commandName = e.get_commandName(); 
    switch (commandName) { 
        case 'Sort': 
        case 'Page': 
        case 'PageSize': 
            //if the page has unsaved changes etc etc 
            if (confirm("changes not saved, continue?")){ 
                //pagemethod get my data using the grid pagesize, pageindex, sortcolumn, sort direction, rebind the grid on callback etc etc 
            } 
            else{ 
            //revert the sort, page or pagesize that was changed 
            showloadingpanel(false); 
        default: 
            break; 
    } 
} 


now it is the else part (reverting the grid to its precommand state) that i need help on

this is what happens in the case of changing the page index

i have a hundred records of page size 10
i am on page 4
i change something somewhere
i change to page 7
on confirm i refuse
result is the page index is still changed to 7 even though i cancelled the event

with sort the sort icon will remain on the previously sorted column (even though i have not allowed multi column sorting)
with pagesize change the new page size will change even though i cancelled


so i guess the question is how do i restore the grid to still select the page 4 that was still selected above or make the sort icon not show on the newly clicked (but sort command cancelled) column? or rever the page size?

thanx
Mula Njira
Top achievements
Rank 1
 answered on 11 Mar 2010
1 answer
81 views
Simple question, is there a Rad Button control like asp:Button?  I see a control for pretty much everything else, but doesnt seem to be anything for buttons.

J
Daniel
Telerik team
 answered on 11 Mar 2010
1 answer
236 views
Hi,

We have a grid control placed inside a iFrame where we are implementing the resize of the grid columns by setting AllowScroll= true and usestaticheaders = true.

I want to check whether it supports all the functionality if we place the grid control inside inside the iframe.
Right now we are facing issues regarding the scrolling and static headers apart from alignment of columns.

Below are the issues i am facing with the Telerik grid

1)  Grid Lines after each of the item/ AlternatingItem i.e each row in a grid as per screenshot alignment.gif
2)  Grid Header is not aligned with the cell content when static headers and allow scroll set to true as per screenshot alignment.gif.
3)  How to override the default css class by custom css classes
4)  How to set wrap option for a GridTemplateColumn because i need to set tooltip and wrap =false both.
5)  How to get the scrollbars at runtime if the grid is inside a iframe when i have resized the columns by default allowscroll set to false.
6)  What needs to be set if I need to seperate each of the Grid column header text just like seperator.
7)  When no of records are selected as 5 the pager row is not attached to the grid rows as per attached screenshot1
Please let me know the solutions for the above raised questions.

Thanks
Schlurk
Top achievements
Rank 2
 answered on 11 Mar 2010
0 answers
423 views
Hi guys,

We have discovered a small, but annoying bug in RadMultiPage in Q1 2010 release (version 2010.1.309).

PROBLEM
A JavaScript error can occur when using the debug versions of the MS AJAX library (<compilation debug="true"> in web.config).

SOLUTION
There are three solutions, please pick one of them:

1. Set ScriptMode="Release" property of the ScriptManager / RadScriptManager.

2. Disable the debugging in the web.config file:
    <compilation debug="false">

3. Override the dispose method of the control on the page:
<asp:ScriptManager ID="ScriptManager" runat="server">  
</asp:ScriptManager>  
 
<script type="text/javascript">  
    (function() {  
        var oldDispose = Telerik.Web.UI.RadMultiPage.prototype.dispose;  
        Telerik.Web.UI.RadMultiPage.prototype.dispose = function()  
        {  
           Telerik.Web.UI.RadMultiPage.callBaseMethod(this, "dispose");  
           oldDispose.call(this);  
        }  
    })();  
</script> 


What is Next
The problem is already fixed and will be available in the next Latest Internal Build and the first service pack.

We apologize for the caused inconvenience.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 11 Mar 2010
1 answer
103 views
Hi All,
            is there any way to add more space to Rad Tab Items Level 1, Can somebody let me know which CSS style we should change

Thanks in Advance

Thomson
Yana
Telerik team
 answered on 11 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?