or
[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
public DateTime Start
{ get { return Convert.ToDateTime(dpDtofVisit.DbSelectedDate.ToString()); } set { dpDtofVisit.DbSelectedDate = value; } }<AdvancedEditTemplate><br><span class="Apple-tab-span" style="white-space:pre"> </span> <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("Reason") %>'<br><span class="Apple-tab-span" style="white-space:pre"> </span> Name='<%# Bind("Name") %>' Office='<%# Bind("Office") %>' Status='<%# Bind("Status") %>' Start='<%# Bind("DATE") %>' <br> <span class="Apple-tab-span" style="white-space:pre"> </span> PatientName='<%# Bind("PatNum") %>' /><span class="Apple-tab-span" style="white-space:pre"> </span> <span class="Apple-tab-span" style="white-space:pre"> </span> <br><span class="Apple-tab-span" style="white-space:pre"> </span> </AdvancedEditTemplate>| <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> |
| <script type="text/javascript"> |
| function conditionalPostback(sender, eventArgs) { |
| debugger; |
| if (eventArgs.get_eventTarget().indexOf("lbtnViewInfo") > -1) { |
| eventArgs.set_enableAjax(false); |
| } |
| } |
| </script> |
| </telerik:RadScriptBlock> |
| <telerik:RadAjaxManager ID="ramSearch" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="rgGrid"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="rgGrid" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| <ClientEvents OnRequestStart="conditionalPostback" /> |
| </telerik:RadAjaxManager> |
| <telerik:RadGrid ID="rgGrid" runat="server" Width="100%" ShowStatusBar="False" |
| AutoGenerateColumns="False" PageSize="10" EnableViewState="true" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" Visible="true"> |
| <MasterTableView Width="100%" DataKeyNames="IDNumber" AllowMultiColumnSorting="False"> |
| <NoRecordsTemplate><div class="noRecords">Your search criteria did not return any results, or you did not first select any criteria to search on.</div> |
| </NoRecordsTemplate> |
| <Columns> |
| <telerik:GridTemplateColumn UniqueName="FullName" SortExpression="FullName" HeaderText="Student Name" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center"> |
| <ItemTemplate> |
| <asp:LinkButton ID="lbtnViewInfo" Font-Underline="true" runat="server" CausesValidation="false" CommandName="ViewInfo" Width="100%" Text='<%#Eval("FullName") %>' /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| Private Sub rgGrid_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgGrid.ItemCommand |
| Select Case e.CommandName |
| Case "ViewInfo" |
| panelInfo.Visible = True |
| pnlsearch.Visible = False |
| pnlGrid.Visible = False |
| Case Else |
| Exit Sub |
| End Select |
| End Sub |

<telerik:GridBinaryImageColumn DataAlternateTextField="Title" DataField="BinaryContent" HeaderText="Image" ImageAlign="NotSet" ImageHeight="120px" ImageWidth="120px" ResizeMode="Fit" UniqueName="BinaryContent"></telerik:GridBinaryImageColumn>protected void SetValues(GridCommandEventArgs e){ if (e == null) { return; } if (!(e.Item is GridEditableItem)) { return; } var editedItem = e.Item as GridEditableItem; var hashTable = new Hashtable(); e.Item.OwnerTableView.ExtractValuesFromItem(hashTable, editedItem); // Simpler form of access naturally won't work. if (hashTable.ContainsKey("BinaryContent")) { // I KNOW I can't access the content like this: // this.EntityBinaryContent = hashTable["BinaryContent"] == null // ? null // : SomeUtility.ConvertToBytes(hashTable["BinaryContent"]); // But at this stage, with what I have to work with (e) etc. // How can I easily get hold of the upload bytes? }}
I have a rad menu with several items. The menu items lead to different places depending on a few things, so i'm trying to implement an OnClick handler in the code behind to redirect appropriately. I've tried all kinds of combinations and scoured the forums and nothing has worked so far.
My OnClick method is just a stub right now with a breakpoint so I can see when it gets called, only it isn't getting called, and I'm redirected to the default.aspx page.
Ths is within a user control, if that matters. Are you aware of anything that could cause this behavior?
protected void RadMenu_ItemClick(object sender, RadMenuEventArgs e) { int i = 0; String s = e.Item.Value; }<radM:RadMenu ID="RadMenu" runat="server" OnItemClick="RadMenu_ItemClick" > <Items> <radM:RadMenuItem runat="server" ID="sampleItem" Text="Click Me" /> </Items></radM:RadMenu><a href="javascript:;" onclick="xlaAFMopenfaq(1);" class="HeaderLink">Customer Service</a>