Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
do you have sample code to do what I found in the demo area where you could change the skins? See Screenshot
Aneliya Petkova
Telerik team
 answered on 15 Oct 2014
1 answer
486 views
I am using RadAsyncUpload to upload files. I have a 'Cancel' button which the user can click anytime after selecting the files (see the attached image). I want to clear the selected files - or in other words reset the RadAsyncUpload Control when 'Cancel' button is clicked. I am doing some other checks when this button is clicked so I don't want to do this on client side. Please advice. 

Thanks
Boyan Dimitrov
Telerik team
 answered on 15 Oct 2014
4 answers
292 views
I am using telerik controls for the first time. I am getting an extra space after the last column. When I do not freeze the first two columns, the space disappears, but then there is a misalignment between the columns and the headers. Could you please advise? is it because, i am resizing the grid and headers when the radpane collapses/expands, and in the gridcreated event?

Please find below the code in my aspx page

%

 

@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmSalReview.aspx.cs" Inherits="PrincessUI.FramePages.FrmInitialSalReview" MasterPageFile="~/Site.Master"%>

 

<

 

 

asp:Content ContentPlaceHolderID="HeadContent" ID="head" runat="server">

 

<

 

 

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

 

<script type="text/javascript">

 

 

 

function OnClientResized(sender, eventArgs) {

 

 

 

var grid = $find("<%= radgridSalReview.ClientID %>");

 

 

 

var pane = $find("<%= RadPane2.ClientID %>");

 

 

 

var size = pane.get_width() - 20;

 

grid.get_element().style.width = size;

 

 

var gridHeader = grid.GridHeaderDiv;

 

gridHeader.style.width = size;

}

 

 

function OpenPopupWindow() {

 

 

 

var userWidth = screen.availWidth;

 

 

 

var userHeight = screen.availHeight;

 

leftPos = (userWidth - 900) / 2,

topPos = (userHeight - 250) / 2;

settings =

 

'modal,scrollBars=no,resizable=no,toolbar=no,menubar=no,location=no,directories=no,left='+ leftPos +',top=' + topPos +',width=900, height=260';

 

window.open(

 

"FrmConfigTableLayout.aspx", "popup", settings);

 

}

 

 

function ShowPopup() {

 

window.radopen(

 

"FrmConfigTableLayout.aspx", "ConfigTblLayout");

 

 

 

return false;

 

}

 

 

function refreshGrid(arg) {

 

 

 

if (!arg) {

 

$find(

 

"<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");

 

}

}

 

 

function GridCreated(sender, args) {

 

 

 

var pane = $find("<%= RadPane2.ClientID %>");

 

 

 

var grid = $find("<%= radgridSalReview.ClientID %>");

 

 

 

 

if (grid != null && pane != null) {

 

grid.get_element().style.width = pane.get_width() - 20;

 

 

var gridHeader = grid.GridHeaderDiv;

 

gridHeader.style.width = pane.get_width() - 20;

 

}

}

 

</

 

 

script>

 

</

 

 

telerik:RadCodeBlock>

 

</

 

 

asp:Content>

 

<

 

 

asp:Content ContentPlaceHolderID="MainContent" ID="body" runat="server">

 

<

 

 

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

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="RadTreeView1">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radgridSalReview"></telerik:AjaxUpdatedControl>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radnumtxtMonSal"></telerik:AjaxUpdatedControl>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radnumtxtIncBudget"></telerik:AjaxUpdatedControl>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radnumtxtIncPercent"></telerik:AjaxUpdatedControl>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radnumtxtIncrBudToDist"></telerik:AjaxUpdatedControl>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radnumtxtAnnualSalary"></telerik:AjaxUpdatedControl>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radnumtxtBonusBudget"></telerik:AjaxUpdatedControl>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radnumtxtBonusPercent"></telerik:AjaxUpdatedControl>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radnumtxtBonusBudToDist"></telerik:AjaxUpdatedControl>

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="radgridSalReview"></telerik:AjaxUpdatedControl>

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

 

</telerik:RadAjaxManager>

 

 

<

 

 

telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="ConfigTblLayout" runat="server" Title="Configure Table Layout" Height="320px"

 

 

 

Width="900px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"

 

 

 

Modal="true" Behaviors="Close,Move,Minimize">

 

 

 

</telerik:RadWindow>

 

 

 

</Windows>

 

 

 

</telerik:RadWindowManager>

 

 

<

 

 

div class="Main-Content">

 

<

 

 

table width="100%">

 

<

 

 

tr>

 

<

 

 

td colspan="8">

 

<

 

 

asp:Label ID="lblTitle" runat="server" Text="Salary increment and Bonus Review " CssClass="Label"></asp:Label>

 

</

 

 

td>

 

</

 

 

tr>

 

<

 

 

tr>

 

<

 

 

td colspan="8">

 

</

 

 

td>

 

</

 

 

tr>

 

<

 

 

tr>

 

<

 

 

td>

 

 

 

<asp:Label ID="lblMonthlySalary" runat="server" Text="Monthly Salary" CssClass="Legend"></asp:Label>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtMonSal" runat="server"

 

 

 

Enabled="False">

 

 

 

</telerik:RadNumericTextBox>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<asp:Label ID="lblIncBudget" runat="server" Text="Increment Budget" CssClass="Legend"></asp:Label>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtIncBudget" runat="server"

 

 

 

Enabled="False">

 

 

 

</telerik:RadNumericTextBox>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<asp:Label ID="lblIncPercent" runat="server" Text="Increment (%)" CssClass="Legend"></asp:Label>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtIncPercent" runat="server"

 

 

 

Enabled="False">

 

 

 

</telerik:RadNumericTextBox>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<asp:Label ID="lblIncrBudToBeDist" runat="server" Text="Increment Budget to be distributed" CssClass="Legend"></asp:Label>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtIncrBudToDist" runat="server"

 

 

 

Enabled="False">

 

 

 

</telerik:RadNumericTextBox>

 

</

 

 

td>

 

</

 

 

tr>

 

<

 

 

tr>

 

<

 

 

td><asp:Label ID="lblAnnualSalary" runat="server" Text="Annual Salary" CssClass="Legend"></asp:Label>

 

</

 

 

td>

 

<

 

 

td><telerik:RadNumericTextBox ID="radnumtxtAnnualSalary" runat="server"

 

 

 

Enabled="False">

 

 

 

</telerik:RadNumericTextBox></td>

 

<

 

 

td>

 

 

 

<asp:Label ID="lblBonusBudget" runat="server" Text="Bonus Budget" CssClass="Legend"></asp:Label>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtBonusBudget" runat="server"

 

 

 

Enabled="False">

 

 

 

</telerik:RadNumericTextBox>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<asp:Label ID="lblBonus" runat="server" Text="Bonus (%)" CssClass="Legend"></asp:Label>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtBonusPercent" runat="server"

 

 

 

Enabled="False">

 

 

 

</telerik:RadNumericTextBox>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<asp:Label ID="lblBonusBudToDist" runat="server" Text="Bonus Budget to be distributed" CssClass="Legend"></asp:Label>

 

</

 

 

td>

 

<

 

 

td>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtBonusBudToDist" runat="server"

 

 

 

Enabled="False">

 

 

 

</telerik:RadNumericTextBox>

 

</

 

 

td>

 

</

 

 

tr>

 

</

 

 

table>

 

 

 

<telerik:RadSplitter ID="RadSplitter1" runat="server" LiveResize="true"

 

 

 

Skin="Vista" Width="100%" Height="550px">

 

 

 

<telerik:RadPane ID="RadPane1" Runat="server" Width="25%">

 

 

 

<telerik:RadTreeView ID="RadTreeView1" Runat="server" Skin="Vista"

 

 

 

OnNodeClick="RadTreeView1_NodeClick"></telerik:RadTreeView></telerik:RadPane>

 

 

 

 

<telerik:RadSplitBar ID="RadSplitBar1" Runat="server" CollapseMode="Forward"></telerik:RadSplitBar>

 

 

 

<telerik:RadPane ID="RadPane2" Runat="server" Width="75%" Height="100%" Scrolling="None" OnClientResized="OnClientResized" >

 

 

 

<table width="100%">

 

 

 

<tr>

 

 

 

<td></td>

 

 

 

<td>

 

 

 

<telerik:RadGrid ID="radgridSalReview"

 

 

 

Width="920px" AllowSorting="True" runat="server" AutoGenerateColumns="False"

 

 

 

CellSpacing="0" Skin="Vista"

 

 

 

OnNeedDataSource="radgridSalReview_NeedDataSource"

 

 

 

OnItemDataBound="radgridSalReview_ItemDataBound"

 

 

 

AllowPaging="True" OnUpdateCommand="radgridSalReview_UpdateCommand"

 

 

 

PageSize="8" Height="370px" OnPreRender="radgridSalReview_OnPreRender"

 

 

 

GridLines="None" >

 

 

 

 

<ClientSettings >

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="false" FrozenColumnsCount="2"/>

 

 

 

<Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True" />

 

 

 

<ClientEvents OnGridCreated="GridCreated" />

 

 

 

</ClientSettings>

 

 

 

<ExportSettings>

 

 

 

<Excel Format="Html"/>

 

 

 

</ExportSettings>

 

 

 

<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top"

 

 

 

DataKeyNames="empNoDigit" EditMode="InPlace" PageSize="10"

 

 

 

TableLayout="Fixed">

 

 

 

<CommandItemSettings/>

 

 

 

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">

 

 

 

</RowIndicatorColumn>

 

 

 

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" UpdateText="Update" EditText="Edit" CancelText="Cancel">

 

 

 

<HeaderStyle Width="60px" />

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

 

<telerik:GridBoundColumn DataField="name" HeaderStyle-Width="150px"

 

 

 

HeaderText="Name" UniqueName="colName" ReadOnly="true">

 

 

 

<HeaderStyle Width="200px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

<telerik:GridBoundColumn DataField="empNoDigit" HeaderText="Employee No."

 

 

 

UniqueName="colEmpNoDigit" Visible="false" ReadOnly="true">

 

 

 

<HeaderStyle Width="180px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="empno" HeaderText="Employee ID"

 

 

 

UniqueName="colEmpNo" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="110px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="fn" HeaderText="Function" UniqueName="colFunction" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="150px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="position" HeaderText="Position"

 

 

 

UniqueName="colPosition" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="150px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridDateTimeColumn DataField="joindate" DataFormatString="{0:MM/dd/yyyy}"

 

 

 

HeaderText="Date of Joining" UniqueName="colJoinDate" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="80px" />

 

 

 

</telerik:GridDateTimeColumn>

 

 

 

<telerik:GridBoundColumn DataField="OvExp" HeaderText="Overall Experience"

 

 

 

UniqueName="colOverallExp" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="80px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="TpExp" HeaderText="Technip Experience"

 

 

 

UniqueName="colTechnipExp" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="80px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Score" HeaderText="PA Score"

 

 

 

UniqueName="colScore" ReadOnly="true">

 

 

 

<HeaderStyle Width="50px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="yearless4" HeaderText=""

 

 

 

UniqueName="colYearLess4Sal" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="yearless3" HeaderText=""

 

 

 

UniqueName="colYearLess3Sal" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="yearless2" HeaderText=""

 

 

 

UniqueName="colYearLess2Sal" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="yearless1" HeaderText=""

 

 

 

UniqueName="colYearLess1Sal" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="basic" HeaderText="Current Basic"

 

 

 

UniqueName="colPresentBasic" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn DataField="hra" HeaderText="Current HRA"

 

 

 

UniqueName="colPresentHousing" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblPresentHousing" runat="Server" Text='<%# Eval("hra") %>' />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="living" HeaderText="Current Living"

 

 

 

UniqueName="colPresentLiving" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="transport" HeaderText="Current Transport"

 

 

 

UniqueName="colPresentTransport" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="colCurSal" HeaderText="Current Monthly Salary" ReadOnly="true">

 

 

 

<HeaderStyle Width="60px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblCurSal" runat="Server" Text='<%# Eval("CurrentSalary") %>' />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="PropIncrPercent" HeaderText="HR Prop Incr %"

 

 

 

UniqueName="colPropIncrPercent" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="80px"/>

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="basicincr" HeaderText="HR Prop Basic Incr"

 

 

 

UniqueName="colPropBasicIncrease" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="hraincr" HeaderText="HR Prop HRA Incr"

 

 

 

UniqueName="colPropHousingIncrease" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="livingincr" HeaderText="HR Prop Living Incr"

 

 

 

UniqueName="colPropLivingIncrease" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="transincr" HeaderText="HR Prop Trans Incr"

 

 

 

UniqueName="colPropTransIncrease" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="HR Prop Total Incr"

 

 

 

UniqueName="colPropTotalIncrease" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px"/>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblIncrProp" runat="Server" Text='<%# Eval("IncrProp") %>' />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="propBasic" HeaderText="HR Prop Basic"

 

 

 

UniqueName="colProposedBasic" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="propHRA" HeaderText="HR Prop HRA"

 

 

 

UniqueName="colProposedHousing" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="propLiving" HeaderText="HR Prop Living"

 

 

 

UniqueName="colProposedLiving" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="propTrans" HeaderText="HR Prop Trans"

 

 

 

UniqueName="colProposedTransport" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn DataField="propTotalSal" HeaderText="HR Prop Total"

 

 

 

UniqueName="colProposedTotal" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px"/>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblPropTotalSal" runat="Server" Text='<%# Eval("propTotalSal") %>' />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="bonusLstyre" HeaderText="Bonus Last Year"

 

 

 

UniqueName="colBonusLastYear" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="PropBonusPercent" HeaderText="HR Prop Bonus %"

 

 

 

UniqueName="colPropBonusPercent" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="80px"/>

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn DataField="bonusprop" HeaderText="HR Prop Bonus"

 

 

 

UniqueName="colProposedBonus" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px"/>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblBonusProp" runat="Server" Text='<%# Eval("bonusProp") %>' />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="colIncrPercent" HeaderText="Suggested Incr. (%)">

 

 

 

<HeaderStyle Width="80px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblIncrPercent" runat="Server" Text='<%# Eval("SugIncrPercent") %>' />

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtIncrPercent" runat="Server" Text='<%# Bind("SugIncrPercent") %>' NumberFormat-DecimalDigits="2" NumberFormat-DecimalSeparator="." NumberFormat-KeepNotRoundedValue="True" MaxLength="5" OnTextChanged="radnumtxtIncrPercent_TextChanged" AutoPostBack="true"/>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

<telerik:GridBoundColumn DataField="suggestedBasic" HeaderText="Suggested Basic"

 

 

 

UniqueName="colSugBasic" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="suggestedHra" HeaderText="Suggested HRA"

 

 

 

UniqueName="colSugHousing" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="suggestedLiving" HeaderText="Suggested Living"

 

 

 

UniqueName="colSugLiving" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="suggestedTrans" HeaderText="Suggested Transport"

 

 

 

UniqueName="colSugTransport" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="colNewSalary" HeaderText="Suggested Salary">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblNewSal" runat="Server" Text='<%# Eval("NewSalary") %>' />

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtNewSal" runat="Server" Text='<%# Bind("NewSalary") %>' MaxLength="6" OnTextChanged="radnumtxtNewSal_TextChanged" AutoPostBack="true"/>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="colBonusPercent" HeaderText="Suggested Bonus (%)">

 

 

 

<HeaderStyle Width="80px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblBonusPercent" runat="Server" Text='<%# Eval("SugBonusPercent") %>'/>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtBonusPercent" runat="Server" Text='<%# Bind("SugBonusPercent") %>' MaxLength="5" OnTextChanged="radnumtxtBonusPercent_TextChanged" AutoPostBack="true"/>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="colBonus" HeaderText="Suggested Bonus">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblBonus" runat="Server" Text='<%# Eval("BonusSug") %>' />

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadNumericTextBox ID="radnumtxtBonus" runat="Server" Text='<%# Bind("BonusSug") %>' MaxLength="6" OnTextChanged="radnumtxtBonus_TextChanged" AutoPostBack="true"/>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Incr. Variation %"

 

 

 

UniqueName="colIncrVarPercent" Visible="false" ReadOnly="true">

 

 

 

<HeaderStyle Width="60px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblIncrVarPercent" runat="Server" Text="" />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Bonus Variation %"

 

 

 

UniqueName="colBonusVarPercent" ReadOnly="true" Visible="false">

 

 

 

<HeaderStyle Width="60px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblBonusVarPercent" runat="Server" Text="" />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

<telerik:GridTemplateColumn UniqueName="colPromotion" HeaderText="Promotion">

 

 

 

<HeaderStyle Width="150px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblPromotion" runat="Server" Text='<%# Eval("Promotion") %>' />

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadTextBox ID="radtxtPromotion" runat="Server" Text='<%# Bind("Promotion") %>' MaxLength="250"/>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="colRemarks" HeaderText="Remarks">

 

 

 

<HeaderStyle Width="150px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblRemarks" runat="Server" Text='<%# Eval("Remarks") %>' />

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadTextBox ID="radtxtRemarks" runat="Server" Text='<%# Bind("Remarks") %>' MaxLength="250"/>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="colReviewFlag" HeaderText="Review" Visible="false" ReadOnly="true">

 

 

 

<HeaderStyle Width="60px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblReviewFlag" runat="Server" Text='<%# Eval("reviewflag") %>' />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="colConfirm" HeaderText="Confirm">

 

 

 

<HeaderStyle Width="60px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox runat="server" ID="chkConfirm" ToolTip="Confirm" OnCheckedChanged="chkConfirm_CheckedChanged" AutoPostBack="true"/>

 

 

 

</ItemTemplate>

 

 

 

<HeaderTemplate>

 

 

 

<asp:CheckBox ID="chkAll" ToolTip="Check to Select all" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged" />

 

 

 

</HeaderTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridHyperLinkColumn Text="History" Target="_new" UniqueName="colHistory">

 

 

 

<HeaderStyle Width="100px" />

 

 

 

</telerik:GridHyperLinkColumn>

 

 

 

</Columns>

 

 

 

<EditFormSettings>

 

 

 

<EditColumn FilterControlAltText="Filter EditCommandColumn column">

 

 

 

</EditColumn>

 

 

 

</EditFormSettings>

 

 

 

<PagerStyle AlwaysVisible="True" />

 

 

 

</MasterTableView>

 

 

 

<ClientSettings>

 

 

 

<Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

 

</ClientSettings>

 

 

 

<FilterMenu EnableImageSprites="False">

 

 

 

</FilterMenu>

 

 

 

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Vista">

 

 

 

</HeaderContextMenu>

 

 

 

</telerik:RadGrid>

 

 

 

</td>

 

 

 

<td></td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

</td>

 

 

 

<td>

 

 

 

<table width="100%">

 

 

 

<tr>

 

 

 

<td align="left">

 

 

 

<a href="#" onclick="return ShowPopup();">Configure Table Layout</a>

 

 

 

</td>

 

 

 

<td>

 

 

 

 

</td>

 

 

 

<td align="right">

 

 

 

<telerik:RadButton ID="radbtnExportToExcel" runat="server"

 

 

 

Text="Export To Excel" Skin="Vista" onclick="radbtnExportToExcel_Click">

 

 

 

</telerik:RadButton>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

 

 

</td>

 

 

 

<td></td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadSplitter>

 

</

 

 

div>

 

</

 

 

asp:Content>

 

Pavlina
Telerik team
 answered on 14 Oct 2014
1 answer
61 views
I have a hierachial grid with a master grid (grdAircraftMasterView) and two nested detail views (tblCrew, tblGear).
   Edit Form Settings are set to Template in all three views. 

in tblCrew's edit template is a button with a command name of "SignUp" and command arguments of:  DataBinder Eval(Container, "ItemIndex"
    
When this button is clicked the program jumps to the grids item command and processed through the 'SignUp' portion.
 
However e.Item is GridDataItem and e.Item.IsInEditMode = false. I cannot reference the editform template.FindControl to get the user input. Additionally, the tblCrew row does not move out of edit mode and the edit template form remains open.

item.EditFormItem.IsInEditMode is true


How do I reference the detail views editformtemplate, retreive the user input from a control, and then set the detail rows IsInEditMode to false?

Thanks in advance

David


              

<telerik:RadGrid ID="rgdAircraft" runat="server" AllowSorting="false" GridLines="Both" AutoGenerateColumns="false"
     OnItemCommand="rgdAircraft_ItemCommand" OnNeedDataSource="rgdAircraft_NeedDataSource" Skin="Web20"
     AllowMultiRowSelection="false" OnPreRender="rgdAircraft_PreRender" OnDetailTableDataBind="rgdAircraft_DetailTableDataBind" OnItemDataBound="rgdAircraft_ItemDataBound">
     <MasterTableView EnableHierarchyExpandAll="true" DataKeyNames="strFlightId" runat="server" CommandItemDisplay="Bottom" EditFormSettings-EditFormType="Template" CommandItemSettings-AddNewRecordText="Add new Aircraft" HierarchyLoadMode="Client" EditMode="PopUp" Name="grdAircraftMasterView">
         <DetailTables>
             <telerik:GridTableView AutoGenerateColumns="false" TableLayout="Auto" DataKeyNames="strFlightId" Name="tblCrew" ShowFooter="false" Caption="Aircrew" Width="100%"  CommandItemDisplay="Bottom" EditMode="PopUp" CommandItemSettings-AddNewRecordText="Add new position">
                 <EditFormSettings EditFormType="Template">
                     <EditColumn UniqueName="intMissionCrew" />
                     <FormTemplate>









Already looked at the demo at http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/insert-update-delete-hierarchy/defaultcs.aspx, however this demo does not address controls within the edit template.

Konstantin Dikov
Telerik team
 answered on 14 Oct 2014
1 answer
78 views
Hi,

Ok this might be a strech but need to know if these 2 things can be done.  
I need to be able to select multiple times from the time picker and then drag and drop them to a date that is in a radGrid.  Is this possible, becuase I cannot find anything online yet.  thank you
Konstantin Dikov
Telerik team
 answered on 14 Oct 2014
3 answers
92 views
In the Rich Text editor, with NewLineMode="Br", if you add multiple lines of text with formatting toggled oddly across those lines :


Question mark characters get inserted when the formatting is removed in an order different than added.  Example:

If you enter a single line with formatting as follows:

plain bold italicbold italic

(italicbold meaning both are turned on - so you can see that we did bold on, <text>, italic on <text>, bold off <text>, italic off <text>
This renders fine.

But with MULTIPLE lines such as:

plain
bold
italicbold
italic
plain

What you GET is :

plain
bold
italicbold
?italic
plain

The stored HTML for this ends up looking like:
<P>plain <STRONG>bold <EM>italicbold </EM></STRONG><EM>italic </EM>plain<BR><BR>plain<BR><STRONG>bold<BR><EM>italicbold<BR>?</EM></STRONG><EM>italic<BR></EM>plain</P>

You can see the ? being inserted after the <BR> tag after "italicbold"

Skin settings:
<nt:RichEdit runat="server" SkinId="SimpleText" Width="700px" Height="240px"
    EditModes="Design"  EnableEmbeddedSkins="false" Skin="Ciena" EnableEmbeddedBaseStylesheet="true" ContentFilters="RemoveScripts"
    StripFormattingOptions="Css,MSWordRemoveAll" ExternalDialogsPath="~/EditorDialogs" NewLineMode="Br"
    EnableAjaxSkinRendering="true" ToolsFile="~/App_Data/RadEdit/SimpleTools.xml">
</nt:RichEdit>

Is there some setting I need to change to fix this?  Or is this a bug in the control?
Chuck
Top achievements
Rank 1
 answered on 14 Oct 2014
21 answers
767 views
Hi,
      RadPivotGrid works well to show aggregate values as data...... i have requirement to show the string values in the data fields, to show only the string values as follows

Category

Product

Country

Beverages

Chai

Germany

Chang

Usa

Ipoh Coffee

Uk

Sea food

Rogede sild

Brazil

Spegesild

China

Ikura

Uk

Konbu

Germany



Thanks
Dhamodharan
Milena
Telerik team
 answered on 14 Oct 2014
6 answers
132 views
I have created a custom database provider. I have a library storing all my database calls using linq. When an exception occurs in my class library that involves the scheduler I can not handle the exception or don't know how to handle the exception be cause the user save event bypasses the scheduler events in the code behind and interacts directly with my custom provider class. Itried checking errors before it sends the appointment to my custom provider but the errors are swallowed. Please help....
Boyan Dimitrov
Telerik team
 answered on 14 Oct 2014
2 answers
206 views
Hi,

I have a RadAutoCompleteBox that I add dynamically at run time for editing values.
I can set all settings that I need and add it to the page without problems.

I just can't find out how to set it's text value because the 'text' property is read only.
I want to search the items only when the user modifies the current value.

This is my code so far:

_autoCompleteBox = new RadAutoCompleteBox();
_autoCompleteBox.ID = String.Format("Extra_RdtCmpltBx_{0}_{1}", Data.Name, ID);
_autoCompleteBox.Filter = RadAutoCompleteFilter.StartsWith;
_autoCompleteBox.DropDownPosition = RadAutoCompleteDropDownPosition.Automatic;
_autoCompleteBox.AllowCustomEntry = true;
_autoCompleteBox.InputType = RadAutoCompleteInputType.Text;
_autoCompleteBox.WebServiceSettings.Method = "GetResults";
_autoCompleteBox.WebServiceSettings.Path = "Popup_EditData.aspx";
Mickael
Top achievements
Rank 1
 answered on 14 Oct 2014
5 answers
72 views
This was working in our Events Management system for until recently.
We recently migrated everyone to Outlook 2012.
I updated my VS 2012 project this morning to Q2 2014 .NET 3.5.

Now Appointment.Description is not coming across in the ics appointment in Outlook.

Has anyone else experienced this?
Is there a work around?

Thanks!
Boyan Dimitrov
Telerik team
 answered on 14 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?