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

[Solved] Bind to attribute or retrive form update results

3 Answers 199 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Steve Kinyon
Top achievements
Rank 1
Steve Kinyon asked on 10 Dec 2007, 09:04 PM
I want to use an AdvancedEditTemplate to edit an appoinment entry.  However, I have a custom attribute with it and I don't see an easy way to handle updating the attribute.  How do I do one (or all) of these things:

1. Bind to an custom attribute in the edit form.
2. Intercept update event of the form so I can collect the updated attribute data data from the form instance.
3. Retrive the edit form instance during the AppointmentUpdate event.

I was able to fill the attribute data in the FormCreated event, but I'm not see a way to update it.  Nor do I see a way to get the form instance again like I had in the FormCreated event.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Dec 2007, 05:35 PM
Hi Steve,

You can bind Custom Attributes just like the Subject field. Please, consider the templates online example and try the following:
<AdvancedEditTemplate> 
                <div style="position: relative; background: #E6E6E6; height: 100%; border: 1px solid #666666;">  
                    <div style="margin-left: 10px; margin-top: 5px;">  
                        Description:<br /> 
                        <asp:TextBox ID="TitleTextBox" Rows="5" Columns="20" runat="server" Text='<%# Bind("Subject") %>' 
                            Width="95%" TextMode="MultiLine"></asp:TextBox><br /> 
                            <asp:TextBox ID="TextBox1" Rows="5" Columns="20" runat="server" Text='<%# Bind("MyCustomAttribute") %>' 
                            Width="95%" TextMode="MultiLine"></asp:TextBox><br /> 
                     

Is this what you need?


All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Steve Kinyon
Top achievements
Rank 1
answered on 12 Dec 2007, 08:51 PM
Yes, and that's what I tried the first time, but it didn't work.  I re-tried it after seeing your response, and it worked!  Not sure what happened.

On a 'wish list' note, it would be good to be able to do the other 2 things I listed to that we could do more advanced functions within that form (such as working with non-calendar items in the same form).  Not something I need right now, but would be nice...
0
Peter
Telerik team
answered on 13 Dec 2007, 01:11 PM
Hi Steve,

Thank you for your suggestions. We will have them in mind.


Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Steve Kinyon
Top achievements
Rank 1
Answers by
Peter
Telerik team
Steve Kinyon
Top achievements
Rank 1
Share this question
or