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

RadDock as External Edit, Ajax Issues

2 Answers 61 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
ChrisC.
Top achievements
Rank 2
ChrisC. asked on 19 Oct 2010, 11:51 PM

Hello,
I have a rather specialized problem, and I'm hoping somebody here might know what I'm doing wrong.

I'm using the RadScheduler Drag/Drop from RadGrid demo w/RadDock as external edit.  What I'm trying to implement, however, is a "go-between" in the drag/drop.  So, when the user drags a GridItem into the RadScheduler, instead of an appointment being created, a RadDock is populated and displayed and the user is allowed to enter additional information then click an "Add/Submit" button to create the appointment and update the RadScheduler.

So now I have 2 RadDocks, one for the Add function, and one for the Edit function (from the RadDock as external edit demo).  It's working as I had planned except for one thing, neither of the two forms' buttons respond to clicks in the code-behind.   When I've seen weird stuff like this in the past, it had something to do with my RadAjaxManager settings, but I just cannot figure out the problem.


RadAjaxManager

 

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest" >


<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />


<AjaxSettings>


<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">


<UpdatedControls>


<telerik:AjaxUpdatedControl ControlID="RadScheduler1" />


</UpdatedControls>


</telerik:AjaxSetting>


<telerik:AjaxSetting AjaxControlID="dayscale">


<UpdatedControls>


<telerik:AjaxUpdatedControl ControlID="RadScheduler1" />


</UpdatedControls>


</telerik:AjaxSetting>


<telerik:AjaxSetting AjaxControlID="RadPanelBar1">


<UpdatedControls>


<telerik:AjaxUpdatedControl ControlID="RadPanelBar1" />


<telerik:AjaxUpdatedControl ControlID="RadScheduler1" UpdatePanelHeight="" />


<telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelHeight="" />


</UpdatedControls>


</telerik:AjaxSetting>


<telerik:AjaxSetting AjaxControlID="RadScheduler1">


<UpdatedControls>


<telerik:AjaxUpdatedControl ControlID="RadScheduler1" />


<telerik:AjaxUpdatedControl ControlID="LithoEditDockPanel" />


</UpdatedControls>


</telerik:AjaxSetting>


<telerik:AjaxSetting AjaxControlID="RadGrid1">


<UpdatedControls>


<telerik:AjaxUpdatedControl ControlID="RadScheduler1" />


<telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelHeight="" />


<telerik:AjaxUpdatedControl ControlID="LithoAddDockPanel" />


</UpdatedControls>


</telerik:AjaxSetting>


<telerik:AjaxSetting AjaxControlID="SubmitButton">


<UpdatedControls>


<telerik:AjaxUpdatedControl ControlID="RadScheduler1" UpdatePanelHeight="" />


</UpdatedControls>


</telerik:AjaxSetting>


<telerik:AjaxSetting AjaxControlID="btnAdd">


<UpdatedControls>


<telerik:AjaxUpdatedControl ControlID="RadScheduler1" UpdatePanelHeight="" />


</UpdatedControls>


</telerik:AjaxSetting>


</AjaxSettings>

</telerik:RadAjaxManager>




 


Panel1- USED AS EXTERNAL EDIT PANEL

 

 

 

<asp:Panel runat="server" ID="LithoEditDockPanel">


<telerik:RadDock runat="server" ID="LithoRadDock" Width="500px" Height="780px"


Closed="true" Style="z-index: 2000;" Title="..."


OnClientDockPositionChanged="dockMoved" Skin="Windows7">



<Commands>


<telerik:DockCloseCommand />


</Commands>


<ContentTemplate>


<div class="editForm">


<div class="header">


<asp:Label runat="server" ID="StatusLabel"></asp:Label>


<asp:Label runat="server" ID="lblLithoEditRadDockDescription" Visible="false"></asp:Label>


</div>


<div class="pltInfo">


<ChrisC:MtInfoListview runat="server" ID="LithoMTInfo" />


</div>


<div class="content">

<table style="width: 100%;">

<tr>

<td colspan="1" align="left"

style="width: 53%; height: 50px; vertical-align: top;">

<telerik:RadTextBox ID="DescriptionText" Width="240px" runat="server" EmptyMessage="Description" Skin="Windows7" Label="Description" />

</td>

<td align="right" style="width: 50%; height: 50px; vertical-align: top; padding-right: 35px;">

<telerik:RadComboBox ID="cboWriteTool" runat="server" Width="100%"

Skin="Windows7" Label="Write Tool" DataSourceID="AreasDataSource"

DataTextField="q" DataValueField="id" AutoPostBack="true" />

</td>

</tr>

<tr>

<td colspan="1" align="left"

style="width: 53%; height: 15px; vertical-align: top;">

Starts at:

<telerik:RadDateTimePicker ID="StartTime" runat="server" SharedCalendarID="SharedCalendar"

SharedTimeViewID="SharedTimeView" Skin="Windows7" >

</telerik:RadDateTimePicker>

<br />

<asp:RequiredFieldValidator runat="server" ID="StartTimeRequiredFieldValidator" Display="Dynamic"

ControlToValidate="StartTime" ErrorMessage="Start time is required" />

</td>

<td colspan="1" align="right"

style="width: 100%; height: 15px; vertical-align: top; padding-right: 35px;">

<telerik:RadComboBox ID="cboPriority" runat="server" Width="100%"

Skin="Windows7" Label="Priority" DataSourceID="PriorityDataSource"

DataTextField="name" DataValueField="id" />

</td>

</tr>

<tr>

<td colspan="1" align="left"

style="width: 53%; height: 45px; vertical-align: top;">

<telerik:RadNumericTextBox ID="txtWriteTime" runat="server" Width="119px"

EmptyMessage="Write Time" Label="Write Time:" Skin="Windows7" />(hrs)

</td>

<td colspan="1" align="right"

style="width: 100%; height: 15px; vertical-align: top; padding-right: 35px;">

<telerik:RadComboBox ID="cboPlateType" runat="server" Width="100%"

Skin="Windows7" Label="Plate Type" DataSourceID="PlateTypeDataSource"

DataTextField="name" DataValueField="id" />

</td>

</tr>

</table>

<ChrisC:LithoParameters runat="server" id="LithoParameters" />

</div>

<div class="footer">

<asp:Button runat="server" ID="SubmitButton" Text="Update" OnClick="SubmitButton_Click" />

<button onclick="hideForm();" type="button" >Cancel</button>

<asp:Button runat="server" ID="btnCopy" Text="Copy" OnClick="btnCopy_Click" style="margin-right: 20px;" />

</div>

<telerik:RadTimeView ID="SharedTimeView" runat="server" Skin="Windows7">

</telerik:RadTimeView>

<telerik:RadCalendar ID="SharedCalendar" runat="server" EnableMonthYearFastNavigation="False"

EnableMultiSelect="False" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" Skin="Windows7">

</telerik:RadCalendar>

</div>

</ContentTemplate>

</telerik:RadDock>

</asp:Panel>





Panel2- USED AS EXTERNAL ADD PANEL


<asp:Panel runat="server" ID="LithoAddDockPanel">

<telerik:RadDock runat="server" ID="LithoAddRadDock" Width="500px" Height="780px"

Closed="true" Style="z-index: 2000;" Title="..."

OnClientDockPositionChanged="dockLithoAddMoved" Skin="Windows7">

<Commands>

<telerik:DockCloseCommand />

</Commands>

<ContentTemplate>

 

 

 


 

 


<div class="editForm">

 

 

 


 

 


<div class="header">

 

 

 


 

 


<asp:Label runat="server" ID="lithoAddStatusLabel"></asp:Label>

 

 

 


 

 


<asp:Label runat="server" ID="lblLithoAddDockPanelDescription" Visible="false"></asp:Label>

 

 

 


 

 


</div>

 

 

 


 

 

 

 

 


<div class="pltInfo">

 

 

 


 

 

 

 


<ChrisC:MtInfoListview runat="server" ID="MtInfoListview1" />

 

 

 


 

 

 


</div>

 

 

 


 

 

 

 

 

 

 

 

 


<div class="content">

 

 

 


 

 

 

 

 


<table style="width: 100%;">

 

 

 


 

 


<tr>

 

 

 


 

 


<td colspan="1" align="left"

 

 


style="width: 53%; height: 50px; vertical-align: top;">

 

 

 


 

 

 


<telerik:RadTextBox ID="txtLithoAddDescription" Width="240px" runat="server" EmptyMessage="Description" Skin="Windows7" Label="Description" />

 

 

 


 

 

 


</td>

 

 

 


 

 

 


<td align="right" style="width: 50%; height: 50px; vertical-align: top; padding-right: 35px;">

 

 

 


 

 

 


<telerik:RadComboBox ID="cboLithoAddWriteTool" runat="server" Width="100%"

 

 


Skin="Windows7" Label="Write Tool" DataSourceID="AreasDataSource"

 

 


DataTextField="q" DataValueField="id" AutoPostBack="true" />

 

 

 


 

 

 


</td>

 

 

 


 

 


</tr>

 

 

 


 

 

 


<tr>

 

 

 


 

 


<td colspan="1" align="left"

 

 


style="width: 53%; height: 15px; vertical-align: top;">

 

 

 


 

 


&nbsp;

 

 

 


 

 


</td>

 

 

 


 

 

 


<td colspan="1" align="right"

 

 


style="width: 100%; height: 15px; vertical-align: top; padding-right: 35px;">

 

 

 


 

 

 

 


<telerik:RadComboBox ID="cboLithoAddPriority" runat="server" Width="100%"

 

 


Skin="Windows7" Label="Priority" DataSourceID="PriorityDataSource"

 

 


DataTextField="name" DataValueField="id" />

 

 

 


 

 

 

 

 


</td>

 

 

 


 

 

 

 


</tr>

 

 

 


 

 

 


<tr>

 

 

 


 

 


<td colspan="1" align="left"

 

 


style="width: 53%; height: 45px; vertical-align: top;">

 

 

 


 

 


<telerik:RadNumericTextBox ID="txtLithoAddWriteTime" runat="server" Width="119px"

 

 


EmptyMessage="Write Time" Label="Write Time:" Skin="Windows7" />(hrs)

 

 


</td>

 

 

 


 

 

 


<td colspan="1" align="right"

 

 


style="width: 100%; height: 15px; vertical-align: top; padding-right: 35px;">

 

 

 


 

 

 

 


<telerik:RadComboBox ID="cboLithoAddPlateType" runat="server" Width="100%"

 

 


Skin="Windows7" Label="Plate Type" DataSourceID="PlateTypeDataSource"

 

 


DataTextField="name" DataValueField="id" />

 

 

 


 

 

 

 

 

 


</td>

 

 

 


 

 

 


</tr>

 

 

 


 

 


</table>

 

 

 


 

 

 

 

 

 

 

 


<ChrisC:LithoParameters runat="server" id="LithoParameters1" />

 

 

 


 

 

 

 

 

 


</div>

 

 

 


 

 

 

 


<div class="footer">

 

 

 


 

 

 


<asp:Button runat="server" ID="btnAdd" Text="Q It!" OnClick="lithoAddButton_Click" />

 

 

 


 

 

 


<button onclick="hideLithoAddForm();" type="button" >Cancel</button>

 

 

 


 

 

 


<asp:Button runat="server" ID="btnAddCopy" Text="Copy" OnClick="lithoAddCopy_Click" style="margin-right: 20px;" />

 

 

 


 

 

 


</div>

 

 

 


 

 

 

 


</div>

 

 

 


 

 


</ContentTemplate>

 

 

 


 

 


</telerik:RadDock>

 

 

 


 

 


</asp:Panel>

 

 

 





2 Answers, 1 is accepted

Sort by
0
ChrisC.
Top achievements
Rank 2
answered on 19 Oct 2010, 11:54 PM
Sorry about the formatting...  For some reason I can't get the 'Format Code Block' function to work.  I click the icon, but all it does is show an empty dialog.
0
ChrisC.
Top achievements
Rank 2
answered on 22 Oct 2010, 03:29 PM
Nevermind.  RadWindow seems to suit my purposes much better than RadDock.
Tags
Ajax
Asked by
ChrisC.
Top achievements
Rank 2
Answers by
ChrisC.
Top achievements
Rank 2
Share this question
or