OnItemDblClick Problem

5 posts, 0 answers
  1. Oguzhan
    Oguzhan avatar
    10 posts
    Member since:
    Sep 2011

    Posted 31 Oct 2011 Link to this post

    I can't use TreeList OnItemDblClick Event,give me this error.


    "Sys.InvalidOperationException: 'ıtemDblClick' is not an event."

    My Codes Here:


    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

        <script type="text/javascript">

            function OnItemDblClick(sender, eventArgs) {
                var item = eventArgs.get_item();
                var message =item.get_displayIndex();
               
            }

        </script>

    </telerik:RadCodeBlock>


    <telerik:RadTreeList ID="RDLIST" runat="server" Culture="Turkish (Turkey)">
        <ClientSettings>
            <Selecting AllowItemSelection="True" />
          <ClientEvents OnItemDblClick="OnItemDblClick" />
        </ClientSettings>
    </telerik:RadTreeList>

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="false">
    </telerik:RadScriptManager>

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        EnableHistory="True">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RDLIST">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RDLIST" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>




    CODEBEHIND:



    DataTable  DT;
    DataClass dataclass = new DataClass();

     protected void Page_Load(object sender, EventArgs e)
        {

            DT = dataclass.SELECTSQL("MENU", "MENUNAME,ID,CID", "", "", "");

            RDLIST.DataKeyNames = new string[] {"ID"};
            RDLIST.ParentDataKeyNames = new string[] {"CID"};

            RDLIST.DataSource = DT;
            RDLIST.DataBind();

        }
      

  2. Oguzhan
    Oguzhan avatar
    10 posts
    Member since:
    Sep 2011

    Posted 01 Nov 2011 Link to this post

    Any suggestion ?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 02 Nov 2011 Link to this post

    Hi Oguzhan,

    I tested OnItemDblClick client side event of treelist in this demo and it is working properly:
    http://demos.telerik.com/aspnet-ajax/treelist/examples/client/clientsideevents/defaultcs.aspx

    You can also refer to the help article below:
    http://www.telerik.com/help/aspnet-ajax/treelist-onitemdblclick.

    Give them a try and let me know if they are useful for you.

    Regards,
    Pavlina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Oguzhan
    Oguzhan avatar
    10 posts
    Member since:
    Sep 2011

    Posted 04 Nov 2011 Link to this post

    I already make but i have same problem.I think this version have bug.
  6. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 09 Nov 2011 Link to this post

    Hello Oguzhan,

    I am still not able to replicate the issue. Can you make a runnable sample web site that represents the problem?You can also use Jing to capture a video and show us the exact scenario in witch the problem occurs.

    Kind regards,
    Pavlina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017