or
C DataItem object and if i delete this bindings (currently getting "binded" in the page_load event of the usercontrol) everything just work as always, if a make a bind even just one it get stuck, do i forget to handle and a event?...
Users.aspx
<%@ Page Title="Users | Telerik Trial Testing" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="TelerikTrial.Users" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"ContentPlaceHolder2"
runat
=
"server"
>
</
asp:Content
>
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"ContentPlaceHolder1"
runat
=
"server"
>
<
telerik:RadComboBox
ID
=
"App_List"
runat
=
"server"
AutoPostBack
=
"true"
DataTextField
=
"ApplicationName"
DataValueField
=
"LoweredApplicationName"
OnSelectedIndexChanged
=
"App_List_SelectedIndexChanged"
>
</
telerik:RadComboBox
>
<
br
/>
<
telerik:RadAjaxManager
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"App_List"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"App_List"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"User_List"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"User_List"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"App_List"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"User_List"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
/>
<
telerik:RadGrid
ID
=
"User_List"
runat
=
"server"
AllowPaging
=
"True"
AutoGenerateColumns
=
"False"
GridLines
=
"None"
Skin
=
"Windows7"
OnPageIndexChanged
=
"User_List_PageIndexChanged"
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
></
PagerStyle
>
<
MasterTableView
EditMode
=
"PopUp"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"UserName"
>
<
EditFormSettings
UserControlName
=
"CustomEditControlForm.ascx"
EditFormType
=
"WebUserControl"
InsertCaption
=
"Add new user"
CaptionFormatString
=
"Edit User: {0}"
CaptionDataField
=
"UserName"
PopUpSettings-Modal
=
"true"
/>
<
Columns
>
<
telerik:GridEditCommandColumn
/>
<
telerik:GridClientDeleteColumn
/>
<
telerik:GridBoundColumn
DataField
=
"UserName"
ReadOnly
=
"true"
/>
<
telerik:GridBoundColumn
DataField
=
"Email"
/>
<
telerik:GridBoundColumn
DataField
=
"LastLoginDate"
ReadOnly
=
"true"
/>
<
telerik:GridCheckBoxColumn
DataField
=
"IsLockedOut"
/>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
>
<
ClientEvents
OnRowDblClick
=
"RowDblClick"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
</
asp:Content
>
CustomEditControlForm.ascx
<%@ Control Language="c#" Inherits="TelerikTrial.CustomEditControlForm"
CodeFile="CustomEditControlForm.ascx.cs" %>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
>
</
asp:TextBox
>
CustomEditControlForm.ascx.cs
using
System;
using
System.Data;
using
System.Collections;
using
System.Web.UI;
using
Telerik.Web.UI;
namespace
TelerikTrial.CustomEditControlForm
{
public
partial
class
CustomEditControlForm : System.Web.UI.UserControl
{
private
object
_dataItem =
null
;
public
object
DataItem
{
get
{
return
this
._dataItem;
}
set
{
this
._dataItem = value;
}
}
protected
void
Page_Load(
object
sender, System.EventArgs e)
{
// With just this binding the modal get stucks and the browser can't hide it...
TextBox1.Text = DataBinder.Eval( This.Parent.NamingContainer,
"DataItem.UserName"
).ToString();
}
}
}
Best Regards
<
telerik:RadAjaxManagerProxy
ID
=
"DaveRadAjaxManagerProxy"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"DaveRadTabStrip"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"DaveRadTabStrip"
LoadingPanelID
=
"DarRadAjaxLoadingPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadAjaxLoadingPanel
ID
=
"DarRadAjaxLoadingPanel"
Transparency
=
"20"
runat
=
"server"
Width
=
"200px"
Height
=
"100px"
BackgroundPosition
=
"Right"
IsSticky
=
"true"
BackColor
=
"Green"
>
<
img
src='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadAjaxLoadingPanel), "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' alt="Loading panel pic" />
</
telerik:RadAjaxLoadingPanel
>
<
telerik:RadAjaxManager
ID
=
"DarRadAjaxManager"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
Protected
Sub
RadScheduler1_TimeSlotCreated(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.TimeSlotCreatedEventArgs)
Handles
RadScheduler1.TimeSlotCreated
If
(DateTime.Compare(e.TimeSlot.Start.[
Date
], RadScheduler1.SelectedDate) = 0)
Then
e.TimeSlot.CssClass =
"SelectedDate"
End
If
If
e.TimeSlot.Start.[
Date
].DayOfWeek = DayOfWeek.Saturday
Then
e.TimeSlot.CssClass =
"SelectedDate"
End
If
End
Sub
div.RadTreeView .rtPlus, div.RadTreeView .rtMinus {
display: none;
}
but when i apply this css it is appying to both the treeview controls which i dont want, i want to apply this css to second treeview control.
Thanks