This is one strange bug. I have a simple RadGrid with a couple of columns, I use a GridTemplateColumn with a checkbox control for deletion, heres the markup.
<telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Center" UniqueName="chkItem" ItemStyle-Width="1%"> <HeaderTemplate> <asp:CheckBox runat="server" onclick="$('.chk-locations2 input').prop('checked', this.checked).trigger('change');" ID="chkSelectAll" /> </HeaderTemplate> <ItemTemplate> <asp:CheckBox CssClass="chk chk-locations2" data-value='<%#Eval("LocationID")%>' text='<%#Eval("LocationID")%>' runat="server" ID="chkItem" Checked="false" /> </ItemTemplate> </telerik:GridTemplateColumn>Anyway, I have a button that does a full postback that checks for .Checked checkboxes and executes the delete operation, like this.
For Each Item As Telerik.Web.UI.GridItem In Input.Items If Item.ItemType = GridItemType.Item Or Item.ItemType = GridItemType.AlternatingItem Then Dim Chk As CheckBox = CType(Item.FindControl("chkItem"), CheckBox) If Chk.Checked Then Dim ID As String = Chk.Text If IsNumeric(ID) Then CallBack.Invoke(ID, Argument) End If End If End If NextAll works as expected, only the checked rows are deleted and since I reload the grid again, no items are checked once the page has reloaded, it all looks ok until you refresh the page again. If your grid had say 10 items and you ticked the first item and deleted it, as expected the grid now would have 9 items. If you refresh the page, a full postback is done as expected however, the first item is marked as "Checked" when it was not, so the item is then deleted and how you have 8 items despite the fact that you had not explicitly checked any item.
This seems to be a bug in the radgrid, the checkbox is shown as Checked when nobody checked it. The only solution I can see for now is to prevent a postback with Javascript by check for the no. of checked checkboxes.
Hey
where can i find the latest CDN package as i would like to try hosting my own as we are having some issues due to security settings.
Peter.
I have Updated Telerik From 2013 to 2015,but facing some issues now.
I have radTooltiptip with checkbox on it, whenever i check the box, instead of updating Radtootip at same location, it update itself in the background. and I get Two tooltip at same time. One as in Popup form and second in background. while i am using only one in code. It was working perfect in telerik2013.
<telerik:AjaxSetting AjaxControlID="rbcasestatus"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting>----------------------------------------------------------------------------- <telerik:RadToolTip ID="RadToolTip1" Animation="Slide" AnimationDuration="190" runat="server" Modal="true" HideEvent="ManualClose" Style="z-index: 6990" Position="Center" Width="751px"> <asp:Panel ID="Panel1" DefaultButton="btndispatch" BackColor="White" runat="server" Height="250px" Width="813px"> <table style="width: 782px"> <tr> <td style="margin-left: 10px;" class="auto-style23"></td> <td class="auto-style24" style="margin-left: 10px;"> <asp:Label ID="Label17" runat="server" CssClass="label" Text="Dispatch To"></asp:Label> </td> <td class="auto-style25"> <asp:RadioButtonList ID="rbcasestatus" runat="server" Height="16px" AutoPostBack="true" OnSelectedIndexChanged="rbcasestatus_SelectedIndexChanged" RepeatDirection="Horizontal" Width="172px"> <asp:ListItem Value="0">Client</asp:ListItem> <asp:ListItem Value="1">Vendor</asp:ListItem> </asp:RadioButtonList> </td> <td class="auto-style26"> <asp:Label ID="lblVendorName" runat="server" CssClass="label" Text="Vendor Name"></asp:Label> </td> <td class="auto-style27"> <asp:RadioButtonList ID="rbVendorName" runat="server" Height="16px" RepeatDirection="Horizontal" Width="172px"> <asp:ListItem Value="0">Huawei</asp:ListItem> <asp:ListItem Value="1">ZTE</asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr> <td class="auto-style19" style="margin-left: 10px;"> </td> <td class="auto-style3" style="margin-left: 10px;"> </td> <td class="auto-style14"> <asp:Button ID="btndispatch" runat="server" BorderColor="#0099CC" BorderStyle="Solid" class="customButton" Height="31px" OnClick="btndispatch_Click" Style="float: left; margin-right: 10px; margin-left: 1px;" Text="Dispatch" ValidationGroup="SaveActivity" Width="114px" /> </td> <td class="auto-style17"> </td> <td> </td> </tr> <tr> <td class="auto-style19"> </td> <td colspan="4"> <asp:Label ID="lblMessage" runat="server" ForeColor="Green"></asp:Label> </td> </tr> </table> <br /> <br /> </asp:Panel> </telerik:RadToolTip>------------------------------------------------------------------------------protected void rbcasestatus_SelectedIndexChanged(object sender, EventArgs e) { if (rbcasestatus.SelectedIndex==1) { lblVendorName.Visible = true; rbVendorName.Visible = true; } else { lblVendorName.Visible = false; rbVendorName.Visible = false; } }
Hi, we're creating an HTML (not an ASP.NET control) image map dynamically from the server side into an ASP Label. An ID is assigned to each AREA tag. There is a TooltipManager on the page and the Tooltip is dynamically created when a user mouses over any hotspot on the map. This process works fine, but the Tooltip appears to the right of the image map in the same place every time. It's like the Tooltip takes the position of the image map and not the hotspot. We've looked over the demos for TooltipManager and Tooltip but both aren't quite the same and don't seem to have an issue. I've attached a screen of what it looks like and the code used for creating the Tooltip. I'm sure it's just a CSS issue but there is nothing special about the page itself, besides it being part of a MasterPage.
ASP
<telerik:RadToolTipManager ID="ttmPrinters" ShowCallout="false" RelativeTo="Element" HideEvent="ManualClose" Position="MiddleLeft" Animation="None" Width="266px" Height="394px" ContentScrolling="None" runat="server" Skin="Silk" RenderInPageRoot="true" IgnoreAltAttribute="true" Modal="true"></telerik:RadToolTipManager>JS
var ttm = $find("ctl00_ContentPlaceHolder1_ttmPrinters");var tooltip = ttm.createToolTip(document.getElementById(id));tooltip.set_content(request.d);setTimeout(function () { tooltip.show();}, 10);Hi,
i want bind picture in radmap like this picture : http://i.stack.imgur.com/10mTZ.gif
and i want load ( x,y ) position from database and bind in radmap.
my question is :
how can bind image ?
and
how can load and bind ( x,y ) position from database and set in radmap ?
very thanks.
i see right panel when i hover over, it shows the title and other information.
however if i hover over on leftpanel - title column, it doesnt show the full text of it.
i have that requirement in my project.
how can i achieve it?
If this question has been asked before, my apologies for the (any) duplication.
I have two tabstrips/multipages on a single webform. The inner tabstrip/multipage contains 4 tabs each of which contains data entry controls (text boxes, combo boxes, etc.) for the same database record.
I would like to have one set of update/cancel buttons + 1 validation summary at the bottom but I cannot seem to find a "common area" either at the top or bottom of the multipage.
Is this possible? If so, is there a demo/example of this structure somewhere? Hopefully I've described my problem adequately.
Thanks in advance for any assistance!
Lynn
