Hello Telerik Team,
I want to localize the FastNavigationSettings(Today,OK,Cancel) buttons of 'SelectedDateCalendar' present in the RadScheduler1. I have used the following code to do so inside my Page_Load event everytime:
RadCalendar popupCalendar = RadScheduler1.FindControl("SelectedDateCalendar") as RadCalendar;
// Set the RadCalendar properties
popupCalendar.CultureInfo = System.Threading.Thread.CurrentThread.CurrentUICulture;
popupCalendar.FastNavigationSettings.CancelButtonCaption = GetResourceString(
"Global_Confirm_CancelText");
popupCalendar.FastNavigationSettings.TodayButtonCaption = GetResourceString(
"Schedule_CalendarView_Today");
popupCalendar.FastNavigationSettings.OkButtonCaption = GetResourceString(
"Global_Confirm_OkText");
This works the first time user visits the FastNavigationkeys. But when user selects any other date, and again visits the 'SelectedDateCalendar' the FastNavigationkeys are not localized - they appear in English.
Please let me know how to fix this.
Also, to localize the entire RadScheduler, I have used the following code:
RadScheduler1.Culture = System.Threading.
Thread.CurrentThread.CurrentUICulture;
Regards,
Abhishek
Hi!
I have a problem in IE7 when adding new items on client. After i add the item from client, i am not able to select it in IE7 by hovering mouse over it and clicking. It is not even highlighted. It can be selected only when mouse hovers the text of the item, but not the full item. In Firefox, Opera, IE8 everything works fine. Please, give me some advice to solve the problem.
My code is very easy:
| <telerik:RadComboBox ID="testCombo" runat="server"> | |
| </telerik:RadComboBox> | |
| <button onclick="addItem();return false;">Add item</button> | |
| <script type="text/javascript"> | |
| function addItem() | |
| { | |
| var combo = $find('<%= testCombo.ClientID %>'); | |
| var comboItem = new Telerik.Web.UI.RadComboBoxItem(); | |
| comboItem.set_value("Test"); | |
| comboItem.set_text("Test"); | |
| combo.get_items().add(comboItem); | |
| } | |
| </script> |
<telerik:RadScheduler ID="RadScheduler1" runat="server"
DataEndField="EDateTime" DataKeyField="Appt_ID"
DataSourceID="sdsAppointment" DataStartField="SDateTime" DayEndTime="21:00:00"
DataSubjectField="Remark" HoursPanelTimeFormat="htt" Skin="Outlook"
ValidationGroup="RadScheduler1">
<InlineInsertTemplate>
<asp:TextBox runat="server" ID="RemarkTextBox" Text='<%# Bind("Remark") %>' Width="99%"></asp:TextBox>
User:
<asp:TextBox runat="server" ID="LNameTextBox" Text='<%# Bind("LName") %>' Width="99%"></asp:TextBox>
<asp:LinkButton runat="server" ID="InsertLinkButton" CommandName="Insert" Text="Insert"></asp:LinkButton>
<asp:LinkButton runat="server" ID="CancelLinkButton" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
</InlineInsertTemplate>
<InlineEditTemplate>
<asp:TextBox runat="server" ID="RemarkTextBox" Text='<%# Bind("Remark") %>' Width="99%"></asp:TextBox>
User:
<asp:TextBox runat="server" ID="LNameTextBox" Text='<%# Bind("LName") %>' Width="99%"></asp:TextBox>
<asp:LinkButton runat="server" ID="UpdateLinkButton" CommandName="Update" Text="Update"></asp:LinkButton>
<asp:LinkButton runat="server" ID="CancelLinkButton" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
</InlineEditTemplate>
</telerik:RadScheduler>
<
asp:SqlDataSource ID="sdsAppointment" runat="server"
ConnectionString="<%$ ConnectionStrings:ClinicMgmtConnectionString %>"
DeleteCommand="spAppointment_Delete" DeleteCommandType="StoredProcedure"
InsertCommand="spAppointment_Insert" InsertCommandType="StoredProcedure"
SelectCommand="spAppointment_Select" SelectCommandType="StoredProcedure"
UpdateCommand="spAppointment_Update" UpdateCommandType="StoredProcedure">
<DeleteParameters>
<asp:Parameter Name="Appt_ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Appt_ID" Type="Int32" />
<asp:Parameter Name="SDateTime" Type="DateTime" />
<asp:Parameter Name="EDateTime" Type="DateTime" />
<asp:Parameter Name="Remark" Type="String" />
<asp:Parameter Name="LName" Type="String" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="SDateTime" Type="DateTime"/>
<asp:Parameter Name="EDateTime" Type="DateTime" />
<asp:Parameter Name="Remark" Type="String" />
<asp:Parameter Name="LName" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
<
telerik:RadTextBox ID="txtEstbName" runat="server" MaxLength="150" Skin="Office2007" ></telerik:RadTextBox>
<ajaxToolkit:ValidatorCalloutExtender ID="vc1" runat="server" TargetControlID="rfv1" Width="200px" HighlightCssClass="validatorCalloutHighlight" WarningIconImageUrl="~/images/warning.png" CloseImageUrl="~/images/close.png">
</ajaxToolkit:ValidatorCalloutExtender>
<asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="Please enter establishment name" ControlToValidate="txtEstbName" Visible="true" Display="None"></asp:RequiredFieldValidator>
css class........................
.validatorCalloutHighlight
{
background-color:#FF9999;
}


I'm having trouble with the controlparameter of a ListBox which points to same RadGrid where the Listbox is used.
I want to populate the Listbox depending on the selected value of the Grid, so I've set a controlparameter in the datasource of the ListBox which points to the selectedItem of the Grid. However, the controlparameter always gets the default value. If I set the controlparameter to another grid (not the grid which is the parent of the ListBox) it works fine.
| <GRID id=g1 Datasource = DS1> |
| <VIEW> |
| <EDIT> |
| <LISTBOX Datasource=DS2></LISTBOX> |
| </EDIT> |
| </GRID> |
| <DS1> |
| ... |
| </DS1> |
| <DS2> |
| <selectparameters> |
| <asp:ControlParameter ControlID="g1" DefaultValue="0" Name="id" PropertyName="SelectedValue" Type="Int32" /> |
| </selectparameters> |
| </DS2> |
