Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
326 views
Hi,
 i am using radgrid with checkboxes  (GridClientSelectColumn), i want to obtain the functionality that :
If click on "Selct all" other checkboxes(content rows) should be disabled, and unchecking it shouls enable the content rows (im my case enabling the check boxes).
And how can I see whether the "select all" is checked? (for any actions like save/delete)

is it possible with gridclientselectcolumn? if not how can i achieve it?
regards
Naresh
Sebastian
Telerik team
 answered on 22 Apr 2010
1 answer
123 views
I have a RadTreeView control which has a list of possible choices.  When expanding a root node I want to display only those choices which have not been selected (listed in a RadListBox).  When I wire up the NodeExpand event as follows the Items collection of the RadListBox always returns zero items.

protected void AvailableOptions_NodeExpand(object sender, RadTreeNodeEventArgs e) 
    var selectedOptions = ItemForm.FindControl("SelectedOptions"as RadListBox; 
    var data = service.RetrieveAvailableOptions(e.Node.Value); 
    foreach (var item in data) 
    { 
        if (selectedOptions.FindItemByValue(item.Key) == null
        { 
            var node = new RadTreeNode(string.Format("{0} - {1}", item.Key, item.Value), item.Key) { Checked = e.Node.Checked }; 
            e.Node.Nodes.Add(node); 
        } 
    } 

The RadListBox items are populated on the client side using the following script:

function Add_Click() { 
    var availableOptions = $find('<%= ItemForm.FindControl("AvailableOptions").ClientID %>'); 
    var selectedOptions = $find('<%= ItemForm.FindControl("SelectedOptions").ClientID %>'); 
 
    availableOptions.trackChanges(); 
    selectedOptions.trackChanges(); 
 
    var checkedNodes = availableOptions.get_checkedNodes(); 
    for (var i = 0; i < checkedNodes.length; i++) { 
        if (checkedNodes[i].get_level() == 1) { 
            var item = selectedOptions.findItemByValue(checkedNodes[i].get_value()); 
            if (item == null) { 
                item = new Telerik.Web.UI.RadListBoxItem(); 
                item.set_text(checkedNodes[i].get_text()); 
                item.set_value(checkedNodes[i].get_value()); 
                selectedOptions.get_items().add(item); 
            } 
 
            checkedNodes[i].get_parent().get_nodes().remove(checkedNodes[i]); 
        } 
    } 
 
    for (var i = 0; i < checkedNodes.length; i++) { 
        checkedNodes[i].uncheck(); 
    } 
 
    selectedOptions.commitChanges(); 
    availableOptions.commitChanges(); 

I have added both controls to the RadAjaxManagerProxy to ensure ViewState is populated.

<telerik:RadAjaxManagerProxy runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="AvailableOptions"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="AvailableOptions" /> 
                <telerik:AjaxUpdatedControl ControlID="SelectedOptions" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 

What am I missing here?
Yana
Telerik team
 answered on 22 Apr 2010
1 answer
112 views
protected void RadScheduler1_OnDataBound(object sender, EventArgs e)     
    {     
       //Clear all resources of type 'user':      
        foreach (Resource res in RadScheduler1.Resources.GetResourcesByType("User Name"))     
        {     
            RadScheduler1.Resources.Remove(res);     
        }      
       //Add resources of type 'user' that are in use for the visible range of RadScheduler:      
        foreach (Telerik.Web.UI.Appointment a in RadScheduler1.Appointments.GetAppointmentsInRange(RadScheduler1.VisibleRangeStart, RadScheduler1.VisibleRangeEnd))     
        {     
            RadScheduler1.Resources.Add(a.Resources.GetResourceByType("User Name"));     
        }      
    }    
 

After doing more testing I've noticed a problem with the code example I was provided.  It appears that for evey entry by a particular user for the given date range it adds that user to the group by view.  So in the screen shot I provided Gabe has 9 entries for the week and he is showing up 9 times in the group by view.  Here is the code I'm using

T. Tsonev
Telerik team
 answered on 22 Apr 2010
1 answer
68 views
Hello,

I have a scheduler only in TimelineView.
And on one of the ressources have this methode :
protected void LinqDataSourceUsers_Selected(object sender, LinqDataSourceStatusEventArgs e)  
        {  
            var uir = (List<UserInRole>) e.Result;  
            foreach (var item in uir)  
            {  
                item.User.NomPrenom = item.User.NomPrenom + " (" + new BLLUser().getTempsPlannifieResteAPlannifier(item.IdUser) + ")";  
            }  
 
        } 

And because of this (I think) my scheduler look like : this (And I cant read the text I add)

Do you have any idea to solve this situation ?

Thank you !

Jean-Yves
T. Tsonev
Telerik team
 answered on 22 Apr 2010
0 answers
120 views
Hi,

this is shanker am doing one project that project is over.I put project in 'IIs ' .the project is running but i face one problem in chart , I  have one chart screen  .In iis that  chart not displaying. But normal it's displaying what s the problem in iis of that chart please it's argent  only chat is not displaying.How to solve this problem .

thanks and regards
shanker.B 
shanker bangari
Top achievements
Rank 1
 asked on 22 Apr 2010
4 answers
131 views
Hi there

we've detected different behaviours within the editor using different browsers.

Example for reproducing

1. Go to "http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx"
2. Choose new Lines as: Paragraphs
3. Change to the HTML view and remove the existing content.
4. Type in this <div>Hello</div>
5. Change back to the Design view
6. Press enter after the word "Hello" and type in "World"
7. Change to HTML view

The generated html in Firefox is formated like this (this is our preferred code)

<div>
<p>Hello</p>
<p>World</p>
</div>

The generated html in IE and Opera is formated like this

<div>Hello</div>
<div>World</div>

The generated html in Safari is formated like this

<p>Hello</p>
<p>World</p

Thanks
Uwe
Uwe Eichkorn
Top achievements
Rank 1
 answered on 22 Apr 2010
3 answers
77 views
Hide Row isn't hiding other RadControls in a RadGrid IE7 Works in Firefox 3.5

Telerik control version 2009.3.1208.20

Thanks
Thomas
Dimo
Telerik team
 answered on 22 Apr 2010
4 answers
104 views
Hi,

I am having one request for my project asking for one Dock per DockZone.
The user can drag and drop the Docks over the DockZones but if I drop a Dock on DockZone in which already one Dock existts then the dropped Dock should be moved back to its original DockZone.

Early help appreciated.
Thanks,
Avi
Pero
Telerik team
 answered on 22 Apr 2010
2 answers
111 views
Hi
is there a way to combine EnableSEOPaging and allow keep the sort order while paging?

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/seopaging/defaultcs.aspx?RadGrid1ChangePage=3

Thanks for Help
Hajo
Veli
Telerik team
 answered on 22 Apr 2010
4 answers
66 views
I'm trying to set the background in the 2nd level of a hierarchical grid that is also using a Custom skin. I've seen the other threads about using the !important attribute on the CSS class but that isn't working for IE8. Everything renders fine in Firefox (even without the !important) but for some reason IE8 doesn't allow me to do it.

What's really weird is on my localhost -- it works fine but when I move it to our Dev/Test/Production environments -- it doesn't work.

Thanks
Dimo
Telerik team
 answered on 22 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?