Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
135 views
Hi

Can anyone tell me whats missing from my markup that is causing 2 out of my 3 tabs not to appear when i load the page up please. I have spent some time trying to figure this out and I cannot find the reason.

<%

 

@ Page Title="" Language="C#" MasterPageFile="~/AppMaster.master" AutoEventWireup="true"

 

 

 

CodeFile="StoresCards.aspx.cs" Inherits="StoresCards" StylesheetTheme="Default" %>

 

<%

 

@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"

 

 

 

Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

 

<

 

 

asp:Content ContentPlaceHolderID="mainCopy" runat="Server">

 

 

 

 

<telerik:RadScriptManager ID="RadScriptManager2" runat="server" />

 

 

 

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

 

 

 

<script type="text/javascript">

 

 

 

var currentLoadingPanel = null;

 

 

 

var currentUpdatedControl = null;

 

 

 

function RequestStart(sender, args) {

 

currentLoadingPanel = $find(

 

"<%= RadAjaxLoadingPanel1.ClientID%>");

 

 

 

var button = document.getElementById("<%= btSubmitStockCards.ClientID %>");

 

 

 

if (args.get_eventTarget() == "<%= btSubmitStockCards.UniqueID %>") {

 

batchno.readonly =

 

true;

 

sapno.readonly =

 

true;

 

button.disabled =

 

true;

 

}

 

 

//show the loading panel over the updated control

 

currentLoadingPanel.show(currentUpdatedControl);

}

 

 

function ResponseEnd() {

 

 

 

//hide the loading panel and clean up the global variables

 

 

 

if (currentLoadingPanel != null) {

 

currentLoadingPanel.hide(currentUpdatedControl);

}

currentUpdatedControl =

 

null;

 

currentLoadingPanel =

 

null;

 

 

button.disabled =

 

false;

 

}

 

 

 

var keynum, lines = 1;

 

 

 

function limitLines(obj, e) {

 

 

 

// IE

 

 

 

if (window.event) {

 

keynum = e.keyCode;

 

 

// Netscape/Firefox/Opera

 

}

 

else if (e.which) {

 

keynum = e.which;

}

 

 

if (keynum == 13) {

 

 

 

if (lines == obj.rows) {

 

 

 

return false;

 

}

 

else {

 

lines++;

}

}

}

 

 

 

 

</script>

 

 

 

</telerik:RadCodeBlock>

 

 

 

 

<div id="content-mainnav">

 

 

 

<asp:Literal runat="server" ID="litHeader"></asp:Literal>

 

 

 

</div>

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="btGetPalletDetails">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="gvStockCards" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadWinStockCard" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="gvStockCards">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadWinStockCard" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />

 

 

 

</telerik:RadAjaxManager>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" />

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="Default" InitialBehavior="None">

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="RadWinStockCard" runat="server" Behavior="Default" InitialBehavior="None"

 

 

 

Width="860" Height="670" VisibleOnPageLoad="false">

 

 

 

</telerik:RadWindow>

 

 

 

</Windows>

 

 

 

</telerik:RadWindowManager>

 

 

 

<telerik:RadTabStrip runat="server" ID="tabStoresCards" SelectedIndex="1" Skin="Forest" MultiPageID="mpStoresCards">

 

 

 

<Tabs>

 

 

 

<telerik:RadTab PageViewID="pgStock" runat="server" Text="Stock" Font-Bold="true">

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab PageViewID="pgQaurantinedStock" runat="server" Text="Qaurantined Stock" Font-Bold="true">

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab PageViewID="pgAwaitingInspection" runat="server" Text="Awaiting Inspection" Font-Bold="true">

 

 

 

</telerik:RadTab>

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

 

 

 

<telerik:RadMultiPage ID="mpStoresCards" runat="server" SelectedIndex="1">

 

 

 

<telerik:RadPageView ID="pgStock" runat="server" Selected="true" CssClass="FormPanel">

 

 

 

<div>

 

 

 

<h2>

 

 

 

<asp:Label ID="lblStock" runat="server" Style="font-weight: 700; text-align: center">Stock</asp:Label>

 

 

 

</h2>

 

 

 

</div>

 

 

 

<div class="oneColumnSmall">

 

 

 

<asp:Label ID="lblPartNoStock" runat="server" CssClass="FormLabel FormLabelSmall">Part No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtPartNoStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnSmall">

 

 

 

<asp:Label ID="lblQuantityStock" runat="server" CssClass="FormLabel FormLabelSmall">Quantity.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtQtyStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnBig">

 

 

 

<asp:Label ID="lblStockDescription" runat="server" CssClass="FormLabel FormLabelBig">Description</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtStockDescriptionStock" runat="server" TextMode="MultiLine" Width="563px"

 

 

 

Height="50px" MaxLength="500">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblPONoStock" runat="server" CssClass="FormLabel FormLabelSmall">P.O.No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtPONoStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblLineNoStock" runat="server" CssClass="FormLabel FormLabelSmall">Line No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtLineNoStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnSmall">

 

 

 

<asp:Label ID="lblDeliveryNoteNoStock" runat="server" CssClass="FormLabel FormLabelSmall">Delivery Note No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtDeliveryNoteNoStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnSmall">

 

 

 

<asp:Label ID="lblNoPalletsStock" runat="server" CssClass="FormLabel FormLabelSmall">Number of Pallets.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtNoPalletsStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<telerik:RadButton ID="btSubmitStockCards" Text="Print" runat="server" OnClick="btSubmitStockCards_Click">

 

 

 

</telerik:RadButton>

 

 

 

</div>

 

 

 

</telerik:RadPageView>

 

 

 

<telerik:RadPageView ID="pgQaurantinedStock" runat="server" CssClass="FormPanel">

 

 

 

<div>

 

 

 

<h2>

 

 

 

<asp:Label ID="lblQuarantinedStock" runat="server" Style="font-weight: 700; text-align: center">Quarantined Stock</asp:Label>

 

 

 

</h2>

 

 

 

</div>

 

 

 

<div class="oneColumnSmall">

 

 

 

<asp:Label ID="lblPartNoQStock" runat="server" CssClass="FormLabel FormLabelSmall">Part No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtPartNoQStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblQauntityQStock" runat="server" CssClass="FormLabel FormLabelSmall">Quantity.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtQuantityQStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblDateQStock" runat="server" CssClass="FormLabel FormLabelSmall">Date.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtDateQStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnBig">

 

 

 

<asp:Label ID="lblDescriptionQStock" runat="server" CssClass="FormLabel FormLabelBig">Description</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtDescriptionQStock" runat="server" TextMode="MultiLine" Width="563px" Height="50"

 

 

 

MaxLength="500">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnBig">

 

 

 

<asp:Label ID="lblDefectReason" runat="server" CssClass="FormLabel FormLabelBig">Defect/Reason</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtDefectReason" runat="server" TextMode="MultiLine" Width="563px" Height="50"

 

 

 

MaxLength="500">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblPONoQStock" runat="server" CssClass="FormLabel FormLabelSmall">P.O.No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtPONoQStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblLineNoQStock" runat="server" CssClass="FormLabel FormLabelSmall">Line No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtLineNoQStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnSmall">

 

 

 

<asp:Label ID="lblNoPalletsQStock" runat="server" CssClass="FormLabel FormLabelSmall">Number of Pallets.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtlblNoPalletsQStock" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<telerik:RadButton ID="btQStock" Text="Print" runat="server">

 

 

 

</telerik:RadButton>

 

 

 

</div>

 

 

 

</telerik:RadPageView>

 

 

 

<telerik:RadPageView ID="pgAwaitingInspection" runat="server" CssClass="FormPanel">

 

 

 

<div>

 

 

 

<h2>

 

 

 

<asp:Label ID="lblAwaitingInspection" runat="server" Style="font-weight: 700; text-align: center">Awaiting Inspection</asp:Label>

 

 

 

</h2>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblPartNoInspect" runat="server" CssClass="FormLabel FormLabelSmall">Part No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtPartNoInspect" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblQuantityInspect" runat="server" CssClass="FormLabel FormLabelSmall">Quantity.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtQuantityInspect" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnBig">

 

 

 

<asp:Label ID="lblDescriptionInspect" runat="server" CssClass="FormLabel FormLabelBig">Description</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtDescriptionInspect" runat="server" TextMode="MultiLine" Width="563px"

 

 

 

Height="50" MaxLength="500">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnSmall">

 

 

 

<asp:Label ID="lblDateInspect" runat="server" CssClass="FormLabel FormLabelSmall">Date.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtDateInspect" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblPONoInspect" runat="server" CssClass="FormLabel FormLabelSmall">P.O.No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtPONoInspect" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<asp:Label ID="lblLineNoInspect" runat="server" CssClass="FormLabel FormLabelSmall">Line No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtLineNoInspect" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnSmall">

 

 

 

<asp:Label ID="lblDeliveryNoteNoInspect" runat="server" CssClass="FormLabel FormLabelSmall">Delivery Note No.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtlblDeliveryNoteNoInspect" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="oneColumnSmall">

 

 

 

<asp:Label ID="lblNoPalletsInspect" runat="server" CssClass="FormLabel FormLabelSmall">Number of Pallets.</asp:Label>&nbsp;<telerik:RadTextBox

 

 

 

ID="txtNoPalletsInspect" runat="server">

 

 

 

</telerik:RadTextBox>

 

 

 

</div>

 

 

 

<div class="twoColumnSmall">

 

 

 

<telerik:RadButton ID="btAwaitInspect" Text="Print" runat="server">

 

 

 

</telerik:RadButton>

 

 

 

</div>

 

 

 

</telerik:RadPageView>

 

 

 

</telerik:RadMultiPage>

 

</

 

 

asp:Content>

 



Many thanks

Rob
Nencho
Telerik team
 answered on 21 Feb 2013
1 answer
68 views
I have a Radcombox with MarkFirstMatch and working fine until i enabled 'Checkbox' property also.
Please help me to sort out this issue since i need both features simultaneously

My code snippet is given below:
  <telerik:RadComboBox runat="server" ID="cboDrug" Width="300px" EmptyMessage="--select--" Height="200px"
                                                        MarkFirstMatch="true" CssClass="teldrpbox" EnableLoadOnDemand="True" ShowMoreResultsBox="true" ExpandDirection="Up" CheckBoxes="true"  AllowCustomText="true"
                                                        DropDownWidth="350px"> </telerik:RadComboBox>
Princy
Top achievements
Rank 2
 answered on 21 Feb 2013
5 answers
261 views
Hello -

I'm having some trouble understanding when I should use a RadDropDownList versus a RadComboBox.  At the moment it appears to be a trimmed version of RadComboBox with less available features.  This would be fine if does everything that's needed and does it faster with less overhead.  My own performance testing shows it doesn't have much less overhead, atleast in terms of viewstate size.   Viewstate size would be my biggest complaint of the ComboBox.

For default settings on each:
RadComboBox had the largest viewstate, RadDropDownList was 10% less, DropDownList was 50% less.
RadDropDownList had the largest page size, RadComboBox was 15% less, DropDownList was 50% less.

The page size difference was due to rddlItemText style lacking in RadComboBox.  With gzip compression page size is mostly a non-issue, but I'm quite concerned that it only has a 10% improvement in lowering viewstate footprint.

Is this going to be improved further? Or is there some other purpose for this control I'm just not seeing?

Thanks.
Bozhidar
Telerik team
 answered on 21 Feb 2013
1 answer
116 views
Hi,

I have an issue with the RadComboBox post back only on the Default page.

Autopostback is enabled and my code behind works fine if my url contains the file name & extension (MySite.com/Default.aspx or /directory/Default.aspx) but not if I link only the directory (MySite.com or /directory/).

I'm using Visual Studio 2012 and .net 4.5 (VB)

My code is icluded in a Master Page
--------------------
<telerik:RadComboBox ID="RcbLangue" OnSelectedIndexChanged="RcbLangue_SelectedIndexChanged" AutoPostBack="True" runat="server" DataSourceID="SdsLangues" DataTextField="Name" DataValueField="LangId"></telerik:RadComboBox>
--------------------
Protected Sub RcbLangue_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs)
        Session("LangId") = RcbLangue.SelectedValue
        Session("LangName") = RcbLangue.SelectedItem.Text 
End Sub
--------------------

Is it a .net known issue, does anyone else has this problem ?

Thanks for your support,


Herve
Dimitar Terziev
Telerik team
 answered on 21 Feb 2013
4 answers
444 views
Hi,

I have a grid with some columns being updated by a stored procedure from the code behind when a user clicks a button. This button executes an Ajaxrequest on the client to fire the stored procedure handled in RadAjaxManager1.AjaxRequest code behind, and the database is updated as expected. The problem is now with the displayed grid because it's not being refreshed with the latest changes...

Javascript code:
function buttonResetClick(sender, args) {
if .... some conditions... {
radconfirm("Changing the currency will reset all product prices. Continue?", aspButtonCallbackFn, 380, 110, null, "Confirm price reset"); return false;
}
function aspButtonCallbackFn(arg) { if (arg) { refreshGrid(orderCreated.value, actualCurrency.get_selectedItem().get_value()); } }
}
 
function refreshGrid(arg, currency) {
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("ResetAndRebind," + arg + "," + currency);
// Try to force a Postback, grid is not updated
//           __doPostBack("<%= ProcessBtn.UniqueID%>", "");
        }

ASP.NET
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls><telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /></UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
     
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
 
<telerik:RadButton ID="ProcessBtn" OnClientClicked="buttonResetClick" AutoPostBack="false" runat="server" Text="Process Currency" CausesValidation="true" ValidationGroup="MainCurdata" />
 
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" GridLines="None" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="False" ondeletecommand="RadGrid1_DeleteCommand" AllowMultiRowEdit="True" Visible="false">
        <ClientSettings ClientEvents-OnRowCreated="countRows"><ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" OnCommand="GridCommand"></ClientEvents></ClientSettings>
        <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false" EditMode="InPlace" DataKeyNames="Id,OrderId">
<Columns> LIST </Columns>
</MasterTableView>
            <FilterMenu EnableImageSprites="False" />
</telerik:RadGrid>

Code Behind:
The rebind command doesn't update the view...
Protected Sub RadAjaxManager1_AjaxRequest(sender As Object, e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
        Dim argument As String = e.Argument
        Dim stringArray As [String]() = argument.Split(",".ToCharArray())
        Dim orderId As Integer = stringArray(1)
        If stringArray(0) = "ResetAndRebind" Then
 
            Using Context As New StocksEntities()
                Context.currencyResetFields(orderId)
STORED PROCEDURE UPDATE
                Context.SaveChanges()
            End Using
            RadGrid1.Rebind()
        End If
    End Sub

I also tried another approach within the JS, forcing a postback (__doPostBack("<%= ProcessBtn.UniqueID%>", "");) after the ajaxrequest, but unfortunately the postback is conducted before ajax ends the request...

I checked this similar threat http://www.telerik.com/community/forums/aspnet-ajax/grid/rebind-a-grid-with-an-ajaxrequest.aspx, experiencing the same problem but the answer does not help me. All I need is an ability to rebind the bind after the ajaxrequest.

Any solution?

Thanks!
Marc
Top achievements
Rank 1
 answered on 21 Feb 2013
4 answers
450 views
Hello ,
I am using Telerik Rad Popup window..While clicking the button insdide popup I can pass values to main page(parent)
  String value = "Subin","Sebastian"
                { ClientScript.RegisterStartupScript(this.GetType(), "closewin", "CloseWin('" + value + "');", true); }
Is there any option to pass values from parent to child
I mean while clicking any button inside Main page(parent ),i wanna pass values to popup window...
Shinu
Top achievements
Rank 2
 answered on 21 Feb 2013
3 answers
94 views
Good morning,
I have a problem in the association of an event to a dynamically added control on the grid.

The control is of type ImageButton.
I insert this control in a column of type GridTemplateColumn.

I used the method ItemCreated and / or ItemDataBound but neither of them solves my problem.

This is the code (in ItemCreated and / or ItemDataBound)
ImageButton btn = new ImageButton();
btn.ToolTip = string.Format("{0} - {1}", split[4], split[1]);
btn.ID = string.Concat(split[4], "_", split[0]);
btn.ImageUrl = string.Format("~/Images/16x16/Phase/{0}.png", split[2]);
btn.Click += new ImageClickEventHandler(ManageItem);                            
((GridDataItem)e.Item).Cells[codiceTiplogia + 4].Controls.Add(btn);

The function is this :
protected void ManageItem(object sender, ImageClickEventArgs e)
{
 .....
}

This is the RadGrid..
<telerik:RadGrid ID="gvPartite" runat="server" Skin="Office2010Blue" AutoGenerateColumns="false"
                    Visible="false" OnItemCreated="gvPartite_ItemCreated" OnItemDataBound="gvPartite_ItemDataBound">
                    <MasterTableView>
                        <Columns>
                           <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                                HeaderStyle-Font-Bold="true">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnStatus" runat="server" OnClick="ManageItem" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="INFO" HeaderStyle-Font-Bold="true">
                                <ItemTemplate> (personal code)
                                    </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="ARB" UniqueName="1">
                                <ItemTemplate>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            </Columns>
                    </MasterTableView>
           </telerik:RadGrid>


When I click on ImageButton i don't enter in the event...
In this Grid there is another Imagebutton fixed...(you can see in RadGrid) btnStatus... This button is ok..

I don't know Why...
Idea ?

Thanks,
Marco
Shinu
Top achievements
Rank 2
 answered on 21 Feb 2013
2 answers
93 views
Hi,
Can you please help me
How to find out Hierarchical grid Expanded Row Co-ordinates(X&Y) in client side or server side.
I Need to display Model popup on Expanded click with out using RowClick Client-event.

Thanks,

Madhavi
Top achievements
Rank 1
 answered on 21 Feb 2013
7 answers
146 views
I am trying to use the Export to Excel functionality on the RadGrid and I can not get it to work.  My Telerik controls are about 1 year old...I am not able to upgrade currently because our two legal departments are arguing over Eula crap.  Can anybody help me out?  Basically, when I hit the Export to Excel button, the grid refreshes(ajax), but nothing happens.  I have included my HTML below.  The version of my Telerik Controls are:  2012.1.411.40

ASP.NET 4.0, Windows 7

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" OnGridExporting="RadGrid1_GridExporting" ShowGroupPanel="true" OnNeedDataSource="RadGrid1_NeedDataSource" ItemStyle-Font-Size="Small" HeaderStyle-HorizontalAlign="Center" CellSpacing="0" PageSize="500" Height="500px" Width="1250" GridLines="None" Skin="WebBlue" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"><br>        <ClientSettings AllowDragToGroup="True"><br>            <Scrolling AllowScroll="True" UseStaticHeaders="True" /><br><br>        </ClientSettings><br>        <ExportSettings ExportOnlyData="true" OpenInNewWindow="true"><br>        </ExportSettings><br>        <GroupingSettings ShowUnGroupButton="true" CaseSensitive="false"></GroupingSettings><br>        <MasterTableView Font-Size="Small" CommandItemDisplay="Top"><br>            <br>           <CommandItemSettings ShowExportToExcelButton="true"></CommandItemSettings><br>           <GroupByExpressions><br> <br>              <telerik:GridGroupByExpression><br>                <SelectFields><br>                  <telerik:GridGroupByField FieldName="InvoiceNumber" HeaderText="Invoice Number" /><br>                </SelectFields><br>                <GroupByFields><br>                  <telerik:GridGroupByField FieldName="InvoiceNumber" SortOrder="Ascending" /><br>                </GroupByFields><br>              </telerik:GridGroupByExpression><br> <br>            </GroupByExpressions><br>            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings><br>            <ItemStyle Font-Size="X-Small" /><br>            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"><br>                <HeaderStyle Width="20px"></HeaderStyle><br>            </RowIndicatorColumn><br><br>            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"><br>                <HeaderStyle Width="20px"></HeaderStyle><br>            </ExpandCollapseColumn><br><br>            <Columns> <br>                <telerik:GridBoundColumn FilterControlAltText="Filter column2 column" ItemStyle-Width="90" ItemStyle-Font-Size="Small" HeaderStyle-Width="90" UniqueName="column2" FilterControlWidth="50" DataField="InvoiceNumber" ItemStyle-HorizontalAlign="Center" HeaderText="Invoice #"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column column" ItemStyle-Width="60" Visible="false" ItemStyle-Font-Size="Small" HeaderStyle-Width="60" UniqueName="column" FilterControlWidth="40" DataField="RecordType" HeaderText="Rec Type"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column1 column" ItemStyle-Width="75" ItemStyle-Font-Size="Small" HeaderStyle-Width="75" UniqueName="column1" AllowFiltering="false" DataField="PostDate" HeaderText="Post Date"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column3 column" ItemStyle-Width="40" ItemStyle-Font-Size="Small" HeaderStyle-Width="40" UniqueName="column3" ItemStyle-HorizontalAlign="Center" AllowFiltering="false" DataField="Sign" HeaderText="Sign"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column4 column" ItemStyle-Width="85" ItemStyle-Font-Size="Small" HeaderStyle-Width="85" UniqueName="column4" FilterControlWidth="40" ItemStyle-HorizontalAlign="Center" DataFormatString="" DataField="Amount" HeaderText="Amount"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column5 column" ItemStyle-Width="40" ItemStyle-Font-Size="Small" HeaderStyle-Width="40" AllowFiltering="false" UniqueName="column5" ItemStyle-HorizontalAlign="Center" DataField="Currency" HeaderText="Cur"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column6 column" ItemStyle-Width="40" ItemStyle-Font-Size="Small" HeaderStyle-Width="40" AllowFiltering="false" UniqueName="column6" DataField="Geo" HeaderText="Geo"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column7 column" ItemStyle-Width="50" ItemStyle-Font-Size="Small" HeaderStyle-Width="50" AllowFiltering="false" UniqueName="column7" DataField="UOM" ItemStyle-HorizontalAlign="Center" HeaderText="UOM"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column8 column" ItemStyle-Width="80" ItemStyle-Font-Size="Small" HeaderStyle-Width="80" AllowFiltering="false" UniqueName="column8" DataField="GLAcct" ItemStyle-HorizontalAlign="Center" HeaderText="GL Acct"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column9 column" ItemStyle-Width="55" ItemStyle-Font-Size="Small" HeaderStyle-Width="55" AllowFiltering="false" UniqueName="column9" DataField="APRef" HeaderText="AP Ref"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column10 column" ItemStyle-Width="70" ItemStyle-Font-Size="Small" HeaderStyle-Width="70" ItemStyle-HorizontalAlign="Center" UniqueName="column10" FilterControlWidth="25" DataField="CustRef" HeaderText="Cust Ref"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column11 column" ItemStyle-Width="70" ItemStyle-Font-Size="Small" HeaderStyle-Width="70" ItemStyle-HorizontalAlign="Center" UniqueName="column11" FilterControlWidth="30" DataField="SrcCo" HeaderText="Src Co"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column12 column" ItemStyle-Width="70" ItemStyle-Font-Size="Small" HeaderStyle-Width="70" ItemStyle-HorizontalAlign="Center" UniqueName="column12" FilterControlWidth="30" DataField="ChgCo" HeaderText="Chg Co"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column13 column" ItemStyle-Width="70" ItemStyle-Font-Size="Small" HeaderStyle-Width="70" ItemStyle-HorizontalAlign="Center" UniqueName="column13" FilterControlWidth="25" DataField="BusArea" HeaderText="Bus Area"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column14 column" ItemStyle-Width="90" ItemStyle-Font-Size="Small" HeaderStyle-Width="90" UniqueName="column14" FilterControlWidth="50" DataField="CostCenter" ItemStyle-HorizontalAlign="Center" HeaderText="Cost Ctr"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column15 column" ItemStyle-Width="85" ItemStyle-Font-Size="Small" HeaderStyle-Width="85" UniqueName="column15" FilterControlWidth="45" DataField="ProfitCenter" HeaderText="Profit Ctr"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column16 column" ItemStyle-Width="85" ItemStyle-Font-Size="Small" HeaderStyle-Width="85" UniqueName="column16" FilterControlWidth="45" DataField="Order" HeaderText="Order"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column17 column" ItemStyle-Width="115" ItemStyle-Font-Size="Small" HeaderStyle-Width="115" UniqueName="column17" FilterControlWidth="70" DataField="WBSElement" HeaderText="WBS Element"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column18 column" ItemStyle-Width="85" ItemStyle-Font-Size="Small" HeaderStyle-Width="85" UniqueName="column18" FilterControlWidth="45" DataField="MPMIssue" HeaderText="MPM Issue"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn FilterControlAltText="Filter column19 column" ItemStyle-Width="70" ItemStyle-Font-Size="Small" HeaderStyle-Width="70" UniqueName="column19" Visible="false" DataField="TrdPartner" HeaderText="Trd Partner"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn DataField="TPBusinessArea" FilterControlAltText="Filter column20 column" ItemStyle-Font-Size="Small" ItemStyle-Width="70" HeaderStyle-Width="70" Visible="false" HeaderText="TP Busn Area" UniqueName="column20"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn DataField="DistChannel" FilterControlAltText="Filter column21 column" ItemStyle-Font-Size="Small" ItemStyle-Width="90" HeaderStyle-Width="90" FilterControlWidth="50" HeaderText="Dist Channel" UniqueName="column21"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn DataField="Material" FilterControlAltText="Filter column22 column" ItemStyle-Font-Size="Small" ItemStyle-Width="85" HeaderStyle-Width="85" FilterControlWidth="45" HeaderText="Material" UniqueName="column22"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn DataField="Description" FilterControlAltText="Filter column23 column" ItemStyle-Font-Size="Small" ItemStyle-Width="160" AllowFiltering="true" FilterControlWidth="120" HeaderStyle-Width="160" HeaderText="Description" UniqueName="column23"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn DataField="Quantity" FilterControlAltText="Filter column24 column" ItemStyle-Font-Size="Small" ItemStyle-Width="65" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="65" AllowFiltering="false" HeaderText="Quantity" UniqueName="column24"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn DataField="TaxCode" FilterControlAltText="Filter column25 column" ItemStyle-Font-Size="Small" ItemStyle-Width="55" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="55" AllowFiltering="false" HeaderText="Tax Code" UniqueName="column25"><br>                </telerik:GridBoundColumn><br>                <telerik:GridBoundColumn DataField="Attrib1" FilterControlAltText="Filter column26 column" ItemStyle-Font-Size="Small" ItemStyle-Width="50" HeaderStyle-Width="50" HeaderText="Attrib 1" Visible="false" UniqueName="column26"><br>                </telerik:GridBoundColumn><br>            </Columns><br><br>            <EditFormSettings><br>                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn><br>            </EditFormSettings><br>        </MasterTableView><br><br>        <FilterMenu EnableImageSprites="False"></FilterMenu><br>    </telerik:RadGrid>

protected void RadGrid1_GridExporting(object sender, Telerik.Web.UI.GridExportingArgs e)
{
       RadGrid1.ExportSettings.OpenInNewWindow = true;
       RadGrid1.MasterTableView.ExportToExcel();
}
Shinu
Top achievements
Rank 2
 answered on 21 Feb 2013
6 answers
870 views
I have an image gallery setup using a Rotator control.  I'd like to add/remove a "seleccted" CSS class to highlight the currently selected image in my strip of thumbnails.

The documentation shows that I can add an OnClientItemClicked JavaScript event which I should be able to use to handle this.  I need to get the currently clicked item which should be something like args.get_item().  Is there a list somewhere of properties and methods of the args and sender items?  The documentation seems to only show the event names.

Any help would be appreciated.

Thanks
Princy
Top achievements
Rank 2
 answered on 21 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?