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

I am filtering the grid on a numeric field using the column filter. When filtered with '6 7' filter value and filter options other than between, I get '...operand missing..' error. Can you provide a way to trap the error?

Thanks & Regards
Tsvetoslav
Telerik team
 answered on 26 Nov 2010
1 answer
38 views
Hi - on my grid, it displays the total number of results as well the normal pagination controls, but, if I have my grid set to display 50 rows per page and I have less than 50 results, the pagination doesn't show (which is obvious) but the total row count doesn't show either.

How would I get it to display, say 35 when I have it set to 50 rows per page?

Thanks.
Princy
Top achievements
Rank 2
 answered on 26 Nov 2010
1 answer
71 views
Hi all,

I write this just to save some of you some frustrating hours.

If one of your gridcolumns contain a '$' character in the UniqueName property, there is a risk that you are not able to get the new/updated value from that column.
I have spent many (!) hours  trying to figure out what the problem was.
I don't know if it always is so, or if it was a a combination of dropdown columns / dynamic creation etc ... - but it did not work.

As soon as I removed the '$' - everything was ok.

According to Telerik support this is not a bug - so I guess nothing will be changed due to this in future versions.

Now you are warned !

Happy programming ;-)

Thanks.
Tsvetina
Telerik team
 answered on 26 Nov 2010
7 answers
179 views
I'm using a sql datasource to populate my radcombobox.  The combobox is a multiselect with checkboxes.  I would like to add another item, the text would be All and if you select this item, all the checkboxes in the combo would be selected.  I tried in the databound event and it makes the checkbox, but not the text.  Here's the code:
protected void ImpactCombo_DataBound(object sender, EventArgs e)
        {
            RadComboBoxItem all = new RadComboBoxItem("All", "-1");
            ImpactCombo.Items.Add(all);
        }

Any ideas?  Thanks.
Dimitar Terziev
Telerik team
 answered on 26 Nov 2010
1 answer
112 views
Hello Everyone,

I have been searching for an hour trying to find the solution to this issue.

I am trying to access a RadWindow from a RadWindowManager on a MasterPage within a UserControl.
So...

MasterPage >> WindowManager >> UserControl >> RadWindow


MasterPage
-----------------------

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

 

 

 

</telerik:RadWindowManager>

 



UserControl
-------------------------

<

 

 

style type="text/css">

 

 

 

.style1

 

{

 

 

width: 32px;

 

 

 

height: 32px;

 

}

</

 

 

style>

 

<

 

 

p>

 

 

 

<img alt="" class="style1"

 

 

 

src="../../images/ui/1290451133_x-office-document.png" /></p>

 

 

<

 

 

telerik:RadWindow ID="RadWindow1" runat="server">

 

<

 

 

ContentTemplate>

 

 

 

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

 

</

 

 

ContentTemplate>

 

</

 

 

telerik:RadWindow>

OnClick of the <IMG> tag I would like to load this RadWindow into the RadWindowManager collection (display it).

What is the best way to achieve this functionality?

Also, is there a way to load a UserControl within the RadWindow?

Many thanks,
~Dean

 

Georgi Tunev
Telerik team
 answered on 26 Nov 2010
3 answers
264 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
120 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
73 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
89 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
81 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
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?