Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
163 views
Hi there,

I am trying to create a custom class which inherits radtimepicker class, and overrides the SelectedDate property of the class. but i am stuck at how to use this class with the radtimepicker control and let that control use the override property.

why i want to do this is because we have lots for classic RadControls in our application now we are migrating them to the new ajax version, previously we were using asp:TextBox with JS to get the time value and to validate the value, with radtimepicker we get all the functionality we want without any extra JS :). the only problem is getting only the time value from the radtimepicker and not the date with that. while searching i found i can do that by using CType(radtimepicker .SelectedDate, DateTime).ToString("tt") but this will take a lot of time to implement :(. if i can just override the SelectedDate property and place the above .ToString("tt") with the GETTER it will be more easy :).

i hope i am able to explain my problem. any example code will be a great help.

Thanks
Nitesh Monga
Veli
Telerik team
 answered on 13 Jul 2009
2 answers
145 views
Imagine a page with a control on it, say a textbox. Imagine the user hovers the mouse over the control and up pops a tooltip which reads ...

  "Enter the information requires (more)"

Further, imagine that the word 'more' is a hyperlink and that, if the user clicks on it, the tooltip resizes and shows a more details set of instructions.

Is this doable?

I've only used tooltips in a fairly simplistic way thus far and like to know whether or nor this is possible before I devote the time to trying to make it happen.

Many thanks

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 13 Jul 2009
1 answer
123 views
I've got a radgrid with a master table and a detail table, both of which are updatable using the built in Update/Insert options and databound using ObjectDataSources. The master table displays versioned information--data that changes QoQ for the business.

We want to change the functionality so that when changes are made, a confirmation dialog pops up to ask the user if they want to update the current record--or create a copy of it for the next quarter. And if they choose to create a copy of it, they will then need to enter a new Quarter Date. They want this confirmation fired whenever the "Edit" button is clicked or whenever the (Detail Table) "Expand" button is clicked.

Does anyone have any examples of something like this?

Thanks,

Jamal
Yavor
Telerik team
 answered on 13 Jul 2009
3 answers
127 views
I hve a RadGrid which has GridTemplate Columns that have a label inside them.  The database pulls back an integer, in the code behind I change the value of the int to a string which works great.

However, when I do my grouping the integer shows up in the grouped header and not the string. 

How can I get the string to show up like it does in the grid and not the integer without having to change it in the SQL?

Thanks
Veli
Telerik team
 answered on 13 Jul 2009
1 answer
91 views
I have a grid bound to an objectdatasource (base class datatable) and am trying to fliter using a dropdownlist for a boolean variable (took forever to figure our that the filter required a capitalized "True").

Here is my filter template:
                <FilterTemplate> 
                    Show:  
                    <asp:DropDownList runat="server" ID="ddlFilter" OnSelectedIndexChanged="FilterCombo_SelectedIndexChanged" 
                        AutoPostBack="true">  
                        <asp:ListItem Value="None" Text="All Cases" /> 
                        <asp:ListItem Value="Pediatric" Text="Pediatric only" /> 
                    </asp:DropDownList> 
                </FilterTemplate> 
 

the selectedIndexChanged:
        Protected Sub FilterCombo_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)  
            Dim filterExpression As String 
            If CType(sender, DropDownList).SelectedValue = "Pediatric" Then 
                filterExpression = "([Pediatric] = True)" 
            Else 
                filterExpression = String.Empty  
            End If 
            RadGridCases.MasterTableView.FilterExpression = filterExpression  
            RadGridCases.MasterTableView.Rebind()  
        End Sub 
 
itemcreated (it is the only filter I use):
        Protected Sub RadGridCases_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridCases.ItemCreated  
            If TypeOf (e.Item) Is Telerik.Web.UI.GridFilteringItem Then 
                If Not RadGridCases.MasterTableView.FilterExpression Is String.Empty Then 
                    CType(e.Item.FindControl("ddlFilter"), DropDownList).SelectedValue = "Pediatric" 
                End If 
            End If 
        End Sub 

I check on NeedDataSource and the filteringexpression is correct ([Pediatric] = True), but it wasn't filtering.

So I created a test checkbox column:
            <telerik:GridCheckBoxColumn DataField="Pediatric" AllowFiltering="true" /> 
 
and while this set the exact same filteringexpression, it worked. Combining my template and setting the GridCheckBoxColumn visible property to false also works, so no idea what is going on. Also, the sorting does work if any of this filtering is occuring (even if off)

Thanks,
Reuven

Veli
Telerik team
 answered on 13 Jul 2009
1 answer
124 views
Hi, i have a strange behaviors here :

When i put an ajax manager proxy in my content page,
my Asp:Table, lower on the page, have all his <asp:TableCell> content wrapped.

For example  without radajaxmanager proxy  i have my cell

---------------------------------------------------------------------------
|   Name : Franck                Email : Toto@titi.com                |
---------------------------------------------------------------------------


And when i add the radajaxmanagerproxy

---------------------------------------------------------------------------
| Name :                                                                                 |
| Franck                                                                                 |
| Email :                                                                                 |
| Toto@titi.com                                                                      |
---------------------------------------------------------------------------

And this with all my cells.
Except this problem, the radmanagerproxy is working fine.

Here the code :
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ListesBR">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListesBR" />
                    <telerik:AjaxUpdatedControl ControlID="ListesBU" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadListUsers">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadListUsers" />
                    <telerik:AjaxUpdatedControl ControlID="SupprimerUser_Btn" />
                    <telerik:AjaxUpdatedControl ControlID="Blocked_CB" />
                    <telerik:AjaxUpdatedControl ControlID="Password_Input" />
                    <telerik:AjaxUpdatedControl ControlID="ConfirmPassword_Input" />
                    <telerik:AjaxUpdatedControl ControlID="ListesBR" />
                    <telerik:AjaxUpdatedControl ControlID="ListesBU" />
                    <telerik:AjaxUpdatedControl ControlID="Nom_Input" />
                    <telerik:AjaxUpdatedControl ControlID="Prenom_Input" />
                    <telerik:AjaxUpdatedControl ControlID="NouvelUser_Lbl" />
                    <telerik:AjaxUpdatedControl ControlID="InfoTable" />
                </UpdatedControls>
            </telerik:AjaxSetting>



And my Table :

             <asp:Table GridLines="None" ID="InfoTable" runat="server" Width="450px">
                    <asp:TableRow>
                        <asp:TableCell HorizontalAlign="Center" Visible="true">
                            <asp:Label ID="NouvelUser_Lbl" ForeColor="Red" runat="server">NOUVEL UTILISATEUR</asp:Label>&nbsp;
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell HorizontalAlign="Left">
                            <asp:Label ID="Nom_Lbl" runat="server">Nom :</asp:Label>
                            <telerik:RadTextBox runat="server" ID="Nom_Input" Text="" Skin="Black">
                            </telerik:RadTextBox>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="Prenom_Lbl" runat="server">Prénom :</asp:Label>
                            <telerik:RadTextBox ID="Prenom_Input" runat="server" Width="125px" Skin="Black">
                            </telerik:RadTextBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="Label2" runat="server">Branche :</asp:Label>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="ListesBR" runat="server" AllowCustomText="False" OnSelectedIndexChanged="ListesBR_SelectedIndexChanged"
                                AutoPostBack="true" Width="280px" NoWrap="true" Skin="Black">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="EntiteBU_Lbl" runat="server">Sous Branche :</asp:Label>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="ListesBU" runat="server" AllowCustomText="False" Skin="Black"
                                Width="280px" NoWrap="true">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="Pass_Lbl" runat="server">Nouveau mot de passe (optionnel) :</asp:Label>
                            <telerik:RadTextBox ID="Password_Input" runat="server" Width="280px" NoWrap="true"
                                Skin="Black">
                            </telerik:RadTextBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="ConfirmPass_Lbl" runat="server">Confirmer nouveau mot de passe (optionnel) :</asp:Label>
                            <telerik:RadTextBox ID="ConfirmPassword_Input" runat="server" Width="280px" NoWrap="true"
                                Skin="Black">
                            </telerik:RadTextBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="Bloquer_Lbl" runat="server">Utilisateur bloqué</asp:Label>
                            <asp:CheckBox runat="server" ID="Blocked_CB" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Button ID="SupprimerUser_Btn" runat="server" OnClientClick="return blockConfirm('Êtes vous sur de vouloir supprimer cet utilisateur ?', event, 330, 100,'','Demande de confirmation');"
                                Text="Supprimer" />
                            &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Enregistrer_Btn" runat="server" OnClick="Enregistrer_Btn_Click"
                                Text="Enregistrer" />
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
Dimo
Telerik team
 answered on 13 Jul 2009
1 answer
101 views

Hi,

I am calling a radconfirm from a web page. After the user clicks on "OK or "Cancel" the radconfirm closes, the callback function gets invoked, but the focus is not returned to the control that had it before opening the radconfirm window.

I could set it by calling .focus() but I have more than 25 textboxes and I do not want to keep track of the control with the current focus. Using the standard browser confirmation windows keeps the focus were it was before opened.

Is there any possible solution for this? It forces the user to grab the mouse and click back on the page.

 

Thanks.
Fiko
Telerik team
 answered on 13 Jul 2009
4 answers
137 views
Hello Telerik Team !

I would like, throught RadCalendar, to give the ability to use the Column and Row headers as multi-selectors, but not give the ability to multi-select single days. As it, the user can select all the Mondays for example, or the whole 15th week of the year, but not the 5 march and 15 june and 6 april 2010, etc. (the user can select the 5 march individually, but not cumulated with another single day) Also, I would like that the pseudo-multi-selection that happens when a row or column header is clicked, could'nt be cumulated with a previous selection, creating a postBack.
Any ideas ?

Here is my code :
<telerik:radcalendar id="radCalSearch" runat="server"   
            enablemultiselect="false"   
            showrowheaders="true"   
            UseColumnHeadersAsSelectors="true"   
            UseRowHeadersAsSelectors="true" 
            enablenavigationanimation="false" 
            fastnavigationnextimage="~/images/btn_RadCal_FN.jpg" 
            fastnavigationprevimage="~/images/btn_RadCal_FP.jpg" 
            navigationnextimage="~/images/btn_RadCal_N.jpg" 
            navigationprevimage="~/images/btn_RadCal_P.jpg" 
            daynameformat="FirstTwoLetters" 
            onselectionchanged="radCalSearch_SelectionChanged" AutoPostBack="true">  
        <SpecialDays> 
            <telerik:RadCalendarDay Date="" Repeatable="Today">  
                <ItemStyle CssClass="radCalToday_Default" /> 
            </telerik:RadCalendarDay> 
        </SpecialDays> 
    </telerik:radcalendar> 

 Protected Sub radCalSearch_SelectionChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.SelectedDatesEventArgs) Handles radCalSearch.SelectionChanged  
            Try 
                SetSession(True, False)  
                If intSearchTabID <> -1 Then 
                    Response.Redirect(NavigateURL(intSearchTabID, False))  
                End If 
            Catch exc As Exception    'Module failed to load  
                ProcessModuleLoadException(Me, exc)  
            End Try 
        End Sub 

Sébastien
Adek
Top achievements
Rank 1
 answered on 13 Jul 2009
1 answer
144 views
Hi -

Can the RadXHPs be used to wrap web content forms in a manner similar to the RadAjaxManagerProxy? Does the RadAjaxManager still need to be included on the Master Page?

Thanks,
David
Tervel
Telerik team
 answered on 13 Jul 2009
8 answers
404 views
Hello

    I am using the  ASP.Net AJAX controls version 2008.2.1001.20

   I have problem usign the combobox ,Scroll bar for the dropdown of the comboBox is not as the same in the browser scrollbar, for all the skins it shows the scroll bar in gray color.

Earliest reply is appreciated

 Thank you



Simon
Telerik team
 answered on 13 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?