Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
129 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
86 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
103 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
97 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
128 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
49 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
69 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
176 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
177 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
1 answer
87 views
Hi,

I'm using sliding panes and as expected the text show differently on IE vs Firefox and Chrome.

I came across this webpage, with vertical text on all browsers, maybe it can be included to fix this issue?

http://snook.ca/archives/html_and_css/css-text-rotation

Thanks!
Bozhidar
Telerik team
 answered on 26 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?