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

InlineEditTemplate > how to make the subject into a combobox

3 Answers 66 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
NightFlash
Top achievements
Rank 1
NightFlash asked on 27 May 2011, 08:55 PM

Hi,

I'm kinda new with the radscheduler, but after working really hard at the calender I managed to make everything work.
Only the inlineEditTemplate is impossible to understand for me.

This is my problem : The subject can only have a few values, that's why I want to use a combobox.
But it doesn't matter how I name the field in the InlineEditTemplate, he always use the Text in the Textbox as Subject.
With the Combobox he doesn't do anything :(

Can someone explain me how I can make a very easy inlineedittemplate with 1 combox to change the subject field.

Thnx alot!

<

 

InlineEditTemplate>

 

 

<asp:TextBox runat="server" ID="SubjectTextBox2" Text='<%# Bind("Subject") %>' Width="99%"></asp:TextBox>

 

status :

<telerik:RadComboBox ID="SubjectTextBox" Runat="server" SelectedValue='<%# Bind("Subject") %>'>

 

 

<Items>

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, H00 %>" Value="H00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, I00 %>" Value="I00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, I30 %>" Value="I30" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P00 %>" Value="P00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P06 %>" Value="P06" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P07 %>" Value="P07" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P08 %>" Value="P08" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, H03 %>" Value="H03" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P02 %>" Value="P02" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P46 %>" Value="P46" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, I70 %>" Value="I70" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, N00 %>" Value="N00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, U00 %>" Value="U00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, T00 %>" Value="T00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, O01 %>" Value="O01" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, O03 %>" Value="O03" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, O04 %>" Value="O04" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<asp:LinkButton runat="server" ID="UpdateLinkButton" CommandName="Update" Text="Update"></asp:LinkButton>&nbsp;

 

 

<asp:LinkButton runat="server" ID="CancelLinkButton" CommandName="Cancel" Text="Cancel"></asp:LinkButton>

 

 

</div>

 

 

</InlineEditTemplate>

 

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 28 May 2011, 02:07 PM
Hi NightFlash,

We tested your code and if we understand you good everything seems to be working. I am sending you a simple demo showing what we did. If you have any further questions feel free to ask.

Regards,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
NightFlash
Top achievements
Rank 1
answered on 28 May 2011, 03:32 PM
Hi,

Thnx for your fast reply, the thing I would like to do is remove this line :

<

 

asp:TextBox runat="server" ID="SubjectTextBox2" Text='<%# Bind("Subject") %>' Width="99%"></asp:TextBox>

 


And instead the combobox must update the subject field. But from the moment I remove this textbox I always get an error :

}
Regel 1023:            if ((subject == null)) {
Regel 1024:                throw new global::System.ArgumentNullException("subject");
Regel 1025:            }
Regel 1026:            else {

So if you could fix that for I would be very grateful!

Thnx
0
Plamen
Telerik team
answered on 30 May 2011, 08:38 AM
Hi NightFlash,

We inspected the problem and removed the same line and everything was fine. Please have in mind that if you try to modify an appointment whose subject is different from the available values in RadComboBox(in our case a0,b0,c0) you will have a exception. This is expected.

If you still have a problem, please try to modify the demo we sent you, so that the problem could be observed and send it back to us as a support ticket so that we can research it here.

Greetings,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
NightFlash
Top achievements
Rank 1
Answers by
Plamen
Telerik team
NightFlash
Top achievements
Rank 1
Share this question
or