Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
374 views
Hello,
I'm trying to dynamically change my slider's values based on what the user chooses from a radio button list.  For this example, we'll say my range starts at 500-600 with large ticks every 20 and small ticks every 4.  Initially this works fine.  When I change my values client side using AJAX, the new range is 1000-1200.  I'm using the following to change the values:

function pricesSuccess_method(results, userContext, methodName) { 
                    var slider = $find('<%= uxPriceRangeSlider.ClientID %>'); 
                    slider.set_minimumValue(results[0]); 
                    slider.set_maximumValue(results[results.length - 1]); 
                    slider.set_selectionStart(results[0]); 
                    slider.set_selectionEnd(results[results.length - 1]); 
                    slider.set_smallChange((results[results.length - 1] - results[0]) / 25 > 1 ? (results[results.length - 1] - results[0]) / 25 : 1); 
                    slider.set_largeChange((results[results.length - 1] - results[0]) / 5 > 1 ? (results[results.length - 1] - results[0]) / 5 : 1); 
                    slider.Redraw(); 
                } 

This again works fine.  However, when I change the radio button back to its original setting, the values become unreadable and there are a ton of ticks.  I investigated using FireBug and found that there are list items inside the containing UL of the slider going from 500 to 1200.  All of the values on the slider appear to be correct (min, max, selection start and end), but for some reason, its adding all these list items.  I've tried removing them through jQuery but they just show right back up.  Any ideas?

I've attached images below.  First is initial, second is after the first radio button change, and third is after going back to the intial state.

*Ahem* I tried to attach images, but they disappeared and do everytime I try to upload them.
Zach
Top achievements
Rank 1
 answered on 19 Jan 2010
3 answers
369 views
I am new to the radGrid api, so bear with me.

Is there a way to add data (rows) to the grid from the client (javascript) WITHOUT binding the grid? I am thinking of something along the lines of a Rows() collection with an Add() method?

If not,  is it possible to late-bind the grid from the client using ADO.Net objects?  How about List<> or Dictionary<> objects - late-binding still being the key?

Thanks
seevo315

Paul Severson
Top achievements
Rank 1
 answered on 19 Jan 2010
1 answer
110 views
hi to give a brief description of how this would work...
panel bar will start with all panels open,
then as per user selection the panels will be open or closed as they browse the rest of te site...
ie 5 different panels available, but only panels 12 and 4 are open.
i think that this would be best worked through session information, but welcome ideas...
Thanks


Schlurk
Top achievements
Rank 2
 answered on 19 Jan 2010
6 answers
237 views
I have noticed the text in my context menu items are not left-aligned as it should be. Perhaps it is picking up a style from something else. Is there a way to ensure that these item texts get left-aligned?
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 19 Jan 2010
1 answer
89 views
Hi.

When using RadEditor in SharePoint, will the HTML-code and corresponding styles be saved the same way in the SharePoint database? If the server would crash and we restore a database with Wiki-pages made with RadEditor to a Sharepoint-site not using RadEditor, will the files be displayed correctly?

Just want to be 100% sure that RadEditor won't do anything crazy to the database so that restoring a backup of a SharePoint database will be problematic.

Thanks,
Daniel.
Stanimir
Telerik team
 answered on 19 Jan 2010
1 answer
145 views
Could it be possible to change filtering template on specific columns server-side on autogenerated columns?
I use radgrid in a composite server control. i have a custom filter column extended from GridBoundColumn. I'd like to replace default filter template (textbox and a button) with my own on specific columns.
As i can see from your examples, this can be set declaratively or when the column autogeneration is false on pageload event. Should I override some method when the default filters are applied to the columns?
Iana Tsolova
Telerik team
 answered on 19 Jan 2010
4 answers
184 views
Hello,

I'm creating dynamically some web users controls which contains a RadDatePicker. I'm using the DayRender event to disallow weekend selection. When doing full postback everything works fine, but If I use ajax(AjaxPanel or AjaxManager) I can select the weekend.

sample:
 <telerik:RadAjaxPanel runat="server" ID="panel1"> 
         <telerik:RadDatePicker runat="server" Visible="false" ID="dp1"> 
         <Calendar OnDayRender="dayRender"></Calendar> 
         </telerik:RadDatePicker> 
         <asp:Button runat="server" ID="btn1" OnClick="btn1_Click" /> 
</telerik:RadAjaxPanel> 
 protected void btn1_Click(object sender, EventArgs e) 
        { 
            dp1.Visible = true; 
        } 
         
        protected void dayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e) 
        { 
            if (e.Day.IsWeekend) 
            { 
                e.Day.IsSelectable = false; 
                dp1.Calendar.SpecialDays.Add(e.Day); 
            } 
        } 

Am I missing something?

Best regards,

Laurent
Pavlina
Telerik team
 answered on 19 Jan 2010
1 answer
159 views
 How do I remove all tooltips from the calendar? I have found the following properties. But cannot find the one to remove tooltip from coloumn headers. (Monday, thuesday etc.)

ShowDayCellToolTips
="false"
FastNavigationNextToolTip=""
FastNavigationPrevToolTip=""
NavigationNextToolTip=""
NavigationPrevToolTip=""
Dimo
Telerik team
 answered on 19 Jan 2010
4 answers
148 views
Hi

What event is fired after a drag and drop occurs? If I want to save the new date for the appointment.

/Mathias
Charles Henderson
Top achievements
Rank 1
 answered on 19 Jan 2010
4 answers
116 views
I have a page with tabs and each tab has a usercontrol.
On some of the user controls I have a grid. I noticed that on row selection , the grid header shifts to the left a little bit and then adjusts back to the original position.

If my grid is outside the user control I don't notice any visible shift.

Any help on this?
Dimo
Telerik team
 answered on 19 Jan 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?