or

if(((DetailsView)sender).CurrentMode== DetailsViewMode.Edit) { DropDownList ddl = (DropDownList)((DetailsView)sender).FindControl("DevicesLocation"); Label lbl = (Label)((DetailsView)sender).FindControl("lblLocationID"); LocationDropDown(ddl); ddl.SelectedValue = lbl.Text; ipAddressRadGrid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
// Add edit column ipAddressRadGrid.AutoGenerateEditColumn = true; ipAddressRadGrid.Rebind(); }<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomCenter" RelativeTo="Element" Width="400" Height="400" Animation="Resize" HideEvent="LeaveTargetAndToolTip" OnAjaxUpdate="OnAjaxUpdate" OnClientHide="OnClientHide" RenderInPageRoot="true" AnimationDuration="200"> <TargetControls><telerik:ToolTipTargetControlTargetControlID="Complain_btn" IsClientID="true"/></TargetControls> </telerik:RadToolTipManager><Columns> <telerik:GridTemplateColumn HeaderText="Complains" UniqueName="TemplateColumn1"> <ItemTemplate> <telerik:RadButton ID="Complain_btn" Text="Complain Details" runat="server" > </telerik:RadButton> </ItemTemplate> </telerik:GridTemplateColumn></Columns> protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) { this.UpdateToolTip(args.Value, args.UpdatePanel); } private void UpdateToolTip(string elementID, UpdatePanel panel) { Control ctrl = Page.LoadControl("Complains.ascx"); panel.ContentTemplateContainer.Controls.Add(ctrl); Complains c = (Complains)ctrl; c.CompID = elementID; }
Do you have to have a DataSource defined in the .aspx for htis to work ?
What i was doing initially was databinding a list to my combobox in the code behind (page load)
I'm trying to get this working with automaticloadondemand but failing.
I've tried adding it into itemsrequested as well but no luck. I was hoping i'd be able to do this automatically rather than have to handle the request each time and have to calculate how many items are returned and what other ones need to display (showmoreresults box)
etc etc.
Regards,
Alan