This is a migrated thread and some comments may be shown as answers.

How can I access to edited task when I have editable cell feature turned on (celledittemplate)?

3 Answers 31 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Bahram
Top achievements
Rank 1
Bahram asked on 15 Apr 2019, 04:57 PM
Hi there,

I have an issue getting customizing CellEditTemplate to work. I am trying to update the title of a task in db, so I am using GanttView_TaskEdited event to get edited task. However e.Task.Title gives me existing value instead of giving me new value that just entered by user. Any thoughts on this?

Thanks,
Bahram Afsharipoor

3 Answers, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 18 Apr 2019, 11:41 AM
Hi Bahram,

I tried defining the following template and handling the TaskEdited event but I get the updated title via the e.Task.Title when doing so.

<telerik:TreeColumnDefinition Header="Title" MemberBinding="{Binding Title}" Width="240">
    <telerik:TreeColumnDefinition.CellEditTemplate>
        <DataTemplate>
            <TextBox Text="{Binding Title, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
        </DataTemplate>
    </telerik:TreeColumnDefinition.CellEditTemplate>
</telerik:TreeColumnDefinition>

I've prepared a small sample project and attached it to my reply for your reference.

Could you please have a look and let me know how this project differs from the setup you have at your end?

I will be looking forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Bahram
Top achievements
Rank 1
answered on 21 Apr 2019, 11:40 PM

Hi Dilyan,

It's working now! I appreciate your help, all I needed to do was adding UpdateSourceTrigger=PropertyChanged to the TextBox. I am surprised that why there is nothing about UpdateSourceTrigger on Customizing the CellEditTemplate

 

Thanks,

Bahram 

0
Dilyan Traykov
Telerik team
answered on 22 Apr 2019, 11:59 AM
Hi Bahram,

I'm happy to hear that everything is now working as expected at your end.

I also want to thank you for your feedback regarding our documentation and let you know that we will take it into account.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GanttView
Asked by
Bahram
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Bahram
Top achievements
Rank 1
Share this question
or