Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
Hi,
In my page I have used radtextbox to input password. I used code below
<telerik:RadTextBox ID="radtextbox1" runat="server" Width="400px"  TextMode="Password" >
</telerik:RadTextBox>
when using telerik 2009, the width is showing correctly, but when i changed to telerik Q1 2012,I cannot set the width when textmode is password.
Is there any solution for this?
Thanks in advance.
Bozhidar
Telerik team
 answered on 27 Feb 2012
1 answer
71 views
hi

Is it possible to show only month or year for the date navigation?

I want to navigate by month or year only without showing the calendar. Thanks a lot
Peter
Telerik team
 answered on 27 Feb 2012
1 answer
81 views
I have two RadCalendars inside a <div>. I want to be able to hide/show this div with jQuery, however anytime the <div> is shown/hidden the controls are causing a postback, which resets the state of the calendars. This even though the AutoPostBack property is set to "false" (both in the .aspx attribute, and Page_Load of code-behind. WHY? And how can I stop this behavior?

<div id="calendars" style="width: 450px" >
    <div style="float: left">
        <telerik:RadCalendar ID="dpStart" runat="server" AutoPostBack="false"
                                             UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" EnableMultiSelect="False"
                                             ShowFastNavigationButtons="False" ShowRowHeaders="False"
                                             RangeMaxDate="2050-12-31" RangeMinDate="2008-01-01" FocusedDate="2008-01-01"
                                             SelectedDate="" Skin="Metro" ViewSelectorText="x" >
                            <ClientEvents OnDateSelected="dpStart_OnDateSelected" OnCalendarViewChanging="OnCalendarViewChanging" />
                        </telerik:RadCalendar>
                    </div>
 
                    <div style="float: right">
                        <telerik:RadCalendar ID="dpEnd" runat="server" AutoPostBack="false"
                                             UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" EnableMultiSelect="False"
                                             ShowFastNavigationButtons="False" ShowRowHeaders="False"
                                             RangeMaxDate="2050-12-31" RangeMinDate="2008-01-01" FocusedDate="2008-01-01"
                                             SelectedDate="" Skin="Metro" ViewSelectorText="x" >
                            <ClientEvents OnDateSelected="dpStart_OnDateSelected" OnCalendarViewChanging="OnCalendarViewChanging" />
                        </telerik:RadCalendar>
     </div>
</div>
 
 <button id="button">Toggle</button>
 
<script type="text/javascript">
    $("#button").click(function() {
        $("#calendars").toggle();
     });
</script>
Vasil
Telerik team
 answered on 27 Feb 2012
0 answers
76 views
I have a panel bar that has multiple RadPanelItem.    Within one of the RadPanelItem I have 8 items.  When I put my mouse over the first item and work my way down each item's background color changes except the 8th one.  The background color of the 7th item stays changed but the 8th one never changes.

I'm using 2012 Q1 Net 35.  I'm running this on a test server with no way to post a link to view the behavior.  The other RadPanelItem do not have as many and I have not encounter this issue with any other one.

Thank you
jerry
Top achievements
Rank 1
 asked on 27 Feb 2012
7 answers
128 views
How can I disable the buttons clientside until an xmlhttpcallback has completed?

...I know how to do the callback :), the question is, does a clientside function exist to disable them?
Genady Sergeev
Telerik team
 answered on 27 Feb 2012
1 answer
101 views
Hi

In my appointment template, I have a hyperlink where I am passing the ID to a new page using query string. I only want to show this hyperlink if the resource type is equal to "Clubs". Is this possible?

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="Description"
    DataEndField="EndDate" DataKeyField="ID" DataRecurrenceField="RecRule" DataRecurrenceParentKeyField="Type"
    DataSourceID="sqlDSTodaysEvents" DataStartField="StartDate" DataSubjectField="Name"
    EnableDescriptionField="True" Height="" ReadOnly="True" ShowAllDayRow="False"
    ShowFooter="False" TimeLabelRowSpan="1" Culture="en-GB" NumberOfHoveredRows="1"
    RowHeight="49px" EnableExactTimeRendering="True" ShowNavigationPane="False" ShowResourceHeaders="False"
    ShowViewTabs="False" ShowHeader="False" SkinID="Default" DataReminderField="ReminderInfo"
    Skin="Sitefinity" MinutesPerRow="60" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
    WorkDayEndTime="16:00:00">
    <ResourceTypes>
        <telerik:ResourceType DataSourceID="sqlDSEventDef" ForeignKeyField="EventTypeID"
            KeyField="EventTypeID" Name="Type" TextField="EventType" />
    </ResourceTypes>
    <ResourceStyles>
        <telerik:ResourceStyleMapping Type="Type" Text="Lessons" ApplyCssClass="" BackColor="#66CCFF" />
        <telerik:ResourceStyleMapping Type="Type" Text="Clubs" ApplyCssClass="" BackColor="#FFCC00" />
        <telerik:ResourceStyleMapping Type="Type" Text="Trips" ApplyCssClass="" BackColor="#FF66CC" />
    </ResourceStyles>
    <Reminders Enabled="False" />
    <WebServiceSettings>
        <ODataSettings InitialContainerName="">
        </ODataSettings>
    </WebServiceSettings>
    <AppointmentTemplate>
        <div>
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "register.aspx?ClubID=" + Eval("ID") %>'><%# Eval("Subject") %></asp:HyperLink>
        </div>
    </AppointmentTemplate>
</telerik:RadScheduler>
Peter
Telerik team
 answered on 27 Feb 2012
1 answer
125 views
Hi telerik guys

I am recently working on a MVC3 project and the my company has bought the telerik control so I start to POC the RadSchedule control.
I check the demo and forum here and the information still can't solve my problem.

Here is my question
1. when I need using RadSchedule in MVC3, the best way to make it work is to use webservice to retrieve the data from DB,right?
2. I need to custom the popup appointment UI(when double click the RadControl), can I custom the UI like the screenshot I upload in the attachment?
    2.1 custom the popup window header from "" into ""
    2.2 Hide or change the Subject and Description and start time which I needn't on my application
    2.3 hide the Recurrence checkbox
    2.4 custom the UI looks just like the attach PIC

If the RadSchedule can't don't that, please also reply here because I need this prove to show my client to change their popup UI design, thanks.:)

Thanks
Peter
Telerik team
 answered on 27 Feb 2012
1 answer
181 views
Hi

I have a number of items showing in a RadListView, when you right click one of these items (an image) the RadContextMenu shows up correctly. on most of them i can select them and right click them and it works perfectly.

My problem is the further i go down my screen and try to select partially viewable images (i.e. images where i can only see about 20cm of the top of the image) that are about to come into view if i were to scroll down the screen. Right clicking the top of those images does not show the RadContextMenu, instead i get the browsers right click menu.

I have to scroll down the screen untill 2/3 of the image is viewable before i can right click on the RadContextMenu shows.

Is there a work around for this?
Richard
Top achievements
Rank 1
 answered on 27 Feb 2012
3 answers
120 views
Greetings. I know that there are various javascript stunts available to get the kind of functionality I'm about to describe to happen, and I've had to implement some to get this functionality already. But I'm here asking if I just overlooked something in RadMaskedTextBox.

The functionality is this: Let's say I have a text box for entering SSN. What my client wants to have happen is for the box to look plain, no displayed masking of dashes or prompts when empty. He wants the cursor to always start at the leftmost character when the box is truly empty and it gets the focus.

When typing, he wants the input to be restricted to only numbers, period. But then, after the field is exited, he wants the field to magically reformat itself for display with the masking dashes. So I typed 012345678, and it looks like that while I'm in the box and typing, but on blur, it turns into 012-34-5678. Similarly if I re-entered the box it would go back to 012345678 during the edit.

Notably, the guy is asking this because of the way that he perceives RadDateInput to work, in the way that you can enter different date formats and it'll reformat it like magic on exit. I can't really blame him for not knowing this is an apples/oranges kind of a deal.

RadMaskedTextBox seems just millimeters away from this, but I can't quite get it to happen in the way the client wants. I can't get it to not show the masking dashes when it's empty or during typing, and a couple of other minor matters that to the client are a deal-breaker and I'm off in custom javascript land to solve it.

Am I just missing something? If so, that'd be great, as they're wanting this kind of functionality for phone numbers, too, where it would magically materialize (123)456-7890 out of 1234567890 in the same exact way.
Vasil
Telerik team
 answered on 27 Feb 2012
2 answers
142 views
I have a radgrid with multiple cols. how do I apply sorting only on my first column that is a GridHyperLinkColumn?
I tried:

Protected Sub RadGrid1_ColumnCreated(ByVal sender As Object, ByVal e As GridColumnCreatedEventArgs)

If TypeOf e.Column Is GridHyperLinkColumn Then

Dim col As GridHyperLinkColumn = DirectCast(e.Column, GridHyperLinkColumn)

If col.UniqueName = "column1" Then

col.Allowsorting =

True ' this line gives error.' Allowsorting  is not allowed for GridHyperLinkColumn

End If

End If

End Sub

Darton
Top achievements
Rank 1
 answered on 27 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?