| Protected Sub vendorGridView_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles vendorGridView.ItemDataBound |
| If Session("VendorClientID") = e.Item.DataItem("ClientID") Then |
| e.Item.Selected = True |
| End If |
| End Sub |

I would like to use the RadDateTimePicker in my AdvancedInsert/Edit Templates. However, I can't find any documentation to resolve the issue I am experiencing. The code below includes the RadDateTimePicker as the startInput control. VS reports that DateFormat is not a member of RadDateTimePicker. Can someone shed some light on how to use this control?
The user needs the ability to alter the time frame of the appointment from the form.
Thank you for your time.
Al
If
((e.Container.Mode = SchedulerFormMode.AdvancedInsert) _
OrElse (e.Container.Mode = SchedulerFormMode.AdvancedEdit)) Then
Dim subjectBox As TextBox = CType(e.Container.FindControl("TitleTextBox"), TextBox)
subjectBox.Text = e.Appointment.Subject
Dim startInput As RadDateTimePicker = CType(e.Container.FindControl("StartInput"), RadDateTimePicker)
startInput.DateFormat = (scheduler.EditFormDateFormat + (
" " + scheduler.EditFormTimeFormat))
startInput.SelectedDate = RadScheduler1.DisplayToUtc(e.Appointment.Start)
Dim endInput As RadDateInput = CType(e.Container.FindControl("EndInput"), RadDateInput)
endInput.DateFormat = (scheduler.EditFormDateFormat + (
" " + scheduler.EditFormTimeFormat))
endInput.SelectedDate = RadScheduler1.DisplayToUtc(e.Appointment.End)
End If
| <telerik:RadEditor ID="contents" runat="server" Content='<%# Bind("contents") %>'> | |
| <Modules> | |
| <telerik:EditorModule Name="RadEditorStatistics" Visible="true" Enabled="true" /> | |
| <telerik:EditorModule Name="RadEditorDomInspector" Visible="true" Enabled="false" /> | |
| <telerik:EditorModule Name="RadEditorNodeInspector" Visible="true" Enabled="false" /> | |
| </Modules> | |
| </telerik:RadEditor> | |

| <script type="text/javascript"> |
| var originalRadEditorFormatCodeBlock = RadEditorNamespace.radEditorFormatCodeBlock; |
| RadEditorNamespace.radEditorFormatCodeBlock = function(returnValue, params) |
| { |
| if (returnValue != undefined) |
| { |
| // <snip> |
| originalRadEditorFormatCodeBlock(returnValue, params); |
| } |
| }; |
| </script> |
Hi,
I have a user control which has:
<asp:HyperLink ID="lnkDelete" runat="Server" NavigateUrl="#" Text="Delete" />
and I have the Tool Tip control referencing lnkDelete. (So I can't use an HTML <a> tag).
Now this behaviour works in an aspx page, but as soon as it runs within a control it fails, as the hyplink control is being rendered with an href to the path of the user control. So I end up getting a HTTP 403 error.
Is there any way of overriding this default behaviour of the hyperlink within a control? This must be common....
Thanks!

| <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None" |
| DataSourceID="SQL_BuyFromName" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" |
| AllowAutomaticUpdates="True" Skin="Default2006" Width="600px"> |
| <ExportSettings> |
| <Pdf PaperSize="Letter" FontType="Subset"></Pdf> |
| <Excel Format="Html"></Excel> |
| </ExportSettings> |
| <MasterTableView CurrentResetPageIndexAction="SetPageIndexToFirst" Dir="LTR" Frame="Border" |
| TableLayout="Auto" CommandItemDisplay="None" DataSourceID="SQL_BuyFromName" DataKeyNames="id"> |
| <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" |
| Visible="False"> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" |
| Visible="False" Resizable="False"> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridEditCommandColumn ButtonType="ImageButton" CancelImageUrl="Images\Cancel.gif" |
| EditImageUrl="Images\Edit.gif" UpdateImageUrl="Images\Update.gif" HeaderStyle-Width="30px"> |
| <HeaderStyle Width="30px"></HeaderStyle> |
| </telerik:GridEditCommandColumn> |
| <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="BuyerName" FilterListOptions="VaryByDataType" |
| ForceExtractValue="None" HeaderText="Buyer Name" SortExpression="BuyerName" UniqueName="BuyerName" |
| HeaderStyle-Width="400px"> |
| <HeaderStyle Width="400px"></HeaderStyle> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="BuyerCode" FilterListOptions="VaryByDataType" |
| ForceExtractValue="None" HeaderText="Buyer Code" SortExpression="BuyerCode" UniqueName="BuyerCode" |
| HeaderStyle-Width="125px"> |
| <HeaderStyle Width="125px"></HeaderStyle> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn HeaderText="Current Admin" HeaderStyle-Width="130px"> |
| <ItemTemplate> |
| <asp:Label ID="lblName" Text='<%#Eval("CurrentAdmin") %>' runat="server"></asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:DropDownList ID="DropDownList1" runat="server" DataValueField='<%# Bind("id") %>' DataSourceID="SQL_Admins" DataTextField='<%# Bind("AdminName") %>' |
| AppendDataBoundItems="True"> |
| </asp:DropDownList> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| <EditFormSettings> |
| <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"> |
| </EditColumn> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |
| <asp:SqlDataSource ID="SQL_Admins" runat="server" ConnectionString="<%$ ConnectionStrings:Spiral_MainConnectionString %>" |
| SelectCommand="SELECT id, (Admin_First + ' ' + Admin_Last) as AdminName from DEV_ADMIN_INFORMATION WHERE ACTIVE = '1' ORDER BY AdminName"> |
| </asp:SqlDataSource> |
| <asp:SqlDataSource ID="SQL_BuyFromName" runat="server" ConnectionString="<%$ ConnectionStrings:Spiral_MainConnectionString %>" |
| SelectCommand="SELECT b.id as id, b.HdrBuyFromBP as BuyerCode, b.HdrBuyFromBPName as BuyerName, b.adminNo, (d.Admin_First + ' ' + d.Admin_Last) as CurrentAdmin from DEV_BUY_FROM_NAME b LEFT JOIN DEV_ADMIN_INFORMATION d ON d.id = b.adminNo WHERE b.ACTIVE = '1' ORDER BY BuyerName" |
| UpdateCommand="UPDATE DEV_BUY_FROM_NAME set adminNo = @adminNo WHERE (id = @id)"> |
| </asp:SqlDataSource> |

Hello,
I have an issue when trying to Transfer/Post to another page using grdClientSrch_ItemCommand event on a "Prometheus" grid.
I my scenario I want to select a row from the grid and to retrieve its ID and to transfer or post to another apsx page. On the next aspx page I want to use the PreviousPage property and to cast it to my first page with the grid.
Initially I used Server.Transfer in grdClientSrch_ItemCommand event to transfer to the next page. However with this approach I received the following error:
Error:
“Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.”
I found similar issue http://www.telerik.com/community/forums/thread/b311D-bbcbek.aspx and the conclusion was the Server.Transfer is not supported with AJAX.
I tried to use Response.Redirect() instead and the original error has gone. However, the PreviousPage property (on the next page) is null when I use Response.Redirect().
In order to get this property (PreviousPage) I need to post (or transfer to) the page and I am not sure how to do this with GridButtonColumn. For regular button I need to use PostBackUrl property and to specify the url of the next page, but I couldn’t see such a property in the command event. There might be a cast from GridButtonColumn to regular button, but I am not sure how to do this either.
I would like first to check if there is a way to use directly Transfer (for better performance) and to change the grid select event as a regular post back and bypassing the AJAX limitation above.
If the first option is not possible, I would like to check how I can post the page to another page in the most efficient way.
Thanks,
Ivo
