jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts

  • rahulChaudhari
    Participant

    Yes Svetoslav , your solution is working for me. i am initializing editor in ‘initeditor’ and removed from ‘Createeditor’ . this is working fine for me. Cant initialize editor in ‘createeditor’ only, i will get same error.


    rahulChaudhari
    Participant

    Hi Svetoslav,
    Thanks , It is working fine now. I initialize an editor in ‘Initeditor’ and removed from ‘createeditor’.

    One more thing i am facing is :
    If i have added a long text in my editable column and if i click out side of cell then cell text perfectly wrapped and looking fine. But as you can see in my code i have set autorowheight: true, , that means it will adjust the height of row on the basis of content in it. So i am getting same way.
    Issue is if i am again editing it and the row height is changed to ‘TextArea’ height because we are creating a TextArea on initeditor.
    I want to set row’s textArea height same as its row’s. Means in ‘initeditor’ to ‘TextArea’, i want to give autoRowHeight of it’s own Row.

    Please tell me how can i get current row height which has autorowheight: true, and on which event i can get it ?


    rahulChaudhari
    Participant

    When 2nd cell is begin to edit , it supposed to come blank. now coming previous TextArea text in it at begin edit


    rahulChaudhari
    Participant

    Thanks Svetoslav for reply.

    As you mentioned to initialize the editor every time the editor is opened.
    I think as per my code , i am initializing it too every time right.?
    and createeditor is creating an editor right.? so for same column comment at 1st row , If i am edit it and added a text ‘Svetoslav is a friend of Rahul’ and then i click outside of cell , now i click on comment column 2nd row cell , i will get same text.

    Note: I checked in page source of browser when this issue occurs. i got one point.
    When you edit 1st cell then it’s textArea id is customTextArea0 (0 is rowIndex) and if you edit 2nd cell then it’s TextArea id is same customTextArea0 that means , at second time it is not creating a new instance of textArea and using same previous one.

    Please help me with this. i didnt get how you are initializing a textArea everytime in your fiddle code . because i am also doing same thing right..?
    Or where i need make change a line of code please tell me .

Viewing 4 posts - 1 through 4 (of 4 total)