Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
270 views
Is it possible? I have tried

from http://www.telerik.com/help/aspnet-ajax/grid_sort.html

var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
masterTable.sort("");

but it does not seem to do anything?

I need to do it from client side as when you click on different nodes in in my treeview it will rebinds the grid to different columns, so it needs to clear the column sort at the same time.

thanks
Toby
Radoslav
Telerik team
 answered on 26 Nov 2010
5 answers
122 views
Dear Team,
I am using datareader to bind data with grid. Works fine for first page but when a page index is changed or page size is changed grid displays no records...
it shows the new page or resized page correctly when I reload the page this is serverside code please tell me if i am missing something

protected void NeedDataSource()
{
    grd_report.Visible = true;
    if (IsPostBack == true && txt_todate.SelectedDate != null && txt_fromdate.SelectedDate != null)
    {
        String _todate = txt_todate.SelectedDate.Value.ToString("dd-MMM-yyyy");
        String _fromdate = txt_fromdate.SelectedDate.Value.ToString("dd-MMM-yyyy");
        obj_sales.initConnection();
        obj_sales.nwideTotalSalesSummary(_todate, _fromdate);
        grd_report.DataSource = obj_sales.getResults();
        grd_report.DataBind();
    }
}
protected void PageSizeChanged(object source, Telerik.Web.UI.GridPageSizeChangedEventArgs e)
{
    NeedDataSource();
    grd_report.Rebind();
}


        protected void NeedDataSource()
        {
            grd_report.Visible = true;
            if (IsPostBack == true && txt_todate.SelectedDate != null && txt_fromdate.SelectedDate != null)
            {
                String _todate = txt_todate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                String _fromdate = txt_fromdate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                obj_sales.initConnection();
                obj_sales.nwideTotalSalesSummary(_todate, _fromdate);
                grd_report.DataSource = obj_sales.getResults();
                grd_report.DataBind();
            }
        }
        protected void PageSizeChanged(object source, Telerik.Web.UI.GridPageSizeChangedEventArgs e)
        {
            NeedDataSource();
            grd_report.Rebind();
        }

        protected void NeedDataSource()
        {
            grd_report.Visible = true;
            if (IsPostBack == true && txt_todate.SelectedDate != null && txt_fromdate.SelectedDate != null)
            {
                String _todate = txt_todate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                String _fromdate = txt_fromdate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                obj_sales.initConnection();
                obj_sales.nwideTotalSalesSummary(_todate, _fromdate);
                grd_report.DataSource = obj_sales.getResults();
                grd_report.DataBind();
            }
        }
        protected void NeedDataSource()
        {
            grd_report.Visible = true;
            if (IsPostBack == true && txt_todate.SelectedDate != null && txt_fromdate.SelectedDate != null)
            {
                String _todate = txt_todate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                String _fromdate = txt_fromdate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                obj_sales.initConnection();
                obj_sales.nwideTotalSalesSummary(_todate, _fromdate);
                grd_report.DataSource = obj_sales.getResults();
                grd_report.DataBind();
            }
        }
        protected void NeedDataSource()
        {
            grd_report.Visible = true;
            if (IsPostBack == true && txt_todate.SelectedDate != null && txt_fromdate.SelectedDate != null)
            {
                String _todate = txt_todate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                String _fromdate = txt_fromdate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                obj_sales.initConnection();
                obj_sales.nwideTotalSalesSummary(_todate, _fromdate);
                grd_report.DataSource = obj_sales.getResults();
                grd_report.DataBind();
            }
        }
        protected void NeedDataSource()
        {
            grd_report.Visible = true;
            if (IsPostBack == true && txt_todate.SelectedDate != null && txt_fromdate.SelectedDate != null)
            {
                String _todate = txt_todate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                String _fromdate = txt_fromdate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                obj_sales.initConnection();
                obj_sales.nwideTotalSalesSummary(_todate, _fromdate);
                grd_report.DataSource = obj_sales.getResults();
                grd_report.DataBind();
            }
        }
        protected void NeedDataSource()
        {
  
protected void NeedDataSource()
{
    grd_report.Visible = true;
    if (IsPostBack == true && txt_todate.SelectedDate != null && txt_fromdate.SelectedDate != null)
    {
        String _todate = txt_todate.SelectedDate.Value.ToString("dd-MMM-yyyy");
        String _fromdate = txt_fromdate.SelectedDate.Value.ToString("dd-MMM-yyyy");
        obj_sales.initConnection();
        obj_sales.nwideTotalSalesSummary(_todate, _fromdate);
        grd_report.DataSource = obj_sales.getResults();
        grd_report.DataBind();
    }
}
protected void PageSizeChanged(object source, Telerik.Web.UI.GridPageSizeChangedEventArgs e)
{
    NeedDataSource();
    grd_report.Rebind();
}
         grd_report.Visible = true;
            if (IsPostBack == true && txt_todate.SelectedDate != null && txt_fromdate.SelectedDate != null)
            {
                String _todate = txt_todate.SelectedDate.Value.ToString("dd-MMM-yyyy");
  
protected void NeedDataSource()
{
    grd_report.Visible = true;
    if (IsPostBack == true && txt_todate.SelectedDate != null && txt_fromdate.SelectedDate != null)
    {
        String _todate = txt_todate.SelectedDate.Value.ToString("dd-MMM-yyyy");
        String _fromdate = txt_fromdate.SelectedDate.Value.ToString("dd-MMM-yyyy");
        obj_sales.initConnection();
        obj_sales.nwideTotalSalesSummary(_todate, _fromdate);
        grd_report.DataSource = obj_sales.getResults();
        grd_report.DataBind();
    }
}
 
protected void PageSizeChanged(object source, Telerik.Web.UI.GridPageSizeChangedEventArgs e)
{
    NeedDataSource();
    grd_report.Rebind();
}
             String _fromdate = txt_fromdate.SelectedDate.Value.ToString("dd-MMM-yyyy");
                obj_sales.initConnection();
                obj_sales.nwideTotalSalesSummary(_todate, _fromdate);
                grd_report.DataSource = obj_sales.getResults();
                grd_report.DataBind();
            }
        }
Abdul
Top achievements
Rank 2
 answered on 26 Nov 2010
1 answer
75 views
Hello everyone!
I would like to know how to put validation in the master detail table comparing cost between the master total cost and the detail subtotal cost. Please see the attached image. and also when I add new record or update the existing record then it will also show this message if the master total cost is less than the detail subtotal cost too.

Please help.
Thank you!
Veli
Telerik team
 answered on 26 Nov 2010
3 answers
91 views
Is there a way to have the ExpandCollapse Icon/Column be a part of a DetailTable's Caption row?

Looking at the example at:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/twotablesatlevel/defaultcs.aspx
I am wondering if it would be possible to put the Icon left of the "Sales per Employee" row and the "Products" row.

This way when the user gets presented the data they would see there are related items in the Details Tables, but only see the Caption rows initially.

Thanks.
Tsvetina
Telerik team
 answered on 26 Nov 2010
2 answers
86 views
Hi,

I have 2 combo boxes in Grid Edit Itemitem template.When i editing record in Grid i am getting data to both the combo boxes very fine.My requirement is,if i select first combobox then i need to clear the second combobox items & bind some data based on first Combobox selected value.

Here how can i get first combobox ID in first combobox SelectedIndexChanged Event.

Please suggest me...


Thanks.
Guruvu
Top achievements
Rank 1
 answered on 26 Nov 2010
6 answers
95 views
Is there a built-in way to preload the image sprites so they don't "pop" in when an alert or something comes up?
Georgi Tunev
Telerik team
 answered on 26 Nov 2010
1 answer
45 views
i want to generate dynamic grid columns , on cell click i need to display a popup window which contain set of countrol
Princy
Top achievements
Rank 2
 answered on 26 Nov 2010
0 answers
56 views
hi,

i have created two customized asp.net buttons '<' and '>'.. this should control the navigation of the radscheduler navigation as same as the existing functionality

... is it possible..?


thanks in advance...
ganesh
Top achievements
Rank 2
 asked on 26 Nov 2010
3 answers
165 views
Hello,

Do you have some sample code to Validate the Modified data in Grid EditForm in Template Mode using pure Client side JavaScript validation?
In Add form the JS works fine as the controls are visible and directly accessible using <% controlName.ClientID %> but would like to have the validation in Update mode?

Thanks,
Sanjay
Tsvetina
Telerik team
 answered on 26 Nov 2010
3 answers
160 views
Hi -

 I have a radcombobox with a radtreeview inside it (using itemtemplate). I want to load on demand. How do i do this? Has any one done it, or has an example, or an idea on how to go abt this? appreciate it

thanks
Veronica
Telerik team
 answered on 26 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?