or
<
telerik:RadDatePicker
ID
=
"dtAgendamento"
runat
=
"server"
ZIndex
=
"30001"
ShowPopupOnFocus
=
"True"
Skin
=
"Vista"
AutoPostBack
=
"True"
Visible
=
"False"
Width
=
"120px"
TabIndex
=
"2"
>
<
Calendar
Skin
=
"Vista"
UseColumnHeadersAsSelectors
=
"False"
UseRowHeadersAsSelectors
=
"False"
ViewSelectorText
=
"x"
>
</
Calendar
>
<
DateInput
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
LabelWidth
=
""
TabIndex
=
"2"
>
</
DateInput
>
</
telerik:RadDatePicker
>
<
GroupPanel
SkinID
=
"Office2007"
>
<
PanelItemsStyle
GridLines
=
"None"
/>
<
PanelStyle
GridLines
=
"None"
</GroupPanel>
<
telerik:RadGrid
ID
=
"DetailsGrid"
runat
=
"server"
CellSpacing
=
"0"
Skin
=
"Office2007"
GridLines
=
"Vertical"
AllowSorting
=
"true"
ShowGroupPanel
=
"true"
AllowPaging
=
"false"
OnNeedDataSource
=
"DetailsGrid_NeedDataSource"
OnUpdateCommand
=
"DetailsGrid_UpdateCommand"
OnItemDataBound
=
"DetailsGrid_ItemDataBound"
OnItemCreated
=
"DetailsGrid_ItemCreated"
OnDataBound
=
"DetailsGrid_DataBound"
OnDataBinding
=
"DetailsGrid_DataBinding"
GroupHeaderItemStyle-BackColor
=
"White"
>
<
SelectedItemStyle
CssClass
=
"selectedRow"
/>
<
ClientSettings
ReorderColumnsOnClient
=
"true"
EnablePostBackOnRowClick
=
"false"
AllowDragToGroup
=
"true"
>
<
Resizing
AllowColumnResize
=
"true"
EnableRealTimeResize
=
"true"
ShowRowIndicatorColumn
=
"true"
AllowResizeToFit
=
"true"
/>
<
ClientEvents
OnGridCreated
=
"GridCreated"
OnKeyPress
=
"KeyPress"
OnRowDblClick
=
"RowDblClick"
OnCommand
=
"GridCommand"
/>
<
Selecting
AllowRowSelect
=
"true"
CellSelectionMode
=
"SingleCell"
/>
<
Scrolling
UseStaticHeaders
=
"true"
AllowScroll
=
"true"
/>
</
ClientSettings
>
<
MasterTableView
TableLayout
=
"Fixed"
EditMode
=
"InPlace"
AutoGenerateColumns
=
"false"
DataKeyNames
=
"opportunityProductId"
ShowFooter
=
"true"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"135px"
Font-Bold
=
"true"
/>
<
Columns
>
...
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
ScriptManager.RegisterStartupScript(this, typeof(Page), "CloseAndRebind", "", true);
I want to do this, but using Datasource , without SqlDataSource
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window
Protected Sub ButtonSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonSave.Click
Response.Cookies("myText").Value = theEditor.Content
End Sub
Protected Sub ButtonLoad_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonLoad.Click
theEditor.Content = Request.Cookies("myText").Value
End Sub
Public
Sub
AddNewCityTextbox_TextChanged(sender
As
Object
, e
As
System.EventArgs)
Dim
TextBox =
CType
(sender, RadTextBox)
Dim
item =
CType
(TextBox.NamingContainer, RadListViewEditableItem)
Dim
AddNewCityTextbox
As
RadTextBox =
DirectCast
(item.FindControl(
"AddNewCityTextbox"
), RadTextBox)
Dim
SubmitLink
As
RadButton =
DirectCast
(item.FindControl(
"SubmitNewCity"
), RadButton)
SubmitLink.CommandArgument =
"Please confirm you wish to add "
& AddNewCityTextbox.Text &
"?"
End
Sub
<telerik:RadButton ID=
"SubmitNewCity"
runat=
"server"
Text=
"Submit"
style=
"margin-right:10px;"
ValidationGroup=
"AddCityGroup"
OnClientClicking=
"function(button,args){args.set_cancel(!window.confirm(button.get_commandArgument()));}"
>
</telerik:RadButton>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadListBoxADGroups"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadListBoxGroups"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"LabelMessage"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadListBoxGroups"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"LabelMessage"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadComboBoxPolice"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadListBoxGroups"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
table
>
<
tr
>
<
td
>
<
telerik:RadListBox
ID
=
"RadListBoxADGroups"
runat
=
"server"
AllowTransfer
=
"True"
DataSourceID
=
"ObjectDataSourceADGroup"
DataTextField
=
"Name"
Height
=
"300px"
Width
=
"300px"
TransferToID
=
"RadListBoxGroups"
EmptyMessage
=
"Active Directory is missing"
AutoPostBackOnTransfer
=
"True"
OnTransferred
=
"RadListBoxADGroupsTransferred"
EnableDragAndDrop
=
"True"
TransferMode
=
"Copy"
>
<
ButtonSettings
TransferButtons
=
"TransferFrom"
Position
=
"Right"
VerticalAlign
=
"Top"
AreaWidth
=
"40"
/>
</
telerik:RadListBox
>
<
asp:ObjectDataSource
ID
=
"ObjectDataSourceADGroup"
runat
=
"server"
SelectMethod
=
"SelectADGroups"
TypeName
=
"Scheduler.WebClient.ADGroup"
></
asp:ObjectDataSource
>
</
td
>
<
td
>
<
telerik:RadListBox
ID
=
"RadListBoxGroups"
runat
=
"server"
EmptyMessage
=
"No Sorted Groups"
Style
=
"top: 0px; left: 0px; width: 250px; height: 300px"
Height
=
"300px"
AutoPostBackOnDelete
=
"True"
DataKeyField
=
"GroupPoliceId"
DataSourceID
=
"ObjectDataSourceFiltGroups"
DataTextField
=
"Name"
DataValueField
=
"Id"
OnDeleted
=
"RadListBoxGroupsDeleted"
AllowDelete
=
"True"
OnClientDeleting
=
"RadListBoxGroups_Deleting"
>
<
ButtonSettings
Position
=
"Right"
VerticalAlign
=
"Top"
AreaWidth
=
"40"
/>
</
telerik:RadListBox
>
<
asp:ObjectDataSource
ID
=
"ObjectDataSourceFiltGroups"
runat
=
"server"
SelectMethod
=
"SelectFilteredGroups"
TypeName
=
"Scheduler.WebClient.Controller"
>
<
SelectParameters
>
<
asp:ControlParameter
ControlID
=
"RadComboBoxPolice"
Name
=
"politicId"
PropertyName
=
"SelectedValue"
Type
=
"Int32"
/>
<
asp:ControlParameter
ControlID
=
"LabelOwnGName"
Name
=
"ownGName"
PropertyName
=
"Text"
Type
=
"String"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"LabelOwnGName"
runat
=
"server"
/>
<
asp:ObjectDataSource
ID
=
"ObjectDataSourceGrPolices"
runat
=
"server"
SelectMethod
=
"SelectGroupPolices"
TypeName
=
"Scheduler.WebClient.Controller"
></
asp:ObjectDataSource
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"RadComboBoxPolice"
runat
=
"server"
DataSourceID
=
"ObjectDataSourceGrPolices"
DataTextField
=
"Name"
DataValueField
=
"Id"
AutoPostBack
=
"True"
Width
=
"100px"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
</
table
>
</
div
>
<
br
/>
<
div
class
=
"field-center-error"
>
<
asp:Label
ID
=
"LabelMessage"
runat
=
"server"
ClientIDMode
=
"Static"
/>
</
div
>
protected void RadListBoxADGroupsTransferred(object sender, Telerik.Web.UI.RadListBoxTransferredEventArgs e)
{
if (e.DestinationListBox != sender)
{
foreach (var grpIns in e.Items.Select(item => new Group { Name = item.Text,
GroupPoliceId = Convert.ToInt32(RadComboBoxPolice.SelectedValue) }) )
{
_sc.InsertGroup(grpIns);
}
LabelMessage.Text = Controller.Message;
RadListBoxGroups.DataBind();
}
}
protected void RadListBoxGroupsDeleted(object sender, Telerik.Web.UI.RadListBoxEventArgs e)
{
foreach (var grpDel in e.Items.Select(item => new Group { Id = Convert.ToInt32(item.Value),
Name = item.Text }))
{
_sc.DeleteGroup(grpDel);
}
LabelMessage.Text = Controller.Message;
RadListBoxGroups.DataBind();
}
<
div
id
=
"main"
class
=
'column last span-19'
>
<
telerik:RadDockLayout
ID
=
"rdlSliders"
runat
=
"server"
OnSaveDockLayout
=
"rdlSliders_SaveDockLayout"
OnLoadDockLayout
=
"rdlSliders_LoadDockLayout"
>
<
telerik:RadSplitter
ID
=
"RadSplitter1"
runat
=
"server"
Width
=
"1252"
OnClientLoaded
=
"splitterLoaded"
Height
=
"100%"
>
<
telerik:RadPane
ID
=
"LeftPane"
runat
=
"server"
Width
=
"22"
Scrolling
=
"None"
Height
=
"100%"
>
<
telerik:RadSlidingZone
ID
=
"SlidingZone1"
runat
=
"server"
Width
=
"22"
Height
=
"100%"
>
<
telerik:RadSlidingPane
ID
=
"rspDefault1"
Title
=
"Landing Area"
runat
=
"server"
Width
=
"300px"
OnClientResized
=
"resizepane"
OnClientExpanded
=
"resizepane"
>
<
telerik:RadDockZone
ID
=
"rdzCapacity"
runat
=
"server"
Width
=
"290px"
UniqueName
=
"Capacity"
Height
=
"100%"
>
</
telerik:RadDockZone
>
</
telerik:RadSlidingPane
>
</
telerik:RadSlidingZone
>
</
telerik:RadPane
>
<
telerik:RadSplitBar
ID
=
"RadSplitbar1"
runat
=
"server"
></
telerik:RadSplitBar
>
<
telerik:RadPane
ID
=
"MainPane"
runat
=
"server"
Height
=
"100%"
>
<
telerik:RadMultiPage
ID
=
"RadMultiPage1"
runat
=
"server"
Width
=
"99%"
SelectedIndex
=
"0"
Height
=
"100%"
>
</
telerik:RadMultiPage
>
</
telerik:RadPane
>
</
telerik:RadSplitter
>
</
telerik:RadDockLayout
>
</
div
>
$(document).ready(function () {
var windowheight = $(window).height();
$("RadSplitter1").height((windowheight - 136));
$("#SlidingZone1").height((windowheight - 136));
$("#MainPane").height((windowheight - 136));
$("#rspDefault1").height((windowheight - 136));
});