Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
359 views
Hi,

I am trying to access RadTabstrip control in SharePoint MasterPage to set the Tab through client-side javascript code but getting 'Object doesn't support this property or method' error. Below is what I am trying:

<telerik:RadTabStrip runat="server" id="RadTabStrip1"  Width="433px" SelectedIndex="0" ClickSelectedTab="True" OnClientTabSelected="onClientTabSelected"
    OnClientLoad="onClientTabLoad">



function loadTabIndex(tabstrip) {  
    //If tabstrip reference isn't null
    if (tabstrip != null) {  
            alert('test');
           var tab = tabstrip.findTabByText("Reports"); 
      
           //Get tab object
            if (tab != null) {               
                tab.select(); //Select tab           
            }           
    }    
   
}


accessing loadTabIndex(tabstrip) from onload event

<body class="body" topmargin="0" onload="javascript:_spBodyOnLoadWrapper(); loadTabIndex(ctl00_RadTabStrip1);">

However, I am getting error on tabstrip.findTabByText("Reports")

How can I achieve what I am trying to do? Please help.

Regards,

IW
Marin Bratanov
Telerik team
 answered on 15 Oct 2014
8 answers
375 views
Hello all.

Brand new to Telerik and developing in general so be gentle!

I'm using EF to display product information within a gridview. I have managed to hook up the entity data source and radgrid so that when a user inserts a product ID, the associated information is displayed upon post back.

Everything works fine i.e. sorting, paging, editing, updating.

The only problem I have is with filtering where upon I attempt to filter and receive the subject title...nasty.

If I change AutoGenerateWhere clause to false, I then can't even get the radgrid to bind.

Any chance someone could point me in the right direction. My code is as follows:

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" 
  
AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
  
DataSourceID="edsTelerikWeights" GridLines="None" 
  
AutoGenerateEditColumn="True" AllowAutomaticInserts="True" 
  
AllowAutomaticUpdates="True" ondatabound="RadGrid1_DataBound">
  
<MasterTableView DataKeyNames="PriKey" DataSourceID="edsTelerikWeights">
  
<RowIndicatorColumn>
  
<HeaderStyle Width="20px"></HeaderStyle>
  
</RowIndicatorColumn>
  
<ExpandCollapseColumn>
  
<HeaderStyle Width="20px"></HeaderStyle>
  
</ExpandCollapseColumn>
  
<Columns>
  
<telerik:GridBoundColumn DataField="Productpriority" DataType="System.Int32" 
  
HeaderText="Productpriority" SortExpression="Productpriority" 
  
UniqueName="Productpriority" ReadOnly="true">
  
</telerik:GridBoundColumn>
  
<telerik:GridBoundColumn DataField="MemberId" HeaderText="MemberId" 
  
SortExpression="MemberId" UniqueName="MemberId" ReadOnly="true">
  
</telerik:GridBoundColumn>
  
<telerik:GridBoundColumn DataField="MemberName" HeaderText="MemberName" 
  
SortExpression="MemberName" UniqueName="MemberName" ReadOnly="true">
  
</telerik:GridBoundColumn>
  
<telerik:GridCheckBoxColumn DataField="Retail" DataType="System.Boolean" 
  
HeaderText="Retail" SortExpression="Retail" UniqueName="Retail" ReadOnly="true">
  
</telerik:GridCheckBoxColumn>
  
  
  
<asp:EntityDataSource ID="edsTelerikWeights" runat="server" 
  
ConnectionString="name=PDC_VDSOREntities" 
  
DefaultContainerName="PDC_VDSOREntities" EnableFlattening="False" EntitySetName="tblWeights" 
  
AutoGenerateWhereClause="True">
  
<WhereParameters>
  
<asp:SessionParameter Name="MemberId" 
  
SessionField="VDS_MemberID" />
  
<asp:SessionParameter Name="LocationId" 
  
SessionField="VDS_LocationID" />
  
<asp:ControlParameter ControlID="tbxAutoCompleteMulti" DefaultValue="Null" 
  
Name="UnitId" PropertyName="Text" />
  
</WhereParameters>
  
</asp:EntityDataSource>

Any help gratefully received.

 

 

 



 

Dhamodharan
Top achievements
Rank 1
 answered on 15 Oct 2014
1 answer
177 views
Hi,

I'm looking into other posts and http://demos.telerik.com/aspnet-ajax/grid/examples/performance/virtualization/defaultvb.aspx?#qsf-demo-source page to understand howto achieve facebook like infinite scroll function.

Whis demo works fine but it has its own scrollbar. What I need is "scroll with browser scroll bar", not "scroll with grid's scrollbar".

In this demo (and in other similar posts) virual scrolling works inside grid's height. if you set grid's height to 500px then it works in that dimensions.

But facebook like scrolls  or some other e-commerce sites like

http://demo.amasty.com/ajax-scroll/electronics/computers.html?d2si=84677
http://demo.usestrategery.com/infinite-scroll/electronics/all-products.html#/page/1

increases page's total height when you scroll down.

any suggestions ?
Konstantin Dikov
Telerik team
 answered on 15 Oct 2014
1 answer
46 views
Do you have code to change skins like you did in this screen shot?
Aneliya Petkova
Telerik team
 answered on 15 Oct 2014
5 answers
161 views
Hi,

I have three radpanes inside the radsplitter each seperating with splitbar.

<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="200" Width="700" >
          <telerik:RadPane ID="RadPane1" runat="server" Width="100">
               Left Pane
          </telerik:RadPane>
          <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward">
          </telerik:RadSplitBar>
          <telerik:RadPane ID="RadPane2" runat="server" Width="200">
               Middle Pane
          </telerik:RadPane>
          <telerik:RadSplitBar ID="RadSplitbar2" runat="server" >
          </telerik:RadSplitBar>
          <telerik:RadPane ID="RadPane3" runat="server">
               End Pane
          </telerik:RadPane>
     </telerik:RadSplitter>

When i click on the arrow between left and middle pane,the left pane is collapsed and the size of the other panes are increased.
My requirement is not to increase the sizes of the other panes while collapsing left pane.

Also,is there any way to change the image(arrow image) between left and middle pane  to some other image

I expect an answer ASAP.
Thanks!!
Vessy
Telerik team
 answered on 15 Oct 2014
1 answer
77 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
472 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
281 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
59 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
47 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?