Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
264 views
Hi

i have a radnumeric textbox with type="Percentage". suppose if user enter morethan 100% i need to restrict .how can i achieve
looking for help

AdvancedThanks

Shinu
Top achievements
Rank 2
 answered on 09 Jan 2009
1 answer
207 views
I have a RadCalendar control, and I have a DataList control whose ObjectDataSource is bound to the SelectedDate property of the calendar control.  Selecting a date on the calendar populates the DataList with data for that day.  The problem I'm running into is if you click the day that's already selected, the calendar apparently unselects that day, and an invalid DateTime is passed to the ObjectDataSource  (DateTime.MinValue).  I want to prevent this from happening by disabling the unselecting of the current day, but I can't seem to find a way to do it.  I have explored canceling the event in the OnDateSelecting client event if args.IsSelecting == false, but that also cancels valid attempts to change the date as well, since it first tries to unselect the current day before selecting the new one.  How can I prevent the user from unselecting the date?

For reference, here's my code:

<telerik:RadCalendar   
    ID="RadCalendar1"   
    runat="server" 
    EnableMultiSelect="false"   
    AutoPostBack="true"   
    ShowRowHeaders="false"    
    UseColumnHeadersAsSelectors="false">  
    <ClientEvents OnDateSelected="OnDateSelected" /> 
</telerik:RadCalendar> 
 
<script type="text/javascript">  
    function OnDateSelected(sender, eventArgs) {  
        sender.set_autoPostBack(true);  
    }   
</script> 

In my codebehind, I'm setting the calendar's AutoPostBack property to false on PageLoad, and then setting it to true in the OnDateSelected client event.  This allows me to change months on the client side, and only post back when a date is selected.  I don't  know if it has any effect on the current situation, but I thought I'd point it out.

Princy
Top achievements
Rank 2
 answered on 09 Jan 2009
1 answer
184 views
Hi all,

I can't find the suggestions forum anymore, so here an idea for another control.
I was looking for a way to downoad large files from an ASP.NET page. I concluded that there are many ways to do this, so I thought, maybe this would be nice for another great telerik control: r.a.d.download?

Some features it should contain:

  • Download large files
  • Force the 'Save As' dialog
  • Resumable downloads
  • Progress dialog
  • Transfer manager (?)

So, what do you people think about that? It's just an idea. In the mean while: I'm still looking for some good examples on how to download large files, so if anyone has done this, please let me know?! :)

Thanks,
Daniel Plomp
Ivo
Telerik team
 answered on 09 Jan 2009
1 answer
147 views
Hi ALL,
I have a RadGrid inside the panel ,which I attached to ModalPopupExtender as PopupControl,the problem that when I click on the nextpage  of the radgrid the popup disappear !!!!!!!????


thank in advance
ghadeer
Princy
Top achievements
Rank 2
 answered on 09 Jan 2009
1 answer
71 views
Hi,
I am trying to show only 4 tools in an editor - very similar to what is going on in the editor I am using to write this post.
My code is simply:
<telerik:RadEditor ID="RadEditor1" runat="server"
                    <Tools> 
                        <telerik:EditorToolGroup> 
                            <telerik:EditorTool Name="Bold" /> 
                            <telerik:EditorTool Name="Italic" /> 
                            <telerik:EditorTool Name="Underline" /> 
                            <telerik:EditorTool Name="InsertUnorderedList" /> 
                        </telerik:EditorToolGroup> 
                    </Tools> 
                    <CssFiles> 
                        <telerik:EditorCssFile Value="~/Styles/Editorial.css" /> 
                    </CssFiles> 
</telerik:RadEditor> 

The css file changes the background of the editor so that it is not using the master page's background.
Now this looks fine in VS 2008, but when I run it, 16 buttons appear in a single row, and when I hover over one, 4 of them "select."
It is true that the 16 buttons only do the 4 functions I am looking for, but I only want the 4 buttons.  What am I missing?
Thanks.


Svetlina Anati
Telerik team
 answered on 09 Jan 2009
5 answers
760 views
Hi,

I almost have the following working but am missing a little bit of information.

I have a RadGrid with the following definition in the Command Item Template:

<CommandItemTemplate> 
                    <table style="width: 100%;">  
                        <tr> 
                            <td style="width: 50%;">  
                                <href="#" onclick="return ShowInsertForm();">  
                                    <img alt="Insert" border="0" height="20" src="AddRecord.gif" width="20">  
                                    Add New Record</a> 
                            </td> 
                            <td style="width: 50%" align="right">  
                                <asp:CheckBox ID="chkShowCompleted"  OnCheckedChanged="chkShowCompleted_CheckChanged"   
                                runat="server" Text="Show Completed" Width="163px" 
                                    AutoPostBack="True" /> 
                            </td> 
                        </tr> 
                    </table> 
                </CommandItemTemplate> 

Works great and shows exactly as I want.

I then have:
    Protected Sub chkShowCompleted_CheckChanged(ByVal sender As Object, ByVal e As System.EventArgs)  
        Dim chkbox As CheckBox = sender 
        lblShowComplete.Text = "False" 
        If chkbox.Checked Then  
            lblShowComplete.Text = "True" 
        End If  
        RadGrid1.Rebind()  
    End Sub 

Again, seems to work OK.  I look at the value in lblShowComplete when rebinding the grid and can evaluate whether to show complete records or not.

What I cannot seem to work out is how to keep the checkbox checked when the grid is re-displayed.  I could do it by setting the CheckBox control, but don't know how to access it within the Command Item Template.

Any help appreciated

David Penny
Princy
Top achievements
Rank 2
 answered on 09 Jan 2009
0 answers
74 views
how to define the width for the Base grid , in run time it's allocating dynamic width to grid , i would like to avoid that
Praba
Top achievements
Rank 1
 asked on 09 Jan 2009
1 answer
122 views
I have three ajax-enabled grids on one page along with 50 or so other RadTextBox, RadNumericTextBox, and RadComboBox controls.  I have only one RadAjaxLoadingPanel and one RadAjaxManager that are used to load the ajax-enabled controls.  One of my grids extends beyonds the edge of the screen (due to the number of columns in it) and causes the browser to be horizontally scrollable.  The problem I'm having is that when I edit an item in the grid (using an edit form template), the grid displays the form and then freezes for a few seconds before I'm able to do anything with it.  On top of that, when I edit a different grid on the page, it seems to lag as well.  So I really can't tell if each grid is doing it on its own or if it's the fact that I've got so much going on on the page.  Other than that, all functionality is working as expected.  My questions are: 

1.    Do I need more than one RadAjaxLoadingPanel or is it ok to have one loading panel for multiple grids?
2.    Could the lag of a grid be caused by the fact that it is wider than the screen?  (I've already tried adding the ClientSetting that forces the grid to be horizontally scrollable and that did not fix the problem)
3.    Does it sound like I have things set up ok?

Here's the code for my RadAjaxManager
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" > 
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="lbtnSave">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="pnl1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                            <telerik:AjaxUpdatedControl ControlID="pnl2" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                            <telerik:AjaxUpdatedControl ControlID="pnl3" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                            <telerik:AjaxUpdatedControl ControlID="pnl4" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                    <telerik:AjaxSetting AjaxControlID="grid1">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="grid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                    <telerik:AjaxSetting AjaxControlID="grid3">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="grid3" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 

I've already gone through and reviewed most of the posts and documentation on radgrid's performance optimizations and none of that information seemed likely to help at all.  I'd like to initially get some feedback and if I still have this issue I'll open a formal support ticket.

FYI...I also created individual pages to put each grid on a separate page for testing purposes and that didn't seem to help.  I'm really thinking I've got something simple not configured correctly.
Yavor
Telerik team
 answered on 09 Jan 2009
7 answers
524 views
Hi there,
I am hoping someone can help me out. Let me try explain what I am doing. I have a page that displays thumbnail imagesusing the tooltip manger when a user hovers over the image the tooltip manager loads a usercontrol that displays the normal sized image with a button allowing the user to delete the image.

I have wired up the delete event correctly but I am a little clueless on how I can
  •  Close the tooltip after my delete event happens
  •  Then once the tooltip has closed call my image binding event on the main page to rebind my list of images removing the image that has just been deleted.

    Can anyone suggest what I should be doing?

    Thank you
Svetlina Anati
Telerik team
 answered on 09 Jan 2009
1 answer
126 views
Hi - I have a simple CMS that I am building for my users, and I would like to allow them to embed a datagrid (bound to a table in our SQL db) into content within RadEditor - is this possible? If so, how would I go about it?
Tervel
Telerik team
 answered on 09 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?