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

I have a problem with AJAX.
AJAX update field that not specified in configuration. Can you tell me why ajax updated "textbox2" after I change the RadComboBox index?
(here is a simplified code of my application)


<telerik:RadAjaxLoadingPanel ID="rlpLoadingPanel" runat="server" Skin="Default" />
    <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
        <AjaxSettings>

            <telerik:AjaxSetting AjaxControlID="cmbTest">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="textBox1" LoadingPanelID="rlpLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>


            <telerik:AjaxSetting AjaxControlID="tButton">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="myPanel1" LoadingPanelID="rlpLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>

        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

    <asp:Panel runat="server" ID="myPanel1">

        <telerik:RadComboBox ID="cmbTest" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cmbTest_SelectedIndexChanged">
            <Items>
                <telerik:RadComboBoxItem runat="server" Text="test 1" />
                <telerik:RadComboBoxItem runat="server" Text="test 2" />
                <telerik:RadComboBoxItem runat="server" Text="test 3" />
                <telerik:RadComboBoxItem runat="server" Text="test 4" />
                <telerik:RadComboBoxItem runat="server" Text="test 5" />
                <telerik:RadComboBoxItem runat="server" Text="test 6" />
                <telerik:RadComboBoxItem runat="server" Text="test 7" />
            </Items>
        </telerik:RadComboBox>
        <br />
        <br />
        <telerik:RadTextBox runat="server" ID="textBox1"></telerik:RadTextBox>
        <br />
        <telerik:RadTextBox runat="server" ID="textBox2"></telerik:RadTextBox>
    </asp:Panel>

    <asp:Panel runat="server" ID="myPanel2">
        <telerik:RadButton runat="server" ID="tButton" OnClick="tButton_Click" Text="Button"></telerik:RadButton>
    </asp:Panel>




This is code on server side

        protected void cmbTest_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {            
            textBox1.Text = "textValue1";
            textBox2.Text = "textValue2";
        }


Whne I move

<telerik:AjaxSetting AjaxControlID="tButton">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="myPanel1" LoadingPanelID="rlpLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>

from my ajax configuration everythis is work normal. I dont understand the link between this and changing the RadComboBox index. Why "myPanel1" have inbluence on this?
Konstantin Dikov
Telerik team
 answered on 03 Mar 2015
1 answer
56 views
Hello

how we can change animation , i want to load each image , to leave by the left , right to left , each one.

Like this site in : "Notre agence vous propose" :

http://www.sextantfrance.fr/
Daniel
Telerik team
 answered on 03 Mar 2015
4 answers
354 views
Hello,

Here is my situation:

I have a RadGrid with a List<MyObject> as the datasource. The MyObject class has a property of Deleted on it which is a boolean.

My requirement is to filter to show only MyObjects in the RadGrid that have a Deleted propery of false. Hiding MyObjects that have a Deleted value of true.

For some reason I cannot figure out how to filter my RadGrid on the Deleted property.

Here are some of my attempts:

RadGrid1.MasterTableView.FilterExpression = "Deleted = false";
RadGrid1.MasterTableView.FilterExpression = "Deleted = 'false'";
RadGrid1.MasterTableView.FilterExpression = "Deleted is false";
RadGrid1.MasterTableView.FilterExpression = "NOT Deleted";

If anyone knows what I am doing wrong, please point me in the right direction.

Thanks,

TMP




 

Kamal
Top achievements
Rank 1
 answered on 03 Mar 2015
14 answers
722 views
I am trying to implement a custom filter using the DropDownList control as documented in
http://www.telerik.com/help/aspnet-ajax/grid-filtering-with-dropdownlist.html

However, I am generating the RadGrid columns at runtime in the Page_Load event.

I receive the error "Exception of type 'System.Web.HttpUnhandledException' was thrown. when I try to filter the data. The grid and data load correctly. I receive the error only when I try to filter the data. The exception is trapped in the GLobal.asax. I cannot determine what is throwing the exception.

The RadGrid filtering works fine if I do not use the MyCustomFilteringColumn and simply use the GridBoundColumn for all columns that are created.

The project uses the Adventure Works 2008R2 database. I am displaying all records from the DimCustomer table. The "FirstName" column implements the custom control  "MyCustomFilteringColumn : GridBoundColumn". All other columns are "GridBoundColumn".

I'm not sure what I'm missing. Any help would be greatly appreciated.

Thanks,
Mike

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewMemberDetails.aspx.cs" Inherits="BillingPortal.ViewMemberDetails" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <link href="Styles/VisualIdentity.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
    function PopupClose(button)
    {
        window.close();
    }
</script>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <Scripts>
                    <%--Needed for JavaScript IntelliSense in VS2010--%>
                    <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
                </Scripts>
            </telerik:RadScriptManager>
    <div>
   <center> <h1><font color="#00458a"> Test RadGrid Custom Filter </font></h1>
     <telerik:RadGrid ID="RadGrid1" OnNeedDataSource="RadGrid2_NeedDataSource"
                     AllowPaging="True" runat="server" GridLines="None"  Width="1199px"
                      CellSpacing="0" AllowFilteringByColumn="True"
                     AutoGenerateColumns="False" Skin="Windows7" >
    <MasterTableView Width="99%" CommandItemDisplay="Top" >
    <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToExcelButton="false" ShowExportToWordButton="false" ShowExportToCsvButton="false" />
    <Columns>
    </Columns>
    </MasterTableView>
   </telerik:RadGrid>
   <h3 />
   <h3><asp:Label ID="lblError" runat="server" ForeColor="Red" Visible="False"></asp:Label>
   </h3>
   <h3 />
   <telerik:RadButton ID="btnClose" runat="server" OnClientClicked="PopupClose" Text="Close"></telerik:RadButton>
   </center>
    </div>
    </form>
</body>
</html>
 
 
 
 
 
 
 
 
    public partial class ViewMemberDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblError.Visible = false;
 
            if (!IsPostBack)
            {
                DataTable dt;
 
                dt = GetData();
 
                // build RadGrid columns
 
                RadGrid1.MasterTableView.Columns.Clear();
 
                foreach (DataColumn dataColumn in dt.Columns)
                {
                    if (dataColumn.ColumnName == "FirstName")
                    {
                        MyCustomFilteringColumn gridColumn = new MyCustomFilteringColumn();
                        RadGrid1.MasterTableView.Columns.Add(gridColumn);
 
                        gridColumn.DataField = dataColumn.ColumnName;
                        gridColumn.HeaderText = dataColumn.ColumnName;
                        gridColumn.UniqueName = dataColumn.ColumnName;
                    }
                    else
                    {
                        GridBoundColumn boundColumn = new GridBoundColumn();
                        RadGrid1.MasterTableView.Columns.Add(boundColumn);
 
                        boundColumn.DataField = dataColumn.ColumnName;
                        boundColumn.HeaderText = dataColumn.ColumnName;
                        boundColumn.UniqueName = dataColumn.ColumnName;
                    }
                }
            }
        }
 
        protected void RadGrid2_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            RadGrid1.DataSource = GetData();
        }
 
        public DataTable GetData()
        {
            string sConnectionString;
 
            sConnectionString = "Server=.;Database=AdventureWorksDW2008R2;Trusted_Connection=Yes;";
 
            SqlConnection conn = new SqlConnection(sConnectionString);
            SqlCommand cmd = new SqlCommand();
            SqlDataAdapter adapter = new SqlDataAdapter();
            DataSet dsSummary = new DataSet();
            DataTable dtSummary;
 
            try
            {
                conn.Open();
                cmd = new SqlCommand("SELECT * FROM [AdventureWorksDW2008R2].[dbo].[DimCustomer]", conn);
                cmd.CommandType = CommandType.Text;
                adapter.SelectCommand = cmd;
                adapter.Fill(dsSummary);
            }
            catch (Exception ex)
            {
                this.lblError.Visible = true;
                this.lblError.Text = ex.Message;
 
            }
            finally
            {
                conn.Close();
            }
 
            dtSummary = dsSummary.Tables[0];
 
            return dtSummary;
        }
 
        public class MyCustomFilteringColumn : GridBoundColumn
        {
            private object listDataSource = null;
            //RadGrid calls this method when it initializes the controls inside the filtering item cells
 
            protected override void SetupFilterControls(TableCell cell)
            {
                base.SetupFilterControls(cell);
                cell.Controls.RemoveAt(0);
                DropDownList list = new DropDownList();
                list.ID = "list" + this.DataField;
                list.AutoPostBack = true;
                list.SelectedIndexChanged += new EventHandler(list_SelectedIndexChanged);
                cell.Controls.AddAt(0, list);
                cell.Controls.RemoveAt(1);
                list.DataTextField = this.DataField;
                list.DataValueField = this.DataField;
 
                //list.DataSource = this.ListDataSource;
                list.DataSource = this.ListDataSource2;
 
                //string[] s1 = new string[3] { "John", "Paul", "Mary" };
                //ListDataSource = s1;
            }
            void list_SelectedIndexChanged(object sender, EventArgs e)
            {
                GridFilteringItem filterItem = (sender as DropDownList).NamingContainer as GridFilteringItem;
                if (this.DataType == System.Type.GetType("System.Int32") || this.DataType == System.Type.GetType("System.Int16") || this.DataType == System.Type.GetType("System.Int64"))
                {
                    filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.UniqueName));
                }
                else
                    // treat everything else like a string  
                    filterItem.FireCommandEvent("Filter", new Pair("Contains", this.UniqueName));
            }
            public object ListDataSource
            {
                get
                {
                    return this.listDataSource;
                }
                set
                {
                    listDataSource = value;
                }
            }
 
            public DataTable ListDataSource2
            {
                get
                {
                    // Build list values
                    DataTable dtDropDownValues = new DataTable();
                    dtDropDownValues.Columns.Add(this.DataField);
 
                    DataRow _dr = dtDropDownValues.NewRow();
                    _dr[this.DataField] = "Mike";
                    dtDropDownValues.Rows.Add(_dr);
 
                    DataRow _dr2 = dtDropDownValues.NewRow();
                    _dr2[this.DataField] = "Rob";
                    dtDropDownValues.Rows.Add(_dr2);
 
                    DataRow _dr3 = dtDropDownValues.NewRow();
                    _dr3[this.DataField] = "Jim";
                    dtDropDownValues.Rows.Add(_dr3);
 
                    return dtDropDownValues;
                }
            }
 
            //RadGrid calls this method when the value should be set to the filtering input control(s) 
            protected override void SetCurrentFilterValueToControl(TableCell cell)
            {
                base.SetCurrentFilterValueToControl(cell);
                DropDownList list = (DropDownList)cell.Controls[0];
                if (this.CurrentFilterValue != string.Empty)
                {
                    list.SelectedValue = this.CurrentFilterValue;
                }
            }
            //RadGrid calls this method to extract the filtering value from the filtering input control(s) 
            protected override string GetCurrentFilterValueFromControl(TableCell cell)
            {
                DropDownList list = (DropDownList)cell.Controls[0];
                return list.SelectedValue;
            }
            protected override string GetFilterDataField()
            {
                return this.DataField;
            }
        }
Kamal
Top achievements
Rank 1
 answered on 03 Mar 2015
3 answers
1.2K+ views
Dear support team,

i have this problem.
I'm trying to disable the Telerik button after the click.
When i use the ASP:Button it works. When i use Telerik button, is not working.
Can you please help me with this?
Below you will find my code.

Javascript:
        function disableBtn(btnID, newText) {

            var btn = document.getElementById(btnID);
            btn.disabled = true;
            btn.value = newText;
        }

Telerik Button:
                <asp:UpdatePanel runat="server" ID="Panel">
                    <ContentTemplate>
                        <telerik:RadButton ID="btnSave" runat="server" ButtonType="LinkButton" Text="Proccess"
                            Width="50px" BorderColor="#006699" BorderStyle="Solid" BorderWidth="1px" ForeColor="#003366"
                            Height="40px" CssClass="SmallRadButtonsTop corners-all" Font-Size="Small" ValidationGroup="SaveOrder"
                            Enabled="False" Skin="Windows7" HoveredCssClass="ShadowOver" PressedCssClass="ShadowClick"
                            OnClientClicked="disableBtn(this.id, 'Submitting...')">
                            <Icon PrimaryIconUrl="~/Images/Save2.gif" PrimaryIconHeight="30" PrimaryIconWidth="50" />
                        </telerik:RadButton>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:UpdateProgress ID="progress1" runat="server" AssociatedUpdatePanelID="Panel">
                    <ProgressTemplate>
                        <div class="">
                            <asp:Image runat="server" ImageUrl="images/loading.gif" />
                            <br />
                            Your Request is in Proccess.
                            <br />
                            Please Wait...
                        </div>
                    </ProgressTemplate>
                </asp:UpdateProgress>

Thank you in advance for you help.

Best Regards,
George.
Technology Department.
Peter
Top achievements
Rank 1
 answered on 03 Mar 2015
0 answers
52 views
I created my own  "Template" column. Everything works ok. But when I add
a child hierarchy and expand any row, the values of that column in the
father grid are lost.

Any suggestions on this?

I added part of my code to show the situation.

Code:

public class MyGridTemplateColumn : GridTemplateColumn
{
    public override void Initialize()
    {
        base.Initialize();

        HeaderStyle.Width = Unit.Pixel(105);
        HeaderText = "State";
        UniqueName = "StateCol";

        DataField = "StateId";
        DataType = typeof(byte);

        var _dataSource = new List<KeyValuePair<int, string>>
        {
            new KeyValuePair<int, string>(1, "Active"),
            new KeyValuePair<int, string>(2, "Deleted"),
            new KeyValuePair<int, string>(3, "Inactive"),
            new KeyValuePair<int, string>(6, "Other")
        };

        ItemTemplate = new MyItemTemplate(this.DataField, _dataSource);
        EditItemTemplate = new MyEditItemTemplate(this.DataField, _dataSource);
    }

    public override GridColumn Clone()
    {
        var res = new MyGridTemplateColumn();
        res.CopyBaseProperties(this);

        return res;
    }

    private class MyItemTemplate : ITemplate
    {
        private readonly string _dataField;
       
private readonly List<KeyValuePair<int, string>>
_dataSource = new List<KeyValuePair<int, string>>();

        public MyItemTemplate(string dataField, List<KeyValuePair<int, string>> origenDatos)
        {
            _dataField = dataField;
            _dataSource = origenDatos;
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            var lControl = new LiteralControl { ID = _dataField + "_lControl" };
            lControl.DataBinding += lControl_DataBinding;
            container.Controls.Add(lControl);
        }

        private void lControl_DataBinding(object sender, EventArgs e)
        {
            var l = (LiteralControl)sender;
            var value = l.NamingContainer.GetFieldValue("DataItem." + _dataField);
            if (value != null)
                l.Text = _dataSource.FirstOrDefault(s=>s.Key == (int)value).Value;
        }
    }

    private class MyEditItemTemplate : IBindableTemplate
    {
        private readonly string _dataField;
       
private readonly List<KeyValuePair<int, string>>
_dataSource = new List<KeyValuePair<int, string>>();

        public MyEditItemTemplate(string dataField, List<KeyValuePair<int, string>> origenDatos)
        {
            _dataField = dataField;
            _dataSource = origenDatos;
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            var rcBox = new RadComboBox
            {
                ID = _dataField + "_RadComboBox",
                DataTextField = "Value",
                DataValueField = "Key",
                DataSource = _dataSource
            };

            rcBox.DataBinding += rcBox_DataBinding;
            container.Controls.Add(rcBox);
        }

        public IOrderedDictionary ExtractValues(Control container)
        {
            var dictionary = new OrderedDictionary
            {
                {_dataField, (container.FindControl(_dataField + "_RadComboBox") as RadComboBox).SelectedValue}
            };
            return dictionary;
        }

        private void rcBox_DataBinding(object sender, EventArgs e)
        {
            var rcBox = (RadComboBox)sender;
            var value = rcBox.NamingContainer.GetFieldValue("DataItem." + _dataField);
            rcBox.SelectedValue = value != null ? value.ToString() : string.Empty;
        }
    }
}

Usage:

<telerik:RadGrid
ID="RadGrid1" runat="server" DataSourceID="LinqDataSource1"
AllowPaging="True" AutoGenerateColumns="False" Width="50%">
    <MasterTableView DataKeyNames="ENTUserAccountId" DataSourceID="LinqDataSource1" PageSize="5">
        <Columns>
            <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" UniqueName="UserName"/>
            <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="Email"/>
            <a:MyGridTemplateColumn />
        </Columns>
        <DetailTables>
            <telerik:GridTableView runat="server" DataSourceID="LinqDataSource2" DataKeyNames="ENTUserAccountId">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="ENTUserAccountId" MasterKeyField="ENTUserAccountId" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridTemplateColumn DataField="ENTRoleId" HeaderText="Rol" UniqueName="ENTRoleId">
                        <ItemTemplate>
                           
<asp:Label ID="ENTRoleIdLabel" runat="server" Text='<%#
Eval("ENTRole.RoleName") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>                 
            </telerik:GridTableView>
        </DetailTables>
    </MasterTableView>
</telerik:RadGrid>

<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="TelerikWebApp1.DataClasses1DataContext"
    EntityTypeName="" TableName="ENTUserAccount"/>
        
<asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="TelerikWebApp1.DataClasses1DataContext"
    EntityTypeName="" TableName="ENTRoleUserAccount" Where="ENTUserAccountId == @ENTUserAccountId">
        <WhereParameters>
            <asp:SessionParameter Name="ENTUserAccountId" Type="Int32" />
        </WhereParameters>
</asp:LinqDataSource>  



Delvis
Top achievements
Rank 1
 asked on 03 Mar 2015
0 answers
55 views
I created my own  "Template" column. Everything works ok. But when I add a child hierarchy and expand any row, the values of that column in the father grid are lost.

Any suggestions on this?

I added part of my code to show the situation.

Code:

public class MyGridTemplateColumn : GridTemplateColumn
{
    public override void Initialize()
    {
        base.Initialize();

        HeaderStyle.Width = Unit.Pixel(105);
        HeaderText = "State";
        UniqueName = "StateCol";

        DataField = "StateId";
        DataType = typeof(byte);

        var _dataSource = new List<KeyValuePair<int, string>>
        {
            new KeyValuePair<int, string>(1, "Active"),
            new KeyValuePair<int, string>(2, "Deleted"),
            new KeyValuePair<int, string>(3, "Inactive"),
            new KeyValuePair<int, string>(6, "Other")
        };

        ItemTemplate = new MyItemTemplate(this.DataField, _dataSource);
        EditItemTemplate = new MyEditItemTemplate(this.DataField, _dataSource);
    }

    public override GridColumn Clone()
    {
        var res = new MyGridTemplateColumn();
        res.CopyBaseProperties(this);

        return res;
    }

    private class MyItemTemplate : ITemplate
    {
        private readonly string _dataField;
        private readonly List<KeyValuePair<int, string>> _dataSource = new List<KeyValuePair<int, string>>();

        public MyItemTemplate(string dataField, List<KeyValuePair<int, string>> origenDatos)
        {
            _dataField = dataField;
            _dataSource = origenDatos;
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            var lControl = new LiteralControl { ID = _dataField + "_lControl" };
            lControl.DataBinding += lControl_DataBinding;
            container.Controls.Add(lControl);
        }

        private void lControl_DataBinding(object sender, EventArgs e)
        {
            var l = (LiteralControl)sender;
            var value = l.NamingContainer.GetFieldValue("DataItem." + _dataField);
            if (value != null)
                l.Text = _dataSource.FirstOrDefault(s=>s.Key == (int)value).Value;
        }
    }

    private class MyEditItemTemplate : IBindableTemplate
    {
        private readonly string _dataField;
        private readonly List<KeyValuePair<int, string>> _dataSource = new List<KeyValuePair<int, string>>();

        public MyEditItemTemplate(string dataField, List<KeyValuePair<int, string>> origenDatos)
        {
            _dataField = dataField;
            _dataSource = origenDatos;
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            var rcBox = new RadComboBox
            {
                ID = _dataField + "_RadComboBox",
                DataTextField = "Value",
                DataValueField = "Key",
                DataSource = _dataSource
            };

            rcBox.DataBinding += rcBox_DataBinding;
            container.Controls.Add(rcBox);
        }

        public IOrderedDictionary ExtractValues(Control container)
        {
            var dictionary = new OrderedDictionary
            {
                {_dataField, (container.FindControl(_dataField + "_RadComboBox") as RadComboBox).SelectedValue}
            };
            return dictionary;
        }

        private void rcBox_DataBinding(object sender, EventArgs e)
        {
            var rcBox = (RadComboBox)sender;
            var value = rcBox.NamingContainer.GetFieldValue("DataItem." + _dataField);
            rcBox.SelectedValue = value != null ? value.ToString() : string.Empty;
        }
    }
}

Usage:

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="LinqDataSource1" AllowPaging="True" AutoGenerateColumns="False" Width="50%">
    <MasterTableView DataKeyNames="ENTUserAccountId" DataSourceID="LinqDataSource1" PageSize="5">
        <Columns>
            <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" UniqueName="UserName"/>
            <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="Email"/>
            <a:MyGridTemplateColumn />
        </Columns>
        <DetailTables>
            <telerik:GridTableView runat="server" DataSourceID="LinqDataSource2" DataKeyNames="ENTUserAccountId">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="ENTUserAccountId" MasterKeyField="ENTUserAccountId" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridTemplateColumn DataField="ENTRoleId" HeaderText="Rol" UniqueName="ENTRoleId">
                        <ItemTemplate>
                            <asp:Label ID="ENTRoleIdLabel" runat="server" Text='<%# Eval("ENTRole.RoleName") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>                 
            </telerik:GridTableView>
        </DetailTables>
    </MasterTableView>
</telerik:RadGrid>

<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="TelerikWebApp1.DataClasses1DataContext"
    EntityTypeName="" TableName="ENTUserAccount"/>
        
<asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="TelerikWebApp1.DataClasses1DataContext"
    EntityTypeName="" TableName="ENTRoleUserAccount" Where="ENTUserAccountId == @ENTUserAccountId">
        <WhereParameters>
            <asp:SessionParameter Name="ENTUserAccountId" Type="Int32" />
        </WhereParameters>
</asp:LinqDataSource>  

Delvis
Top achievements
Rank 1
 asked on 03 Mar 2015
5 answers
710 views
Hello,

I am getting issue to customize group header, I have some operation(sum,count,min,max, last, first, average) in footer.
But I want to do same operation in group header.  Example: I have last product in footer now I want to show total product count in header.
How can I do this? 

[I can have max 3 column for grouping]

Could you please help me anyone?
Please see attached image.
Youssef
Top achievements
Rank 1
 answered on 02 Mar 2015
3 answers
320 views
we need to change skin dynamically for all controls in web application. i have not found appropriate solution for web application. Kindly provide a solution which would be helpful for me.
Thanks,
Rajender..
David
Top achievements
Rank 1
 answered on 02 Mar 2015
4 answers
74 views
Hi, we are in the process of upgrading some grids from Infragistics Ultrawebgrid  to Telerik Controls.  We are under some time constraints due to enforced IE11 upgrade.  The grid I am working with is very simple.  It is straight data entry of requsition details.  It can be one or many lines.  Is the RadGrid appropriate for this?  I have tried using it and am struggling a bit.  I don't want to bind to a data source as there won't be any data on inital load of the screen.  When the user is done inputting all of the data, I then want to insert detail lines into database.  How do I create a simple input grid?

Thanks and sorry for such a rookie question!
C
Top achievements
Rank 1
 answered on 02 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?