Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
I am trying to use the date picker with validation.
If the date is future date that mean date beyond tomorrow then it is invalid.
if the date is older than 1 year or 6 month then the date is invalid.
Also can i have a drop down in the date picker text box that has predefined dates like last week, last month, 2 months before which are updated dynamically everyday.

Any Ideas
Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Apr 2013
1 answer
130 views
I was wondering if there is a way to pivot a radgrid so that my columns are now the rows.  I tried a radgrid pivot table but I need to be able to add controls such as textboxes and checkboxes to each radgrid cell.
kranthi kiran pusala
Top achievements
Rank 1
 answered on 20 Apr 2013
5 answers
328 views
Hi,

I'm trying to do expand/collapse in ClientSide with

 function collapseAll() {
            var panelBar = $find("<%= RadPanelBar1.ClientID %>");
            var items = panelBar.get_items();
            for (var i = 0; i < items.get_count(); i++) {
                var item = panelBar.findItemByText(items.getItem(i).get_text());
                if (item) {
                    item.collapse();
                }
            }

It works fine with Firefox but its been very slow with IE. Please suggest any work around for this.

regards,
Baaje
Waseem
Top achievements
Rank 1
 answered on 19 Apr 2013
3 answers
509 views
Hi,

I have a checkbox and a Rad panel bar. When the user checks or unchecks the checkbox, the panel bar must expand or collapse. The onclick event of checkbox is Test()

<script>
function Test()
{
    //Code to expand or collpase the rad panel//----> what should i add here?
}
</script>

Regards
Saravanan
Waseem
Top achievements
Rank 1
 answered on 19 Apr 2013
6 answers
895 views
I have a relatively simple page with a radgrid inserted in a table row. I have set the radgrid width to 100%, the table is set to 100% and body is set to max-width=925px.

When the radgrid renders it fills the table width, however, if the window is subsequently resized to a narrower width, the radgrid stays at the width it was originally displayed at. If I make the window larger, the grid widens to the new width and will not go smaller again.

I have narrowed down the problem to the column headers. I am displaying only one column, and the column header is sized with an inline width value. When the grid grows, the column header also grows because the inline value is updated, presumably through some client-side javascript. However, when the grid narrows, the inline width value never changes.

What happens is that the grid will always grow, but will never shrink.

This problem always happens when the vertical scroll bars are visible. It is intermittent when the scroll bars are not visible.

Adjusting this value through javascript does no good. As soon as the focus is placed on a different item, the headers resize once again.

ideas? workarounds?

I am at a loss for what to do.
Keith
Top achievements
Rank 2
 answered on 19 Apr 2013
8 answers
145 views
I have a grid connected to a datasource and one the the field is a textbox that let the user change values. I want to keep the new values thrue my pagging but everytime I do the bind or rebind the changes do not shows.

thanks in advanced.

Ricardo.
Elliott
Top achievements
Rank 2
 answered on 19 Apr 2013
4 answers
161 views
Hello,
I get an error when I choose an item of a drop down list, that rebinds a grid. With some items of the dropdownlist works fine but with others stop working and I get this error on the browser console:
  1. Uncaught TypeError: Cannot read property 'value' of null
    1. Telerik.Web.UI.RadInputExtender.updateValueTelerik.Web.UI.WebResource.axd:5345
    2. Telerik.Web.UI.RadInputExtender._beforeSubmitTelerik.Web.UI.WebResource.axd:5431
    3. Telerik.Web.UI.RadTextBoxExtender._beforeSubmitTelerik.Web.UI.WebResource.axd:5538
    4. Telerik.Web.UI.RadInputManager._beforeSubmitTelerik.Web.UI.WebResource.axd:5483
    5. Telerik.Web.UI.RadInputManager._onSubmitTelerik.Web.UI.WebResource.axd:5479
    6. Telerik.Web.UI.RadInputManager.WebForm_OnSubmitTelerik.Web.UI.WebResource.axd:5494
    7. (anonymous function)Products_OV.aspx:10
    8. Sys.WebForms.PageRequestManager._onFormSubmitTelerik.Web.UI.WebResource.axd:15
    9. Sys.WebForms.PageRequestManager._doPostBackTelerik.Web.UI.WebResource.axd:15
    10. (anonymous function):1

If I disable AJAX, it works fine, but with AJAX problems happens. I also attach the error that I get from the console.


I also put here part of my code:

This is the index change function:
protected void ddlCategory_SelectedIndexChanged(object sender, EventArgs e)
   {
       ProductRepository productRP = new ProductRepository();
       Filters filters = new Filters();
 
       filters.Add(new Filter("Supplier.Id", SupplierId));
       if (ddlCategory.SelectedValue != "All")
           filters.Add(new Filter("Product.ProductCategory.Id", ddlCategory.SelectedValue.ToString()));
 
       IList<SupplierProduct> supplierProducts = productRP.LoadList<SupplierProduct>(filters);
 
       RadGrid1.DataSource = supplierProducts;
 
      // System.Threading.Thread.Sleep(3000);
       RadGrid1.Rebind();
   }


NeedDataSource:
protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
  {
 
      ProductRepository productRP = new ProductRepository();
      Filters filters = new Filters();
 
      filters.Add(new Filter("Supplier.Id", SupplierId));
      if(ddlCategory.SelectedValue != "All")
      filters.Add(new Filter("Product.ProductCategory.Id", ddlCategory.SelectedValue.ToString()));
     // filters.Add(new Filter("Active","true"));
     // filters.Add(new Filter("Product.Active", "true"));
      IList<SupplierProduct> supProducts = productRP.LoadList<SupplierProduct>(filters);
 
      RadGrid1.DataSource = supProducts;
  }


Page Load:
protected void Page_Load(object sender, EventArgs e)
    {
         
        SupplierId = Session["SupplierId"].ToString();
        if (String.IsNullOrEmpty(SupplierId))
        {
            Response.Redirect("login.aspx");
        }
 
        if (!Page.IsPostBack){
        ProductRepository productRP = new ProductRepository();
        Filters filters = new Filters();
        filters.Add(new Filter("Supplier.Id", SupplierId));
 
        IList<SupplierProductCategory> SupplierProductCategories = productRP.LoadList<SupplierProductCategory>(filters, "ProductCategory.Description");
 
        IList<ProductCategory> ProductCategories = new List<ProductCategory>();
        foreach (SupplierProductCategory supplierProductCategory in SupplierProductCategories)
        {
            ProductCategories.Add(supplierProductCategory.ProductCategory);
        }
      
        ddlCategory.DataSource = ProductCategories;
        ddlCategory.DataBind();
        }
    }


AjaxSettings:

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest" 
    ClientEvents-OnRequestStart="mngRequestStarted"
    meta:resourcekey="RadAjaxManager1Resource1">
<AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadInputManager1" />
                    <telerik:AjaxUpdatedControl ControlID="Label1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                    <telerik:AjaxUpdatedControl ControlID="ddlCategory" />
                    <telerik:AjaxUpdatedControl ControlID="ddlLanguage" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadInputManager1" />
                    <telerik:AjaxUpdatedControl ControlID="Label1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                    <telerik:AjaxUpdatedControl ControlID="ddlCategory" />
                    <telerik:AjaxUpdatedControl ControlID="ddlLanguage" />
                </UpdatedControls>
            </telerik:AjaxSetting>
 
           <%-- ----excel export----------%>
            <telerik:AjaxSetting AjaxControlID="mngBtnExcel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        <telerik:AjaxUpdatedControl ControlID="mngBtnExcel" />
                    </UpdatedControls>
            </telerik:AjaxSetting>
 
            <%-- ----context menu----------%>
            <telerik:AjaxSetting AjaxControlID="RadMenu1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
 
                <telerik:AjaxSetting AjaxControlID="ddlCategory">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="ddlCategory" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
...

Any idea of why this is happening?
I would appreciate any idea for fixing this problem.

Thank you very much,
Jon


Harini
Top achievements
Rank 1
 answered on 19 Apr 2013
1 answer
177 views
I cannot seem to find out where this is set.
I am setting some other properties at runtime like such (VB):

 RadChart1.PlotArea.XAxis.Appearance.MajorTick.Length = 4
                RadChart1.PlotArea.XAxis.Appearance.MajorTick.Color = Color.DarkGreen
                RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45
                              RadChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Calendar Quarter"

Where can I set the font size of the label?

Thanks
Ford
Petar Kirov
Telerik team
 answered on 19 Apr 2013
1 answer
112 views
How can I do to put above the bar(series) some information, like a count or sum from my query?

I need sum two values and to put above the bar. I use StackedBar.

How can I do to change color the label of my series?
(
chartSeries1.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Arial", 10, System.Drawing.FontStyle.Bold
);) Style and family ok, but color, how can I do?
Petar Kirov
Telerik team
 answered on 19 Apr 2013
0 answers
57 views
 test tes test test
Mohammad
Top achievements
Rank 1
 asked on 19 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?