Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
211 views
I have been through your sampels http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx  and I have no issues getting these to work.  But I have been unsuccesful in getting the values of the confirm in my serverside code behind.  Basically im trying to fire one server side function if yes/true and  a different server side sub if no/false.  In your samples you are firing a javascript to display the result, thats fine but unfunctional for my application. 
Jarrett
Top achievements
Rank 2
 answered on 28 Feb 2012
4 answers
238 views
Hello,

I have several RadComboBoxes that interact with each other using client-side methods and requesting the items on demand, like here: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx
This works well, but when I need the SelectedValue it's always empty.

Can anyone help me please? (I don't know what I'm doing wrong...)

Here I put the code used:

RadComboBoxes
<telerik:RadComboBox ID="cboProvinciaT" runat="server" Width="200px" OnClientSelectedIndexChanging="LoadLocalidades" OnItemsRequested="cboProvinciaT_ItemsRequested" MarkFirstMatch="true" Skin="Sunset"></telerik:RadComboBox>
<telerik:RadComboBox ID="cboLocalidadT" runat="server" Width="200px" OnClientSelectedIndexChanging="LoadTiposVia" OnClientItemsRequested="ItemsLoaded" OnItemsRequested="cboLocalidadT_ItemsRequested" MarkFirstMatch="true" Skin="Sunset"></telerik:RadComboBox>
<telerik:RadComboBox ID="cboTipoViaT" runat="server" Width="80px" OnClientSelectedIndexChanged="LoadNombresVia" OnClientItemsRequested="ItemsLoaded" OnItemsRequested="cboTipoViaT_ItemsRequested" MarkFirstMatch="true" Skin="Sunset"></telerik:RadComboBox>
<telerik:RadComboBox ID="cboNombreVia" runat="server" OnClientItemsRequested="ItemsLoaded" OnItemsRequested="cboNombreVia_ItemsRequested" Filter="Contains" Skin="Sunset"></telerik:RadComboBox>

Scripts
<script type="text/javascript">
    var LocalidadesCombo;
    var TiposViaCombo;
    var NombresVia;
 
    function pageLoad() {
        LocalidadesCombo = $find("<%= cboLocalidadT.ClientID %>");
        TiposViaCombo = $find("<%= cboTipoViaT.ClientID %>");
        NombresVia = $find("<%= cboNombreVia.ClientID %>");
    }
 
    function LoadLocalidades(sender, eventArgs) {
        var item = eventArgs.get_item();
        LocalidadesCombo.set_text("Cargando...");
        TiposViaCombo.clearSelection();
 
        if (item.get_index() > 0) {
            LocalidadesCombo.requestItems(item.get_value(), false);
            LocalidadesCombo.clearSelection();
        }
        else {
            LocalidadesCombo.set_text(" ");
            LocalidadesCombo.clearItems();
 
            TiposViaCombo.set_text(" ");
            TiposViaCombo.clearItems();
        }
    }
 
    function LoadTiposVia(sender, eventArgs) {
        var item = eventArgs.get_item();
 
        TiposViaCombo.set_text("Cargando...");
        TiposViaCombo.requestItems(item.get_value(), false);
        TiposViaCombo.clearSelection();
 
        if (item.get_index() > 0) {
            TiposViaCombo.requestItems(item.get_value(), false);
            TiposViaCombo.clearSelection();
        }
        else {
            TiposViaCombo.set_text(" ");
            TiposViaCombo.clearItems();
            NombresVia.set_text(" ");
            NombresVia.clearItems();
        }
 
    }
 
    function LoadNombresVia(sender, eventArgs) {
        var item = eventArgs.get_item();
        NombresVia.set_text("Cargando...");
        NombresVia.requestItems(item.get_value(), false);
        NombresVia.clearSelection();
    }
 
    function ItemsLoaded(sender, eventArgs) {
       sender.showDropDown();
    }
</script>

Page_Load (server-side)
if (!Page.IsPostBack)
{
    CargarProvincias(); //This method fill cboProvinciaT
}
else if (!Page.IsCallback)
{
    LoadLocalidades(cboProvinciaT.SelectedValue);
    LoadTiposVia(cboLocalidadT.SelectedValue);
    LoadNombresVia(cboTipoViaT.SelectedValue);
}

Rest of functions
#region Dirección
 
protected void LoadLocalidades(string pIdProvincia)
{
 
    try
    {
        AD.Motor mMotorAD = new AD.Motor();
 
        DataTable mDT = new DataTable();
 
        mDT = mMotorAD.ExecuteDataTable("Select 0 as ID, 'Localidad...' as Nombre union SELECT ID, Nombre FROM tlLocalidadDN where idProvincia=" + pIdProvincia + " ORDER BY Nombre ASC");
 
        DataSet mDS = new DataSet();
        mDS.Tables.Add(mDT);
 
        cboLocalidadT.DataTextField = "Nombre";
        cboLocalidadT.DataValueField = "ID";
        cboLocalidadT.DataSource = mDS.Tables[0];
        cboLocalidadT.DataBind();
         
 
 
    }
    catch (Exception ex)
    {
 
        throw ex;
    }
     
}
protected void LoadTiposVia(string pIdLocalidad)
{
    try
    {
        AD.Motor mMotorAD = new AD.Motor();
 
        DataTable mDT = new DataTable();
 
        mDT = mMotorAD.ExecuteDataTable("Select 0 as ID, 'Vía..' as Nombre union SELECT ID, Nombre FROM tlTipoViaDN ORDER BY Nombre ASC");
 
        DataSet mDS = new DataSet();
        mDS.Tables.Add(mDT);
 
        cboTipoViaT.DataTextField = "Nombre";
        cboTipoViaT.DataValueField = "ID";
        cboTipoViaT.DataSource = mDS.Tables[0];
        cboTipoViaT.DataBind();
 
 
    }
    catch (Exception ex)
    {
 
        throw ex;
    }
}
protected void LoadNombresVia(string pIdTipoVia)
{
    try
    {
 
        //HERE ALWAYS GET empty ("")
           string
mIdLocalidad = cboLocalidadT.SelectedValue;
        AD.Motor mMotorAD = new AD.Motor();
 
        DataTable mDT = new DataTable();
 
        mDT = mMotorAD.ExecuteDataTable("Select 0 as ID, '  Nombre de la Vía..' as Nombre union SELECT ID, Nombre FROM tlViaDN where idLocalidad=" + mIdLocalidad + " and idTipovia=" + pIdTipoVia + " order by Nombre");
 
        DataSet mDS = new DataSet();
        mDS.Tables.Add(mDT);
 
        cboNombreVia.DataTextField = "Nombre";
        cboNombreVia.DataValueField = "ID";
        cboNombreVia.DataSource = mDS.Tables[0];
        cboNombreVia.DataBind();
 
    }
    catch (Exception ex)
    {
         
        throw ex;
    }
}
protected void LoadNombresVia(string pIdTipoVia, string pIdLocalidad)
{
    try
    {
 
        AD.Motor mMotorAD = new AD.Motor();
 
        DataTable mDT = new DataTable();
 
        mDT = mMotorAD.ExecuteDataTable("Select 0 as ID, '  Nombre de la Vía..' as Nombre union SELECT ID, Nombre FROM tlViaDN where idLocalidad=" + pIdLocalidad + " and idTipovia=" + pIdTipoVia + " order by Nombre");
 
        DataSet mDS = new DataSet();
        mDS.Tables.Add(mDT);
 
        cboNombreVia.DataTextField = "Nombre";
        cboNombreVia.DataValueField = "ID";
        cboNombreVia.DataSource = mDS.Tables[0];
        cboNombreVia.DataBind();
 
    }
    catch (Exception ex)
    {
 
        throw ex;
    }
}
protected void cboNombreVia_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
{
    LoadNombresVia(e.Text);
}
protected void cboProvinciaT_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
{
    CargarProvincias();
}
protected void cboLocalidadT_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
{
    LoadLocalidades(e.Text);
 
}
protected void cboTipoViaT_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
{
    LoadTiposVia(e.Text);
}
 
#endregion

When I try to get cboLocalidadT.SelectedValue in function LoadNombresVia
protected void LoadNombresVia(string pIdTipoVia)
        {
            try
            {
                //********************************************
                //**** HERE ALWAYS GET EMPTY VALUE --> "" ****
                //********************************************
 
                string mIdLocalidad = cboLocalidadT.Text;
 
                //********************************************
 
                AD.Motor mMotorAD = new AD.Motor();
 
                DataTable mDT = new DataTable();
 
                mDT = mMotorAD.ExecuteDataTable("Select 0 as ID, '  Nombre de la Vía..' as Nombre union SELECT ID, Nombre FROM tlViaDN where idLocalidad=" + mIdLocalidad + " and idTipovia=" + pIdTipoVia + " order by Nombre");
 
                DataSet mDS = new DataSet();
                mDS.Tables.Add(mDT);
 
                cboNombreVia.DataTextField = "Nombre";
                cboNombreVia.DataValueField = "ID";
                cboNombreVia.DataSource = mDS.Tables[0];
                cboNombreVia.DataBind();
 
            }
            catch (Exception ex)
            {
                 
                throw ex;
            }
        }

Thank you very much for your help!!
jeslopmay
Top achievements
Rank 1
 answered on 28 Feb 2012
2 answers
381 views
I have this RadTextBox:
<asp:panel id="div_projectsAssigned" runat="server" class="infoBox-projectsAssigned">
        <telerik:RadTextBox ID="txtProjectsAssigned" runat="server" Text="0"
                   BorderStyle="None" ReadOnly="True" Width="42" >
                    <ClientEvents OnValueChanged="onValueChanged()" />
                    <ReadOnlyStyle HorizontalAlign="Center" BackColor="Transparent" ForeColor="White"
                            Font-Bold="True" Font-Names="Segoe UI" Font-Size="12pt" Width="30px">
                     </ReadOnlyStyle>
       </telerik:RadTextBox>
</asp:panel>

Note the parenthesis on

ClientEvents OnValueChanged="onValueChanged()" />


If I remove the parenthesis from the function call, the function is not executed. If I keep the parenthesis, the function is executed (see below), but the parameters are not passed.
<script type="text/javascript">
 
        function onValueChanged(sender, args) {
 
            if (args.get_oldvalue != args.get_newvalue) {
 
                thisDiv = $get("<%= div_projectsAssigned.ClientID %>");
                esteDiv = "#" + thisDiv;
                animateDiv(thisDiv);
            }
        }
 
        function animateDiv(divToAnimate) {
 
            for (i = 1; i <= 3; i++) {
 
                $(divToAnimate).animate(
                    { "opacity": "0.15" },
                    "slow");
 
                $(divToAnimate).animate(
                    { "opacity": "1.00" },
                    "slow");
            }
        }
 
    </script>

I need the parameters to check if the value in the RadTextBox has changed, and if so, make an amimation.
Any idea about why the parameters are not being passed?
Joaquín
Top achievements
Rank 2
 answered on 28 Feb 2012
5 answers
226 views
With several detail tables at the same level, is there a way to bind each table to a source programmatically? Each one will be calling the same stored procedure, but with a different parameter value.

I'd love to do something like this:
DetailTable1.DataSource = spFillMe 1
DetailTable2.DataSource = spFillMe 2
DetailTable3.DataSource = spFillMe 3

Also, because connection strings are managed in my environment, I can't point SqlDataSources to a table or string on the front page.
Casey
Top achievements
Rank 1
 answered on 28 Feb 2012
1 answer
166 views
Is there any way I can set focus on the textelement in the combobox from client side. I tried setting .focus() method on the client side, but it only keeps the combobox focused, and when i press any key the input text element, inside the combobox does not get focus. Is there any other way to get focus on that.
Dimitar Terziev
Telerik team
 answered on 28 Feb 2012
7 answers
207 views
Hi ,

I need a tooltip to be displayed when I hover mouse over LinkButton.
The tooltip required should have blue border and we need to change font color and size as well.

I have tried using :

<style type="text/css">
    .style1
        {
            color:Red !important;
            border:Blue;
        }
    </style>

And :

<form id="form1" runat="server">
    <rad:RadScriptManager runat="server"></rad:RadScriptManager>
     <div>
                  
        <asp:LinkButton ID="LinkButton1" runat="server" Text="Welcome"></asp:LinkButton>
          
        <rad:RadToolTip ID="Tooltip1" runat="server" Text="Hello Everyone" Enabled="true" CssClass="style1" 
            Font-Size="Medium" TargetControlID="LinkButton1" RelativeTo="Element" Position="BottomCenter" AutoCloseDelay="2000" 
            ShowEvent="OnMouseOver" EnableTheming="true" EnableEmbeddedSkins="true"></rad:RadToolTip>
              
    </div>
    </form>

But the styles are not effecting the Tooltip .
Not sure for the solution ,I also tried using codebehind and using a separate stylesheet. But it didn't help.

Please provide me a solution for implementing this.
rdmptn
Top achievements
Rank 1
 answered on 28 Feb 2012
9 answers
181 views
Hi,

I wonder if you could add a new option in the Image Manager for the next version:

When inserting a thumbnail image, there are already options to link to the original and to open this link in a new window.

How about another option to open the original image in a lightbox?

When activated, a rel="lightbox" attribute is added to the link tag.

We could then add any lightbox (or derivate) script we like to the page.

If you add an extra field for an "image set" you could also have the image gallery mentioned in another post. Typing a value in the field "image set" would then result in the attribute rel="lightbox[<image set value>]" being added to the link tag.

Or can I achieve this in any other way?
Would be nice to have this for radE for Sharepoint 4.5.3 especially... ;-)

Regards

Martni
Rumen
Telerik team
 answered on 28 Feb 2012
1 answer
122 views
Hello,

I've a grid on a dynamically loaded UserControl. From the code-behind I'm adding serveral columns to the existing column collection. This happens on Page_Init. Now when a postback occurs the columns are added again and when the viewstate is loaded the columns from a previous creation are added also. So every postback my column collection grows.
I only want to recreated the columns on Page_Init manually and exclude them from ViewState. How can I force this?

Regards,
  JosM
Pavlina
Telerik team
 answered on 28 Feb 2012
1 answer
245 views

I am following this example to implement a grid.

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/autogeneratedhierarchy/defaultcs.aspx 

My radgrid markup is below:

<telerik:RadGrid ID="RadGrid1" runat="server" Height="412px" Width="818px" AutoGenerateColumns="true"
    AllowSorting="true" GroupingSettings-CaseSensitive="false" ClientSettings-Scrolling-AllowScroll="true"
    AutoGenerateHierarchy="true" PageSize="20" Skin="WebBlue" PagerStyle-AlwaysVisible="true"
    ClientSettings-ClientEvents-OnRowDblClick="RowDblClick" ClientSettings-Resizing-AllowColumnResize="true"
    ClientSettings-Scrolling-UseStaticHeaders="false" ClientSettings-Selecting-AllowRowSelect="true"
    ClientSettings-ClientEvents-OnRowClick="RadGrid1_RowSelected" ClientSettings-Scrolling-SaveScrollPosition="true"
    AllowFilteringByColumn="true" AllowPaging="true" OnNeedDataSource="RadGrid1_NeedDataSource"
    OnDetailTableDataBind="RadGrid1_DetailTableDataBind" OnColumnCreated="RadGrid1_ColumnCreated"
    OnPreRender="RadGrid1_PreRender" OnItemDataBound="RadGrid1_ItemDataBound"
    OnItemCreated="RadGrid1_ItemCreated" ondatabound="RadGrid1_DataBound">
    <MasterTableView AllowMultiColumnSorting="True" ClientDataKeyNames="rvlPropertyID"
        DataKeyNames="rvlPropertyID" HierarchyLoadMode="Client" Name="Property" Width="100%">
    </MasterTableView>
    <HeaderStyle VerticalAlign="Top" Width="125px" />
    <PagerStyle AlwaysVisible="True" />
</telerik:RadGrid>


I have a drop down that changes the child level of the grid, where it be Assessment or Access. The problem I am running in to is that I allow the user to double click on a row in the child level, and then I will grab the dataKeyValue and launch an editor. I've tried putting these lines in the PreRender event, but it did not work.

switch (m_GridViewType)
{
    case "Access":
        RadGrid1.MasterTableView.DetailTables[0].Name = "Access";
        RadGrid1.MasterTableView.DetailTables[0].DataKeyNames = new string[] { "rvlPropertyID", "rvlPropertyAccessID" };
        RadGrid1.MasterTableView.DetailTables[0].ClientDataKeyNames = new string[] { "rvlPropertyID", "rvlPropertyAccessID" };
        break;
    case "Assessment":
        RadGrid1.MasterTableView.DetailTables[0].Name = "Assessment";
        RadGrid1.MasterTableView.DetailTables[0].DataKeyNames = new string[] { "rvlPropertyID", "rvlPropAssessmentID" };
        RadGrid1.MasterTableView.DetailTables[0].ClientDataKeyNames = new string[] { "rvlPropertyID", "rvlPropAssessmentID" };
        break;
    case "Status":
        RadGrid1.MasterTableView.DetailTables[0].Name = "Status";
        RadGrid1.MasterTableView.DetailTables[0].DataKeyNames = new string[] { "rvlPropertyID", "rvlPropertyStatusID" };
        RadGrid1.MasterTableView.DetailTables[0].ClientDataKeyNames = new string[] { "rvlPropertyID", "rvlPropertyStatusID" };
        break;
    case "Contact":
        RadGrid1.MasterTableView.DetailTables[0].Name = "Contact";
        RadGrid1.MasterTableView.DetailTables[0].DataKeyNames = new string[] { "rvlPropertyID", "cntContactID" };
        RadGrid1.MasterTableView.DetailTables[0].ClientDataKeyNames = new string[] { "rvlPropertyID", "cntContactID" };
        break;
    case "Call":
        RadGrid1.MasterTableView.DetailTables[0].Name = "Call";
        RadGrid1.MasterTableView.DetailTables[0].DataKeyNames = new string[] { "rvlPropertyID", "clnCallinLogID" };
        RadGrid1.MasterTableView.DetailTables[0].ClientDataKeyNames = new string[] { "rvlPropertyID", "clnCallinLogID" };
        break;
}


But the javascript method never pulls the datakeyValue because it does not have the datakeynames

function RowDblClick(sender, eventArgs) {
          var propid = eventArgs.getDataKeyValue("rvlPropertyID");
          switch (document.getElementById('<%=cmbGridViews.ClientID %>').value) {
              case "Access":
                  var childID = eventArgs.getDataKeyValue("RvlPropertyAccessID");
                  break;
              case "Assessment":
                  var childID = eventArgs.getDataKeyValue("RvlPropAssessmentID");
                  break;
              case "Status":
                  var childID = eventArgs.getDataKeyValue("RvlPropertyStatusID");
                  break;
              case "Contact":
                  var childID = eventArgs.getDataKeyValue("CntContactID");
                  break;
              case "Call":
                  var childID = eventArgs.getDataKeyValue("ClnCallinLogID");
                  break;
              default:
                  break;
          }
 
          var targetCell = eventArgs.get_domEvent().target;
 
          if (childID == undefined) {
              if (targetCell.cellIndex == 1) // Property Name
                  window.radopen("Editors/PropertyEditor.aspx?propid=" + propid, "editWindow");
              else if (targetCell.cellIndex == 7 && targetCell.innerHTML != "0") // photocounter and does not = 0
                  window.radopen(GetPhotoViewerURL() + "PhotoViewer.aspx?id=" + propid, "PhotoWindow");
          }
          else { // is child row
              if (targetCell.cellIndex == 0) // Assessment date
                  window.radopen("Editors/PropertyAssessmentEditor.aspx?id=" + rvlAssessmentID, "editWindow");
              else if (targetCell.cellIndex == 11 && targetCell.innerHTML != "0")
                  window.radopen(GetPhotoViewerURL() + "PhotoViewer.aspx?id=" + rvlAssessmentID, "PhotoWindow");
          }
      }
Tsvetoslav
Telerik team
 answered on 28 Feb 2012
3 answers
291 views
Hello,
i have aspx page(web application using c#) having asp panel and under this panel i have radgrid, now i want to resize my panel or radgrid as per client screen resolution so that it can fit to screen( doesnot leave blank space). My current screen resolution is 1024*768 and its working fine but as soon i reset it to 1280*960 panel with grid, shifted  above and leave blank space on the bottom of page.
aspx code #

 

 

<asp:Panel ID="pnlDetailGrid" runat="server" Visible="false" CssClass="myPanelClass">

 

 

 

<asp:ImageButton ID="ImageButton1" runat="server" AlternateText="Export to Excel"

 

 

 

CssClass="imButton" ImageUrl="~/Images/Excel.jpg" OnClick="ImageButton1_Click" />

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" Width="100%"

 

 

 

AutoGenerateColumns="False" AllowMultiRowSelection="False" AllowPaging="true" PageSize="15"

 

 

 

OnDetailTableDataBind="RadGrid1_DetailTableDataBind" Skin="Black" AllowCustomPaging="true"

 

 

 

onneeddatasource="RadGrid1_NeedDataSource"

 

 

 

onitemcreated="RadGrid1_ItemCreated" onitemcommand="RadGrid1_ItemCommand"

 

 

 

onexcelexportcellformatting="RadGrid1_ExcelExportCellFormatting"

 

 

 

onexcelmlexportrowcreated="RadGrid1_ExcelMLExportRowCreated"

 

 

 

onexcelmlexportstylescreated="RadGrid1_ExcelMLExportStylesCreated">

 

 

 

 

<PagerStyle Mode="NumericPages" />

 

 

 

 

<MasterTableView TableLayout="Fixed" AllowMultiColumnSorting="True" cellpadding="0" DataKeyNames="TXNORDER" Width="100%" CommandItemDisplay="Top" GroupLoadMode="Server">

 

 

 

<CommandItemTemplate>

 

 

 

<asp:CheckBox ID="CheckBox2" AutoPostBack="true" CssClass="CheckBox" runat="server" ForeColor="White" Text="Show Filter" />

 

 

 

</CommandItemTemplate>

 

 

 

 

<DetailTables>

 

 

 

<telerik:GridTableView DataKeyNames="TXNORDER" Name="Orders" Width="100%">

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn HeaderStyle-Width="5px">

 

 

 

<ItemTemplate>

 

 

 

<asp:ImageButton ID="imgCheck" runat="server" CausesValidation="false"

 

 

 

CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CaptureImageKey")%>'

 

 

 

CommandName='<%# DataBinder.Eval(Container.DataItem, "ItemTypePK")%>'

 

 

 

Height="20px" ImageUrl="~/Images/check-template.png" onclick="imgCheck_Click"

 

 

 

ToolTip="Check Image" Width="30px"/>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="40px" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="TXNORDER" HeaderButtonType="TextButton"

 

 

 

HeaderText="Transaction#" SortExpression="TXNORDER"

 

 

 

UniqueName="TXNORDER" Visible="False">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="ItemTypePK" HeaderButtonType="TextButton"

 

 

 

HeaderText="Type" SortExpression="ItemTypePK" UniqueName="ItemTypePK">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD7" HeaderButtonType="TextButton"

 

 

 

HeaderText="Serial#" SortExpression="FIELD7" UniqueName="FIELD7">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD6" HeaderButtonType="TextButton"

 

 

 

HeaderText="P44" SortExpression="FIELD6" UniqueName="FIELD6">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD5" HeaderButtonType="TextButton"

 

 

 

HeaderText="Routing#" SortExpression="FIELD5" UniqueName="FIELD5">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD4" HeaderButtonType="TextButton"

 

 

 

HeaderText="AltSerial#" SortExpression="FIELD4" UniqueName="FIELD4">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD3" HeaderButtonType="TextButton"

 

 

 

HeaderText="Account#" SortExpression="FIELD3" UniqueName="FIELD3">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD2" HeaderButtonType="TextButton"

 

 

 

HeaderText="TC#" SortExpression="FIELD2" UniqueName="FIELD2">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Amount" HeaderButtonType="TextButton"

 

 

 

HeaderText="Amount" SortExpression="Amount" UniqueName="Amount"

 

 

 

HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left">

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

<ItemStyle CssClass="pad" HorizontalAlign="Right" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="CaptureImageKey" HeaderButtonType="TextButton"

 

 

 

HeaderText="CaptureImageKey" SortExpression="CaptureImageKey"

 

 

 

UniqueName="CaptureImageKey" Visible="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="EnterpriseID" HeaderButtonType="TextButton"

 

 

 

HeaderText="EnterpriseID" SortExpression="EnterpriseID"

 

 

 

UniqueName="EnterpriseID" Visible="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="ReverseReason" HeaderButtonType="TextButton"

 

 

 

HeaderText="ReverseReason" SortExpression="ReverseReason"

 

 

 

UniqueName="ReverseReason" Visible="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

 

</telerik:GridTableView>

 

 

 

</DetailTables>

 

 

 

<Columns>

 

 

 

 

<telerik:GridTemplateColumn HeaderStyle-Width="5px">

 

 

 

<ItemTemplate>

 

 

 

<asp:ImageButton ID="imgReverseTransaction" runat="server"

 

 

 

CausesValidation="false" Height="20px" Width="20px"

 

 

 

CommandArgument='<%#Eval("TXNORDER") + ","+Eval("EnterpriseID")+ ","+Eval("BankID")+ ","+Eval("BranchID")+ ","+Eval("BatchID")+ ","+Eval("OPENEDTIME") + ","+Eval("SourceTypePK")+ ","+Eval("AuxBatchID")%>'

 

 

 

CommandName="ReverseTransaction"

 

 

 

ImageUrl="~/Images/green-undo-icon.png" onclick="imgReverseTransaction_Click"

 

 

 

OnClientClick="javascript:return confirm('Are you sure? \n This action cannot be undone.')"

 

 

 

ToolTip="Reverse Transaction"

 

 

 

visible='<%#DataBinder.Eval(Container.DataItem,"ShowImgReverseTransaction")%>'/>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="30px" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="TXNORDER" HeaderButtonType="TextButton"

 

 

 

HeaderText="Transaction #" SortExpression="TXNORDER"

 

 

 

UniqueName="TXNORDER">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="CaptureStatus" HeaderButtonType="TextButton"

 

 

 

HeaderText="Capture Status" SortExpression="CaptureStatus">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="TRANSACTIONTIME" HeaderButtonType="TextButton"

 

 

 

HeaderText="Transaction Time" SortExpression="TRANSACTIONTIME">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Amount" HeaderButtonType="TextButton"

 

 

 

HeaderText="Amount" SortExpression="Amount" UniqueName="Amount"

 

 

 

HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left">

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

<ItemStyle CssClass="pad" HorizontalAlign="Center" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings>

 

 

 

<Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True"

 

 

 

SaveScrollPosition="True"></Scrolling>

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

 

 

 

</asp:Panel>

 

Pavlina
Telerik team
 answered on 28 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?