Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
152 views
I have a Combobox that is using a tree view for the selectable items. The tree view is populated dynamically from database with load on demand using a web service.

The hierarchy of the tree view is arranged much like a file explorer, with files and folders.

I do not want to allow the user to select a folder, but only a file. I have added attributes to each node to set the proper image icon to be a folder or a file, etc.

How can I disable clicking on a node that has an attribute that indicates it is a folder?

Greg
Simon
Telerik team
 answered on 23 Nov 2009
4 answers
207 views

I'm using a dynamically added grid, and handing the grid a dataset during the NeedDataSource event.  The contents of that dataset can change based on some other controls I have for filtering.

Grouping and paging and ajax are enabled, and all seem to work fine.  The problem is the footer at the bottom always says the original row and page count.  So if I hand the grid a 16 row dataset in NeedDataSource, and then in the next call a 1 row dataset, the footer still says displaying page "Displaying page 1 of 2, items 1 to 15 of 16."

Turning gird viewstate on and off did not help, nor did setting the grid datasource to Null and doing a Rebind(). 

Is there some way to force the footer to refresh?

Martin
Telerik team
 answered on 23 Nov 2009
5 answers
171 views
I've started creating components and registering event handlers for the telerik controls as functions in my components. The problem is that the this keyword in my function does not point to my class so I can't reference other functions in my class. I've read that there are some addHandler methods out there that people have written to resolve this issue but wanted to ping the Telerik community to see if there is a best practice for dealing with this for telerik and/pr ms ajax solutions.

Example addHandler method to resolve this:

flexible javascript events

There is also this that I can try as well:

bindAsEventListener

I can use one of these (although I would want to find the version without the memory leak) but wanted to see if there is a better way to register telerik events to functions in custom ms ajax components that make the this keyword reference the class the function is contained within.



Iana Tsolova
Telerik team
 answered on 23 Nov 2009
4 answers
219 views
Hi

I am showing a pdf file in a window, but I can't persuade the title bar to show
anything but the pdf filename.  I have set the window Title property with the required text
declaratively, but I am not getting it to appear. I also tried code behind onLoad event
RadWindowPDF.Title = "my text" .

What can be wrong?

Thanks
Clive
Clive Hoggar
Top achievements
Rank 1
 answered on 23 Nov 2009
3 answers
98 views
Hi

I am trying to save the layout in my RadGrid. I got the HeaderContext enabled, when I deselect columns how can  I save this setting for this user?

thanks

Dirk
dingen
Top achievements
Rank 1
 answered on 23 Nov 2009
1 answer
82 views
I'll preface this by saying that what I'm after may be similar to the timeline view's TimeLabelSpan, except for slots in resource groupings - if that makes sense.

I have a scheduler control that I'm using to display appointments in timeline view only. Each appointment is assigned a resource and resourcing grouping is enabled.

The timeline view is configured to display 7 days. I have a requirement to modify the view for one of my resources so that there is only one 'slot' for the 7 days being shown. In case that's not clear, I have attached a screenshot of what this might look like.

The points to note are that the top resource grouping has no borders between the day slots and the whole thing would ideally be one table cell with colspan=7 or something.

I'm about to try and do this with some javascript hacks but if there's a 'nice' way of doing this I'd be happy to hear it.
Peter
Telerik team
 answered on 23 Nov 2009
1 answer
249 views
Hi Telerik Guys !

I have been  using the RAD MENU for a quite some while in my project.

The problem that I have been facing with RAD MENU is that, Iam not able apply the CSS in order to show the  selected item (CLICKED item)  of the RAD MENU .

All I want to show is a different CSS on the SELECTED ITEM  & other different CSS on the UN-SELECTED ITEM.

I have tried all your DEMO project CSS ut all in vain. I ahvent been able to find the solution.

It would be great if you guys please help me to solve the issue.

Below is the SCREEN-SHOT for which I need a CSS

Please help me !!!

Ajay Jamwal
Yana
Telerik team
 answered on 23 Nov 2009
2 answers
80 views
 Hello,

I am experiencing a problem with Scheduler when trying to set DayStartTime property with Web Service binding.

For example when I set  DayStartTime="00:00:00"  WorkDayStartTime="00:00:00"

        <telerik:RadScheduler runat="server" ID="RadScheduler1"      
            Skin="Sunset"      
            SelectedView="DayView"      
            SelectedDate="2009-11-18"      
            ShowAllDayRow="True"      
            DayStartTime="00:00:00"      
            DayEndTime="00:00:00"      
            WorkDayStartTime="00:00:00"      
            WorkDayEndTime="00:00:00" >    
            <WebServiceSettings Path="SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" />    
        </telerik:RadScheduler>       
 

on page load the Scheduler display the start time at 00:00:00 but less than half a second after (when the web service is returning the appointments), its appearance changes and the start time displayed is 8:00:00 AM.

I used the simple Web Service binding example available there : http://www.telerik.com/help/aspnet-ajax/webservicebinding-binding.html

Any ideas would be appreciated

 

 

Mike Taylor
Top achievements
Rank 1
 answered on 23 Nov 2009
3 answers
117 views
I need to restrict input in the combobox so that it only allows the numbers 0-9 and the backspace key.  I have tried the code here and here.  The code works in IE, but not in Firefox 3.5.

<telerik:RadComboBox ID="RadComboBox1" runat="server"  
    EnableLoadOnDemand="true"  
    AllowCustomText="true"  
    AutoPostBack="true"  
    OnItemsRequested="RadComboBox1_ItemsRequested" 
    OnTextChanged="RadComboBox1_TextChanged"  
    HighlightTemplatedItems="true" > 
    <ItemTemplate> 
        <div><%#DataBinder.Eval(Container, "Text") %></div
        <div><%#DataBinder.Eval(Container, "Attributes['Name']")%></div
        <div><%#DataBinder.Eval(Container, "Attributes['Number']")%></div
    </ItemTemplate> 
</telerik:RadComboBox> 

        function pageLoad() {             
            var combo = $find("<%= RadComboBox1.ClientID %>"); 
            var input = combo.get_inputDomElement(); 
            input.onkeydown = ComboBoxKeyDownHandler; 
        } 
 
        function ComboBoxKeyDownHandler(e) 
        { 
           if (!e) 
               e = window.event; 
                
           var code = e.keyCode; 
 
           //only allow 0 through 9 or backspace to be entered 
           if (!((code >= 48 && code <= 57) || (code == 8))) 
           { 
               e.returnValue = false
               if (e.preventDefault) 
               { 
                   e.preventDefault(); 
               } 
           } 
        }  

Simon
Telerik team
 answered on 23 Nov 2009
1 answer
78 views
Hello, I'm newbie in Telerik Controls.

I downloaded trial version, installed it and all seems ok.  I launch  "RadControls for  ASP.NET AJAX Q3 2009 Live Examples" and I can see the page. 
My problems come now: I try to open "Open Sample Web Site in Visual Studio". Project opens ok, no errors messages but when I try to build, computer sworks for a long time (aprox. 30m)  with no result and no message during this time. Finally this message appears: "Exception HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER)).

If I open any page (ex: in "Menu" folder"->"Examples"->"ImageOnly"-> "DefaultVB.aspx") controls retrieve me a great variety of errors: failed to create designer, system can't find file, ...

I'm working with Visual Studio 2008, RadControls 2009 Q3, Windows XP and 4Gb of RAM.

Any ideas to fix this problems?

Thanks in advance.






Pavlina
Telerik team
 answered on 23 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?