Can not edit cell after invoking cell clicking event

Posted by: rajass62 on 8 September 2017, 3:07 pm EST

  • Posted 8 September 2017, 3:07 pm EST

    We are using spread.net 6.0 for ASP.NET in C#.  We are facing difficulty in editing a cell after setting AutoPostback as true inorder to use Cell click event. Now We can not update the cell content.

    So we coulld not  use Cell Click and editing the cell simultaneously

     Any one can solve the problem.

    Thanks in Advance.

    Regards,

    Rajaram. 

  • Replied 8 September 2017, 3:07 pm EST

    Thanks Manpreet Kaur. We have gone through this forum. But we can not find any solution for Cell Click event in the client side . I want code for when click on Spread Cell for ASP.Net, a click event should be fired and popup box should be shown .

    Please help me.

    Thanks

    Rajaram. 

  • Replied 8 September 2017, 3:07 pm EST

    Hello,

    You may accomplish the same using the client side onActiveCellChanged event. This event is raised as soon as you click on nay cell in Spread. You can use the same evnt to show up the popup. Please have a look at the attached sample that depicts the same.

    Hope it helps.

    Thanks,

    Manpreet Kaur


    2013/04/ClickPopUP.zip
  • Replied 8 September 2017, 3:07 pm EST

    Many thanks to Manpreet Kaur.  You are doing great job.

    Thanks,

  • Replied 8 September 2017, 3:07 pm EST

    Hello,

    When we set AutoPostBack property to true for Spread all
    the client side functionality stops working. Editing is a client side
    functionality and hence as soon as you click on the cell it calls the
    cell click event server side leaving the client side functionality
    behind. Please have a look at the following forum links that discuss the similar issue and suggest workarounds for the same:

                          http://www.clubfarpoint.com/Forums/forums/thread/33248.aspx

                          http://www.clubfarpoint.com/Forums/forums/thread/59352.aspx

                          http://www.clubfarpoint.com/Forums/forums/thread/26080.aspx

    Hope it helps.

    Thanks,

    Manpreet Kaur

  • Replied 8 September 2017, 3:07 pm EST

    Now Popup box has been shown through JavaScript.

    We have to display database value in the Popup box.

    For this purpose, We have wriiten function in C#.

    Our problem, how to call C# function from the Java Script to display vaue

    in the Poup.

    We are new to Java script. Kindly help us.

    Thanks.

    Regards,

    Rajaram. 

  • Replied 8 September 2017, 3:07 pm EST

    Hello,

    You may refer to the following links that discuss the similar issue:

    http://www.codeproject.com/Questions/367889/Call-server-side-function-in-javascript

    http://tuvianblog.com/2011/06/10/how-to-call-serverside-function-from-client-side-javascript-in-asp-net/

    http://forums.asp.net/t/999909.aspx/1

    http://stackoverflow.com/questions/3709426/call-server-side-function-from-client-side-javascript

    Hope it helps.

    Thanks,

    Manpreet Kaur

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels