I have a requirement to provide the user a visual indicator that they are logged in and a selection drop-down for which user profile they want to be using. This requirement is accross the application and I would like to place these functions into the RadNavigation {or RadMenu, whichever is best} on the master page.
Piecing things together I think the following is the right approach. Please advise on corrections and/or better ways to do this.
1) in the site-map, the add two nodes titled 'userSamAccount' and 'userProfile'
2) create one custom databound template for displaying the active directory name, and another for displaying the profile drop-down items : http://www.telerik.com/help/aspnet-ajax/navigation-server-side-templates.html
3) on Template Needed, if node title is 'userSamAccount' or 'userProfile', align to the right via css {below} and change their templates to the custom ones.
Will this work?
center:
<style type="text/css"> .RadNavigation .searchBoxWrapper { position: absolute; right: 0; top: 0; } </style>

DataColumn dc = new DataColumn("MYCOL", System.String);dc.Caption = "My Column"; dt.Columns.Add(dc);<telerik:RadScheduler x:Name="scheduler" > <telerik:RadScheduler.TimelineViewDefinition > <telerik:TimelineViewDefinition CustomTimeSlotLength="12M"/> </telerik:RadScheduler.TimelineViewDefinition></telerik:RadScheduler>
TimelineViewDefinition property for scheduler...
I have a radgrid on my page. It has a Details Table for children. For the parent rows that have no children I do now want any row(s) to show. I have used the below code and when I do, I still see a blank row underneath my parent row. What am I doing wrong?
The attached file is how my grid looks.
//If the details have no records, make it invisible protected void rgCirculationDetails_ItemCreated(object sender, GridItemEventArgs e) { if (e.Item is GridNoRecordsItem && e.Item.OwnerTableView != rgCirculationDetails.MasterTableView) e.Item.OwnerTableView.Visible = false; } //below code puts an empty string for a parent row that has no children protected void rgCirculationDetails_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e) { try { GridDataItem parentItem = e.DetailTableView.ParentItem as GridDataItem; int parentRow = Convert.ToInt32(parentItem.GetDataKeyValue("ParentRow")); string geography = parentItem.GetDataKeyValue("Geography").ToString().Trim(); if (e.DetailTableView.DataMember == "GeographyRows") { if (parentRow == 1) { circulationServiceObj.CircDetail = circulationObj.GetCircDetailsForParentRow(circSetID, geography, dayID).CircDetail; e.DetailTableView.DataSource = circulationServiceObj.CircDetail.CircDetail; } else { e.DetailTableView.DataSource = String.Empty; } } } catch (SoapException ex) { } }
I have a RadListBox that has items which are wiped and binded every 4 seconds. I have a linkbutton in each listbox item that I want to open a tooltip. At the moment I use a RadToolTipManager, the content in an ASCX file, and an OnAjaxUpdate function. This -sort of- works but the content in the tooltip is broken when the radlistbox refreshes on the timer.
Realistically I'll only ever have one RadToolTip open at once, and the content it loads (four linkbuttons) won't be changing. I have tried other methods like putting a RadToolTip directly into the listboxes ItemTemplate, but then the tooltip closes itself every time the listbox refreshes/posts-back. I'd love to avoid the whole ToolTipManager + ASCX thing because it loads goofy and shows a loading panel every time it opens.
If I have a splitbutton and open the content menu first by clicking on the arrow and then click on the main button it doesnt execute the onclick event. I have to click it again in order to execute. Can the button be setup so that the main button always clicks the first time you click it regardless of if the context menu of the button is expanded first?
<telerik:RadButton EnableSplitButton="true" ID="btnSave" runat="server" Text="Save Contact" OnClick="RadButton1_Click" OnClientClicked="OnClientClicked">
</telerik:RadButton>
<telerik:RadContextMenu ID="rmContextMenu1" runat="server" OnItemClick="RadMenu1_ItemClick" style="z-index: 1009" CollapseAnimation-Type="None" ExpandAnimation-Type="None">
<Items>
<telerik:RadMenuItem Text="Save & Create New" Value="0">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Run Spell Checker" Value="1">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Cancel & Close" Value="2">
</telerik:RadMenuItem>
</Items>
</telerik:RadContextMenu>