Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
236 views

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
        Next

All 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.

 

John
Top achievements
Rank 1
 answered on 09 Sep 2015
1 answer
183 views

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.

 

 

 

Marin Bratanov
Telerik team
 answered on 09 Sep 2015
2 answers
297 views

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;
 
        }
    }

Atif
Top achievements
Rank 1
 answered on 09 Sep 2015
6 answers
142 views
Hi,

I currently have the radEditor throughout my SharePoint application. The Document / Image Manager defaults to Gridview and thumbnails view respectively. Is there anyway to change these default views through the config.xml files? I have some picky users that keep complaining they have to switch views everytime. When uploading hundreds of images, I guess this can get tedious.

mc
Ianko
Telerik team
 answered on 09 Sep 2015
2 answers
291 views

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);

Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 09 Sep 2015
0 answers
51 views

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.

reza
Top achievements
Rank 1
 asked on 08 Sep 2015
4 answers
146 views
I have a grid that lists data, and I have set the EditFormType to be "Template" and created my edit table.  However, I want to be able to adjust one of the controls in my edit table to be either a RadTextBox or a RadDateTimePicker based on a different control on the same edit table (a RadioButtonList).  I have an event on the RBL when a user changes the SelectedValue, so how can I swap my controls on the page based on the users actions?  Or is there a better way to do it?
Mike
Top achievements
Rank 1
 answered on 08 Sep 2015
2 answers
158 views

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?

Rajshree
Top achievements
Rank 1
 answered on 08 Sep 2015
3 answers
164 views

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

Ivan Danchev
Telerik team
 answered on 08 Sep 2015
2 answers
109 views
I have updated Telerik 13 to 15 whenever i perform any Post back operation on my tooltip it actually disappears and UI us totally damaged, actually the tool tip goes to the Background after any control post back
Ali
Top achievements
Rank 1
 answered on 08 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?