<
telerik:RadDockLayout ID="RadDockLayout1" runat="server" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" OnLoadDockLayout="RadDockLayout1_LoadDockLayout">
<uc5:barraLateral ID="BarraLateral1" runat="server" />
<uc2:TodosConteudos ID="TodosConteudos1" runat="server" />
<uc3:MeusConteudos ID="MeusConteudos1" runat="server" />
<uc4:UltimosConteudos ID="UltimosConteudos1" runat="server" />
</telerik:RadDockLayout>
using
System;
using
System.Collections;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Web;
using
System.Web.SessionState;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Web.UI.HtmlControls;
using
Telerik.Web.UI;
public
partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
//Store the info about the added docks in the session.
private List<DockState> CurrentDockStates
{
get
{
List<DockState> _currentDockStates = (List<DockState>)Session["CurrentDockStates"];
if (Object.Equals(_currentDockStates, null))
{
_currentDockStates =
new List<DockState>();
Session[
"CurrentDockStates"] = _currentDockStates;
}
return _currentDockStates;
}
set
{
Session[
"CurrentDockStates"] = value;
}
}
protected void RadDockLayout1_SaveDockLayout(object sender, DockLayoutEventArgs e)
{
CurrentDockStates = RadDockLayout1.GetRegisteredDocksState();
}
protected void Page_Init(object sender, EventArgs e)
{
for (int i = 0; i < CurrentDockStates.Count; i++)
{
RadDock dock = new RadDock();
dock.ID =
string.Format("RadDock{0}", i);
dock.ApplyState(CurrentDockStates[i]);
RadDockLayout1.Controls.Add(dock);
}
}
protected void RadDockLayout1_LoadDockLayout(object sender, DockLayoutEventArgs e)
{
foreach (DockState state in CurrentDockStates)
{
e.Positions[state.UniqueName] = state.DockZoneID;
e.Indices[state.UniqueName] = state.Index;
}
}
}
RadTreeView1_NodeClick
to the sqldatasource select statement that resides in radgrid that is placed the page that uses the above master page.
Any ideas on how to do that?
Dim leditor As New RadEditor()
leditor.Skin =
"Black"
leditor.Width =
"100%"
leditor.EditModes = EditModes.All
leditor.NewLineBr =
True
...
|
Hi,
I have an export function for Word, Excel, CSV and PDF. I already set rgAcquirerCardCurrency.ExportSettings.ExportOnlyData = true;
But select check box column and AutoGenerateEditColumn are still exporting. Please let me know how to hide this two columns.
<
telerik:GridClientSelectColumn/>
AutoGenerateEditColumn
Regards,
Alex
Hi to all,
i would like to set a checkbox to checked after a OnClientSelectedIndexChanged Event triggert by a RadComboBox Control.
All this ClientSide.
I use a RadGrid and in every Row i have a RadComboBox and a Checkbox. After a Index changed in the RadComboBox i would like to set the Checkbox.
My problem is to find the Checkbox or rather to get a instance of this object.
Here are my Code:
| function OnClientSelectedIndexChanged_RowDecision(sender, eventArgs) { |
| var item = eventArgs.get_item(); |
| var ckhkBox = $telerik.findControl(item.get_itemData().get_element(), "chkbSelected"); |
| if (ckhkBox.checked == true) { |
| alert('Checked true'); |
| } |
| else { |
| alert('Checked false); |
| } |
| } |
| <telerik:RadGrid ID="rdgWI" |
| runat="server" |
| AutoGenerateColumns="False" |
| GridLines="None" |
| onneeddatasource="rdgWI_NeedDataSource" |
| PageSize="8" |
| AllowSorting="True"> |
| <HeaderContextMenu> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </HeaderContextMenu> |
| <ClientSettings> |
| <Scrolling AllowScroll="True" UseStaticHeaders="true" /> |
| <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> |
| </ClientSettings> |
| <MasterTableView ShowHeadersWhenNoRecords="true" AllowSorting="True" ShowHeader="true" runat="server"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="WiId" UniqueName="WiId" Visible="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn Display="true"> |
| <ItemTemplate> |
| <asp:CheckBox ID="chkbSelected" runat="server" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn HeaderText="Decision" SortExpression="" |
| UniqueName="Decision" Visible="false" DataField="WiRhTask" > |
| <ItemTemplate> |
| <telerik:RadComboBox ID="rcbDecision" |
| DataSource="Decision" |
| DataValueField="Description" DataTextField="Shortt" runat="server" |
| OnClientSelectedIndexChanged="OnClientSelectedIndexChanged_RowDecision" |
| meta:resourcekey="rcbDecisionResource1"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </telerik:RadComboBox> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| <FilterMenu> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |