Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
Hi All,
          I m developing a webpart (in Sharepoint) in which I m using RadAjaxPanel to bind the control to the RadAjaxPanel in oeder to prevent postback. The webpart  displays the set of result bind in a datalist in which each raow contain one hyperlink upon the click of which it will redirect to a new page. Till here all works well but if I click on back button all the result set get vanished. I do figure out that using RadAjaxPanel the ViewStateof the page is not maintained. Can anybody help me out on how to preserve the viewstate of the page when using RadAjaxPane when redirected to other page. I m adding RadAjaxPanel Dynamically.


Any help will be appreciated.

Regards
Ajeet 
Iana Tsolova
Telerik team
 answered on 22 Apr 2010
1 answer
134 views
I am using classical version of telerik controls in my project.

I am trying to do the following thing.

Scenario: 
I have dock objects. Each dock object contain a button. when the button is clicked a new window will open within that dock object. 
I attached a jpg file for proper visualization. 

I have no idea is it possible or not. 

Animesh Chandra Dey



Pero
Telerik team
 answered on 22 Apr 2010
1 answer
66 views
Hi,

I've got a grid containing various columns from several joined tables. Also, the client requested Excell style filtering which means that for each column I'm generating a custom filter control in the header to mimic Excell (basically combobox checklist dropdown).

Now I also require updates to be possible for a few fields in this set, basically that shouldn't be too much of a problem. Let the update column generate and use the command events.
However, as I mention above, binding the grid takes some work and therefore some time as well. Clearly you can imagine that it's not desireable for any user to have to wait for the entire process to run each time an itemcommand is fired.
Both 'edit' and 'update' will  trigger the selecting events for each datasource. So the whole grid gets bound (selecting event of the main datasource/NeedDataSource event) and the combobox filters also get rebound (selecting event of those controls' respective datasources).

So ... shouldn't there be some way I can put a row in edit mode w/o rebinding the whole thing?

Actually it's sort of the same thing for the filtering. Can I not bind the data to the grid w/o rebinding all the custom filters?

Greetz
Yavor
Telerik team
 answered on 22 Apr 2010
4 answers
98 views
Hello,
how can i change the font / size of the current file? With the CSS selector .ruCurrentFile i can only set background-color etc but not the font or the size of the font.

with best regards
Meik Napierski
Meik Napierski
Top achievements
Rank 1
 answered on 22 Apr 2010
11 answers
347 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
131 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
117 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
76 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
124 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
135 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
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?