| //override the onload event handler to change the picker after the page is loaded |
| Sys.Application.add_load(setCalendarTable); |
| function setCalendarTable() { |
| var picker1 = $find("<%= startDateField.ClientID %>"); |
| var picker2 = $find("<%= stopDateField.ClientID %>"); |
| var calendar1 = picker1.get_calendar(); |
| var calendar2 = picker2.get_calendar(); |
| var fastNavigation1 = calendar1._getFastNavigation(); |
| var fastNavigation2 = calendar2._getFastNavigation(); |
| $clearHandlers(picker1.get_popupButton()); |
| $clearHandlers(picker2.get_popupButton()); |
| picker1.get_popupButton().href = "javascript:void(0);"; |
| picker2.get_popupButton().href = "javascript:void(0);"; |
| $addHandler(picker1.get_popupButton(), "click", function() { |
| var textbox = picker1.get_textBox(); |
| //adjust where to show the popup table |
| var x, y; |
| var adjustElement = textbox; |
| if (textbox.style.display == "none") |
| adjustElement = picker1.get_popupImage(); |
| var pos = picker1.getElementPosition(adjustElement); |
| x = pos.x; |
| y = pos.y + adjustElement.offsetHeight; |
| var e = { |
| clientX: x, |
| clientY: y - document.documentElement.scrollTop |
| }; |
| //synchronize the input date if set with the picker one |
| var date = picker1.get_selectedDate(); |
| if (date) { |
| calendar1.get_focusedDate()[0] = date.getFullYear(); |
| calendar1.get_focusedDate()[1] = date.getMonth() + 1; |
| calendar1.get_focusedDate()[2] = 1; // hardcode this to the first of the month. |
| } |
| $get(calendar1._titleID).onclick(e); |
| return false; |
| }); |
| $addHandler(picker2.get_popupButton(), "click", function() { |
| var textbox = picker2.get_textBox(); |
| //adjust where to show the popup table |
| var x, y; |
| var adjustElement = textbox; |
| if (textbox.style.display == "none") |
| adjustElement = picker2.get_popupImage(); |
| var pos = picker2.getElementPosition(adjustElement); |
| x = pos.x; |
| y = pos.y + adjustElement.offsetHeight; |
| var e = { |
| clientX: x, |
| clientY: y - document.documentElement.scrollTop |
| }; |
| //synchronize the input date if set with the picker one |
| var date = picker2.get_selectedDate(); |
| if (date) { |
| calendar2.get_focusedDate()[0] = date.getFullYear(); |
| calendar2.get_focusedDate()[1] = date.getMonth() + 1; |
| calendar2.get_focusedDate()[2] = 1; // hardcode this to the first of the month. |
| } |
| $get(calendar2._titleID).onclick(e); |
| return false; |
| }); |
| $addHandler(picker1.get_textBox(), "change", function() { |
| var textbox = picker1.get_textBox(); |
| if (textbox.value != '') { |
| var date = new Date(textbox.value); |
| date.setDate(1); |
| date.setHours(0, 0, 0, 0); |
| picker1.set_selectedDate(date); |
| } |
| }); |
| $addHandler(picker2.get_textBox(), "change", function() { |
| var textbox = picker2.get_textBox(); |
| if (textbox.value != '') { |
| var date = new Date(textbox.value); |
| date.setDate(1); |
| date.setHours(0, 0, 0, 0); |
| picker2.set_selectedDate(date); |
| } |
| }); |
| fastNavigation1.OnOK = |
| function() { |
| var date = new Date(fastNavigation1.Year, fastNavigation1.Month, 1); |
| picker1.get_dateInput().set_selectedDate(date); |
| fastNavigation1.Popup.Hide(); |
| } |
| fastNavigation2.OnOK = |
| function() { |
| var date = new Date(fastNavigation2.Year, fastNavigation2.Month, 1); |
| picker2.get_dateInput().set_selectedDate(date); |
| fastNavigation2.Popup.Hide(); |
| } |
| fastNavigation1.OnToday = |
| function() { |
| var date = new Date(); |
| date.setDate(1); |
| date.setHours(0, 0, 0, 0); |
| picker1.get_dateInput().set_selectedDate(date); |
| fastNavigation1.Popup.Hide(); |
| } |
| fastNavigation2.OnToday = |
| function() { |
| var date = new Date(); |
| date.setDate(1); |
| date.setHours(0, 0, 0, 0); |
| picker2.get_dateInput().set_selectedDate(date); |
| fastNavigation2.Popup.Hide(); |
| } |
| } |
We are unable to edit content in IE8.
· Select Edit Content
· Tool Bar appears
· We are then unable to select any of the drop downs (Select, Style, Para)
We do get form.js errors
i.e Invalid argument
· RTE2PUEditor.aspx
· Moss 2007 SP2
· WSS 2.0
· Windows Server 2003 SP2
Everything works as expected in IE7 and using IE7 compatibility mode.
Hi everybody,
my radgrid shows records from my DB, using inline editing with custom template such as a textbox "tbNT" and a checkbox "cbA".
I catch the RadGrid1_UpdateCommand event for update data on my DB.
I have found no way to get values from the "tbNT" textBox and "cbA" checkBox in the event function.
I would also like to know how to get the record (line in radgrid) that need updated data.
I have searched and tried quite a few methods from radgrid examples with no luck.
Thank you very much
Here is aspx code (part of):
| <telerik:RadGrid ID="RadGrid1" runat="server" Width="98%" |
| AllowPaging="True" AllowSorting="True" DataSourceID="SqlDataSource1" |
| CellPadding="1" Height="700px" BorderStyle="Solid" GridLines="Both" |
| AutoGenerateColumns="False" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"> |
| <MasterTableView EditFormSettings-EditFormType="Template" DataSourceID="SqlDataSource1" |
| DataKeyNames="ArtID" Width="100%"> |
| <Columns> |
| <telerik:GridBoundColumn DataField="RssID" HeaderText="RssID" SortExpression="RssID" HeaderStyle-Width="50" UniqueName="RssID" DataType="System.Int32"> |
| <HeaderStyle Width="50px"></HeaderStyle> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Title" HeaderText="Titolo" |
| SortExpression="Title" |
| UniqueName="Title"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="PubDate" HeaderText="Data Pubblicazione" HeaderStyle-Width="100" |
| SortExpression="PubDate" |
| UniqueName="PubDate" DataType="System.DateTime"> <HeaderStyle Width="100px"></HeaderStyle> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="InsDate" DataType="System.DateTime" HeaderStyle-Width="100" |
| HeaderText="Data Inserimento" |
| SortExpression="InsDate" UniqueName="InsDate"> <HeaderStyle Width="100px"></HeaderStyle> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="NewTitle" HeaderText="Titolo Sito" HeaderStyle-Width="200" |
| SortExpression="NewTitle" |
| UniqueName="NewTitle"> |
| <HeaderStyle Width="200px"></HeaderStyle> |
| </telerik:GridBoundColumn> |
| <telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean HeaderStyle-Width="50" |
| HeaderText="Attivo" |
| SortExpression="Active" UniqueName="Active"> <HeaderStyle Width="50px"></HeaderStyle> |
| </telerik:GridCheckBoxColumn> |
| <telerik:GridBoundColumn DataField="ActDate" HeaderText="ActDate" HeaderStyle-Width="100" |
| SortExpression="Data Attivazione" |
| UniqueName="ActDate" DataType="System.DateTime"> <HeaderStyle Width="100px"></HeaderStyle> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <EditFormSettings EditFormType="Template"> |
| <FormTemplate> |
| <table id="Table5" cellspacing="2" |
| cellpadding="1" width="100%" border="0" rules="none" |
| style="border-collapse: |
| collapse; background: white;"> |
| <tr> |
| <td> |
| Nuovo Titolo: |
| <asp:TextBox ID="tbNT" runat="server" Text='<%# Bind( "NewTitle") %>' |
| Width="400" /> |
| |
| Attivo: <asp:CheckBox ID="cbA" runat="server" Text="" Checked='<%# Bind( "Active") %>' /> |
| |
| <asp:Button ID="btnUpdate" text="Aggiorna" runat="server" CommandName="Update"> |
| </asp:Button> |
| |
| <asp:Button ID="btnCancel" Text="Annulla" runat="server" CausesValidation="False" |
| CommandName="Cancel"> |
| </asp:Button> |
| </td> |
| </tr> |
| </table> |
| </FormTemplate> |
| </EditFormSettings> |
| </MasterTableView> |
| <ClientSettings> |
| <Scrolling AllowScroll="True" |
| UseStaticHeaders="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
<
telerik:GridNumericColumn DataField="MyField" HeaderText="My Numeric Data" UniqueName="MyNumericData"
Resizable="true" HeaderTooltip="Sort by 'My Numeric Data'" DataType="System.Double" DataFormatString="{0:##,###0.00}" ItemStyle-HorizontalAlign="Right" FilterControlWidth="75%" HeaderStyle-Width="10%">
</telerik:GridNumericColumn>
This part is working fine and my data is formatted automatically when i change the Browser Language.
But filter on that data is leading to issue.
As this is numeric column while perfoming filtering i am only allowed to enter the numeric value with culture specific decimal seperator , which is great.But when i perform the search it does not work except for ENGLISH(EN-US).So if i select Germany the same filter operation is failing.
Is this a bug in Telerik and is there any workaround for this.
Regards,
Aayam
Hi All,
I have a dropdown column called "Year" in grid.