.RadWindow.rwNoTitleBar .rwShadow .rwTitlebar, .RadWindow.rwNoTitleBar .rwShadow .rwTopLeft, .RadWindow.rwNoTitleBar .rwShadow .rwTopRight {
height
:
13px
!important
;
}
protected
void
trcCalendarID_OnDayRender(
object
sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
foreach
(Control control
in
trcCalendarID.Controls)
{
Button btnPlannen = (Button)control.FindControl(
"btnPlannenID"
);
if
(btnPlannen !=
null
)
{
//btnPlannen.Click += new EventHandler(btnPlannen_Click); //Pass 'e' as argument/parameter here
}
}
}
All,
I have an odd (I think) issue that I would really appreciate some help on. The nut of the issue is that I have a WCF 4.0 service posted in IIS (ASP.NET).
This WCF service needs to be accessible to protocols other than HTTP and is not in ASP.NET compatibility mode.
One of the components interfacing with this WCF service is in fact an ASP.NET site. On one of the pages there are the following controls:
- 2 timers
- RadTextBox
- div tag which in codebehind is being updated (html content)
- RadGrid
- RadAjaxManager (and all of its necessary components (i.e. loading panel))
1 of the timers is set to tick every 1 second, the other every 10 seconds.
During the 1 second timer tick, if the text has changed in the RadTextBox since the last postback, a call to the WCF service is made and the DIV tag is updated. This call returns immediately.
During the 10 second tick, if the text has changed in the RadTextBox since the last postback, a call to the WCF service is made and the RadGrid is updated. This call returns in ~8 seconds.
The code in the timers utilizes the async proxy generated methods for the WCF service and the callbacks handle the appropraite updating of the respective controls.
All of this is handled with RadAjaxManager (timer 1 updates div tag, timer 2 updates radgrid).
This solution works *except* that in the time during the timer 2 execution when a change is detected (~8 seconds), no further updates happen from the timer 1 code *until* after the callback initiated by the timer 2 code returns.
Essentially something is blocking somewhere. At first I thought it was a timer but then I repro'd the issue by invoking the grid population by a button click. I looked at the WCF service again and its ServiceBehaviors all appear to be set correctly to support proper async operations. About the only thing I haven't done is physically implement my own async methods in the WCF service to see if that resolves it.
Am I missing anything obvious here? Can two different async calls into the same WCF service not occur asynchronously?
Thanks for any and all help.
Jim
function uxRadGrid_RowSelected(sender, arg) {
//add rowKey to selection
var rowKey = arg.getDataKeyValue("rowKey");
if (!selected[rowKey]) {
selected[rowKey] = true;
}
}
function uxRadGrid_RowDeselected(sender, arg) {
//remove rowKey from selection
var rowKey = arg.getDataKeyValue("rowKey");
if (selected[rowKey]) {
selected[rowKey] = null;
}
}
function uxRadGrid_RowCreated(sender, arg) {
//select row if in selection
var rowKey = arg.getDataKeyValue("rowKey");
if (selected[rowKey]) {
arg.get_gridDataItem().set_selected(true);
}
}
//nothing here
<
telerik:RadGrid
ID
=
"uxRadGrid"
Skin
=
"Transparent"
AutoGenerateColumns
=
"false"
ShowHeader
=
"true"
Width
=
"100%"
OnNeedDataSource
=
"uxRadGrid_NeedDataSource"
OnItemCreated
=
"uxRadGrid_ItemCreated"
OnItemDataBound
=
"uxRadGrid_ItemDataBound"
PagerStyle-AlwaysVisible
=
"true"
PagerStyle-Mode
=
"NumericPages"
PagerStyle-Position
=
"Bottom"
AllowPaging
=
"true"
AllowMultiRowSelection
=
"true"
AllowSorting
=
"true"
runat
=
"server"
>
<
MasterTableView
ClientDataKeyNames
=
"rowKey"
TableLayout
=
"Auto"
GridLines
=
"None"
>
<
Columns
>
<
telerik:GridClientSelectColumn
/>
<
telerik:GridBoundColumn
DataField
=
"rowKey"
HeaderText
=
"Row Key"
/>
<
telerik:GridBoundColumn
DataField
=
"user_status"
/>
<
telerik:GridBoundColumn
DataField
=
"user_role"
/>
<
telerik:GridBoundColumn
DataField
=
"user_firstname"
/>
<
telerik:GridBoundColumn
DataField
=
"user_lastname"
/>
<
telerik:GridBoundColumn
DataField
=
"user_email"
/>
</
Columns
>
<
SortExpressions
>
<
telerik:GridSortExpression
FieldName
=
"rowKey"
SortOrder
=
"Ascending"
/>
</
SortExpressions
>
</
MasterTableView
>
<
ClientSettings
>
<
ClientEvents
OnRowCreated
=
"uxRadGrid_RowCreated"
OnRowDeselected
=
"uxRadGrid_RowDeselected"
OnRowSelected
=
"uxRadGrid_RowSelected"
OnGridCreated
=
"uxRadGrid_Created"
/>
<
Selecting
AllowRowSelect
=
"true"
/>
</
ClientSettings
>
</
telerik:RadGrid
>