Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
126 views
Not sure why, but enabling Single Input on the RadMaskedTextBox breaks it. You can't type in the textbox, but if you paste in it it formats the input correctly. 

For example: 
<form id="form1" runat="server">
<asp:ScriptManager runat="server">
</asp:ScriptManager>
<div>
    <telerik:RadMaskedTextBox ID="MaskTest" runat="server" Mask="(###) ###-####" EnableSingleInputRendering="true"
        HideOnBlur="true">
    </telerik:RadMaskedTextBox>
</div>
</form>

pasting a valid telephone number works, but the textbox doesn't allow you to type in it including number. 

Anyone know why this is? 

Regards,
Jacques
Jacques
Top achievements
Rank 2
 answered on 08 May 2012
2 answers
83 views
Hi all.
I have a radtreeview filled from a database in code behind.and a radtreeviewcontextmenu working correctly on the radtreeview.
I've implemented some classical node operations  from client side (add,rename,delete,ecc.) .
Then I access these client changes on server side by ClientChanges  property.
So far so good.

Here's the problem I can't solve..

Client side changes are available on the server side after postback, but I don't want to call a postback with a 
classic button onclick event..I would like to call a postback after every client operation made by contextmenu !
Is it possibile ?
I have everything to get it. All the client functions are ok and the clientchanges routine on code behind calling the database save function.
The only missing link is how to call/invoke a postback from client side to perform the clientchanges routine..
May you help me ? 
Thanks in advance guys
Gabriele


Gabriele
Top achievements
Rank 1
 answered on 08 May 2012
0 answers
73 views
Ignore - PEBKAC - got the wrong Ajax Setting.
Peter
Top achievements
Rank 1
 asked on 08 May 2012
1 answer
81 views
I have a RadWindow that is not modal, however when I click on the parent page of the RadWindow, the RadWindow will not hide. How do I change focus and send the RadWindow behind its parent page?
Princy
Top achievements
Rank 2
 answered on 08 May 2012
1 answer
94 views
In RadComboBox can i modify the vertical scroll bar so the vertical scroll bar just float in top of design without mess my design? Please someone help me. I attach my screenshoot.

Thanks,

Michael
Kate
Telerik team
 answered on 08 May 2012
24 answers
358 views
I just downloaded the trial version and I am trying to config the menu to make it look like the menu on telerik homepage.  Look like it using tabstrip and menu with template?  Can you give me the hints and is there an example? Thanks.
Kate
Telerik team
 answered on 08 May 2012
1 answer
189 views
We have a page with search form, which uses 2 RadDatePicker components.

<div class="calendar date">
    <table>
        <tr>
            <td>
                <asp:Label runat="server" AssociatedControlID="DateFrom"><%=GetTranslatedText("LANG_WEB_MOBS_LASTMINUTE_DEPARTURE_DATE_LARGE")%></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <telerik:RadDatePicker ID="DateFrom" runat="server" Width="100px">
                    <ClientEvents OnDateSelected="OnDateFromSelected" />
                </telerik:RadDatePicker>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="WeekDayCheckIn" runat="server">Dienstag</asp:Label>
            </td>
        </tr>
    </table>
</div>
<div class="calendar duration">
    <table>
        <tr>
            <td>
                <asp:Label runat="server" AssociatedControlID="Duration"><%=GetTranslatedText("LANG_WEB_MOBS_LASTMINUTE_DURATION")%></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList runat="server" ID="Duration" onchange="SetReturnDate_CY('ctl00_ContentMainPlaceHolder_SearchForm_');GetDayOfWeek('ctl00_ContentMainPlaceHolder_SearchForm_');">
                                    <asp:ListItem Value="" Text="Bitte wählen"></asp:ListItem>
                                    <asp:ListItem Value="" disabled="disabled" Text="-------------"></asp:ListItem>
                                    <asp:ListItem Value=">=1 <=5" Text="1-5 Nächte"></asp:ListItem>
                                    <asp:ListItem style="font-weight: bold;" Value=">=6 <=8" Text="6-8 Nächte(1 Woche)"></asp:ListItem>
                                    <asp:ListItem Value=">=9 <=12" Text="9-12 Nächte"></asp:ListItem>
                                    <asp:ListItem style="font-weight: bold;" Value=">=13 <=15" Text="13-15 N. (2 Wochen)"></asp:ListItem>
                                    <asp:ListItem Value=">=16 <=19" Text="16-19 Nächte"></asp:ListItem>
                                    <asp:ListItem style="font-weight: bold;" Value=">=20 <=22" Text="20-22 N. (3 Wochen)"></asp:ListItem>
                                    <asp:ListItem Value="" disabled="disabled" Text="-------------"></asp:ListItem>
                                    <asp:ListItem Value=">=1 <=1" Text="1 Nacht"></asp:ListItem>
                                    <asp:ListItem Value=">=2 <=2" Text="2 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=3 <=3" Text="3 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=4 <=4" Text="4 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=5 <=5" Text="5 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=6 <=6" Text="6 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=7 <=7" Text="7 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=8 <=8" Text="8 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=9 <=9" Text="9 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=10 <=10" Text="10 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=11 <=11" Text="11 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=12 <=12" Text="12 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=13 <=13" Text="13 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=14 <=14" Text="14 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=15 <=15" Text="15 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=16 <=16" Text="16 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=17 <=17" Text="17 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=18 <=18" Text="18 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=19 <=19" Text="19 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=20 <=20" Text="20 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=21 <=21" Text="21 Nächte"></asp:ListItem>
                                    <asp:ListItem Value=">=22" Text=">21 Nächte"></asp:ListItem>
                                </asp:DropDownList>
            </td>
        </tr>
    </table>
</div>
<div class="calendar date">
    <table>
        <tr>
            <td>
                <asp:Label runat="server" AssociatedControlID="DateTo"><%=GetTranslatedText("LANG_WEB_MOBS_LASTMINUTE_RETURN_DATE_LARGE")%></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <telerik:RadDatePicker ID="DateTo" runat="server" Width="100px">
                    <ClientEvents OnDateSelected="OnDateToSelected" />
                </telerik:RadDatePicker>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" ID="WeekDayCheckOut">Dienstag</asp:Label>
            </td>
        </tr>
    </table>
</div>

and a piece of javascript code :

function SetReturnDate_CY(prefix)
{
    if (document.getElementById(prefix+'Duration')) {
            dt = $find(prefix+'DateFrom').get_selectedDate();
            min_duration = MinDuration_CY(prefix);
            max_duration = MaxDuration_CY(prefix);
            var one_day = 1000 * 60 * 60 * 24;
            if ($find(prefix+'DateTo').get_selectedDate()) {
                dt2 = $find(prefix+'DateTo').get_selectedDate();
                //Calculate difference btw the two dates, and convert to days
                var diff = Math.ceil((dt2.getTime() - dt.getTime()) / one_day);
            }
            else {
                dt2 = dt;
                diff = 0;
            }
            calendar=$find(prefix+"DateTo");
            if(calendar)
            {
                if (diff < min_duration) {
                    dt2.setTime(dt.getTime() + (max_duration+7) * one_day);
                    calendar.set_selectedDate(dt2);
                }
                var min_return_date=dt;
                min_return_date.setTime(dt.getTime()+one_day);
                calendar.set_minDate(min_return_date);
            }
    }
// SetReturnDate


Default values are set by C# code directly. In general it works fine, but the problem is, that we get errors from calendar components like this - 



User Agent:        Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)


Error Message:  Input string was not in a correct format.


Error Source:        mscorlib
Error TargetSite:    Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean)
Error Stack Trace:      at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at Telerik.Web.UI.Calendar.Utils.Utility.ConvertToServerDateTimeCollection(DateTimeCollection dateTimeCollection, String inputString)
   at Telerik.Web.UI.RadCalendar.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


These errors come from unknown user and we have no clue, how to reproduce and how to fix it. We use the version RadControls for ASP.NET AJAX Q3 2011. Do you have any ideas, why this can happen?

Best regards,
Leonid
BabaYa
Top achievements
Rank 1
 answered on 08 May 2012
1 answer
57 views
How to get the index of selected text in editor control without using document and range object?
Rumen
Telerik team
 answered on 08 May 2012
1 answer
120 views

Hello,

I have a grid on page.
For database communication we are using wcf service.So I am getting a list of objects from service and binding it to a grid.
I want inplace editing of a grid(Add and update).It requires DataSource control.
Is it possible with wcf service?
Appreciate your help.

Thanks

Marin
Telerik team
 answered on 08 May 2012
3 answers
123 views
I've been trying to clear a bad date in Javascript
<telerik:RadDateInput id="del1" DateFormat="d" Width="82px" Height="18px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px" AllowEmpty="true" runat="server" >
    <ClientEvents OnKeyPress="del_keypress" />
    <ClientEvents OnError="date_input_error" />  
</telerik:RadDateInput>
the scripts
function del_keypress(sender, eventArgs) {
    var whichCode = eventArgs.get_keyCode();
    if ((whichCode != 13) && ((whichCode < 47) || (whichCode > 57)))
        eventArgs.set_cancel(true);
}
 
function date_input_error(sender, args) {
    alert("Invalid Delivery Date");
   // next line does nothing
    sender.clear();
    sender.focus();
}
Vasil
Telerik team
 answered on 08 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?