Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Hi,
I have a line graph and i want a grid behind it, but i don't know how to get to work, i have got the y axis to show lines going across but not the x axis.

Also is there any way of fixing what colours the lines are, so for example Company B is always red and Company A is always blue?

Thanks

Simon
Yavor
Telerik team
 answered on 23 Feb 2011
3 answers
297 views
I am trying to insert a user control into an item template of a radgrid to display data dynamically, but I keep getting an object reference not set to an instance of an object error when it tries to set the property container.

Below is a snippet of where I am using the user control in the radgrid:
<%@ Register Src="PropertyContainer.ascx" TagName="PropertyContainer" TagPrefix="uc1" %>
  
  
<radG:RadGrid ID="employees" OnNeedDataSource="EmployeesGrid_NeedDataSource" runat="server" AutoGenerateColumns="false">
     <Columns>
          <radG:GridTemplateColumn>
              <ItemTemplate>
                  <uc1:PropertyContainer ID="PropertyContainer" runat="server" />
              </ItemTemplate>
          </radG:GridTemplateColumn
      </Columns>

Below is a snippet of the code behind:
protected void Page_Load(object sender, EventArgs e)
{
              
}
  
public void EmployeesGrid_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e)
{
     foreach (Employee emp in Employees)
     {
           PropertyContainer.SetProperties(emp.Properties);
     }
)

The employee's properties are not null, and the fields will not be editable.

Any assistance would be appreciated.  Thanks.

Joe
Tsvetina
Telerik team
 answered on 23 Feb 2011
12 answers
217 views
Hi

I know you don't support the ipad, but i am trying to make a web application that is ipad browser friendly. The tooltip control is perfect for creating small menu  which when the user clicks (rather than hovers) produces a menu very similar to the built in control of the ipad.
It works perfectly in all areas except one.

At 100% zoom levels on the ipad when you tap/click the parent control the tooltip appears correctly positioned. However if you zoom in the browser  above 100% then the tooltip appears far away from where you have tapped / clicked
I have the positioning set to  relative to the mouse pointer.

I know that you don't support the ipad, but its clear that this touch screen browsing is going to be a big part of the future and it would be great if you could look at this small issue in your future realeases as this control works very well ont he ipad other than this.

thanks

Johnathan
Kamen Bundev
Telerik team
 answered on 23 Feb 2011
2 answers
93 views
Hi All

         I am using radgrid inside custom server control.Then am applying Vista Theme using RadSkinManager in my .aspx page(i mean my test page).From the forum post i come to know Vista theme don't have vertical Grid lines.How can i apply css for rad grid vertical grid lines for vista theme inside the custom server control.Any suggestions.It's urgent pls?..


Thank You
Saranya...
saranya
Top achievements
Rank 1
 answered on 23 Feb 2011
3 answers
135 views
I recently upgraded to 1215.

It looks like the combobox now uses single finger scrolling instead of two finger.

Is there a reason the treeview still uses two finger scrolling?

It would be great to choose single or two finger scrolling for controls that overflow.

Thanks

Trav
Kamen Bundev
Telerik team
 answered on 23 Feb 2011
3 answers
177 views
Hi,

First of all this topic is referenced with this topic http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-edit-command-doesnt-work.aspx in a sense of the logic of the application.

So my question is...
I read the documentation and tested the demos, everything is working as expected but when i want to close or cancel the modal pop-up (lets say i don't wanna edit, update or insert anything) the modal pop-up get stuck and cant get to close/hide it.
I intended to handle de oncancel event in the radgrid but nothing, tested if it was a browser issue and in ie8, ff3.6 and chrome-latest still get the same result.
But here is the rare thing m binding with the publiC DataItem object and if i delete this bindings (currently getting "binded" in the page_load event of the usercontrol) everything just work as always, if a make a bind even just one it get stuck, do i forget to handle and a event?...

Users.aspx
<%@ Page Title="Users | Telerik Trial Testing" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="TelerikTrial.Users" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadComboBox ID="App_List" runat="server" AutoPostBack="true" DataTextField="ApplicationName"
        DataValueField="LoweredApplicationName" OnSelectedIndexChanged="App_List_SelectedIndexChanged">
    </telerik:RadComboBox>
    <br />
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="App_List">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="App_List" />
                    <telerik:AjaxUpdatedControl ControlID="User_List" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="User_List">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="App_List" />
                    <telerik:AjaxUpdatedControl ControlID="User_List" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <telerik:RadGrid ID="User_List" runat="server" AllowPaging="True"
        AutoGenerateColumns="False" GridLines="None"
        Skin="Windows7" OnPageIndexChanged="User_List_PageIndexChanged">
        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
        <MasterTableView EditMode="PopUp" CommandItemDisplay="Top" DataKeyNames="UserName">
            <EditFormSettings UserControlName="CustomEditControlForm.ascx" EditFormType="WebUserControl" InsertCaption="Add new user" CaptionFormatString="Edit User: {0}"
                CaptionDataField="UserName" PopUpSettings-Modal="true" />
            <Columns>
                <telerik:GridEditCommandColumn />
                <telerik:GridClientDeleteColumn />
                <telerik:GridBoundColumn DataField="UserName" ReadOnly="true" />
                <telerik:GridBoundColumn DataField="Email" />
                <telerik:GridBoundColumn DataField="LastLoginDate" ReadOnly="true" />
                <telerik:GridCheckBoxColumn DataField="IsLockedOut" />
            </Columns>
        </MasterTableView>
         <ClientSettings>
            <ClientEvents OnRowDblClick="RowDblClick" />
        </ClientSettings>
    </telerik:RadGrid>
</asp:Content>


CustomEditControlForm.ascx
<%@ Control Language="c#" Inherits="TelerikTrial.CustomEditControlForm"
    CodeFile="CustomEditControlForm.ascx.cs" %>
 
<asp:TextBox ID="TextBox1" runat="server">
</asp:TextBox>

CustomEditControlForm.ascx.cs
using System;
using System.Data;
using System.Collections;
using System.Web.UI;
using Telerik.Web.UI;
 
namespace TelerikTrial.CustomEditControlForm
{
    public partial class CustomEditControlForm : System.Web.UI.UserControl
    {
        private object _dataItem = null;
 
        public object DataItem
        {
            get
            {
                return this._dataItem;
            }
            set
            {
                this._dataItem = value;
            }
        }
         
        protected void Page_Load(object sender, System.EventArgs e)
        {
            // With just this binding the modal get stucks and the browser can't hide it...
            TextBox1.Text = DataBinder.Eval( This.Parent.NamingContainer, "DataItem.UserName").ToString();
        }
    }
}

Best Regards
Princy
Top achievements
Rank 2
 answered on 23 Feb 2011
4 answers
101 views
Hi,

I have just upgraded our application from the old Classic controls to ASP.NET Ajax and the behavior of all of our dropdowns changed as follows.  Whatever item is selected, when you click on the arrow to open the dropdown, the list automatically scrolls so that the selected item is at the very top.  The old version did not do that.  It's mildly annoying and our users may not be willing to put up with that.  Is there a setting I can change so that this doesn't happen?

Thanks,
Olga
Olga
Top achievements
Rank 1
 answered on 23 Feb 2011
10 answers
137 views
Such as in the examples in your help files: http://www.telerik.com/help/aspnet-ajax/images/DesignMode.png
msigman
Top achievements
Rank 2
 answered on 23 Feb 2011
2 answers
141 views
Hi,

I am seeing 2 loading panels when I have only specified one loading panel for one AjaxSetting: screenshot

The mark-up is:

<telerik:RadAjaxManagerProxy ID="DaveRadAjaxManagerProxy" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="DaveRadTabStrip">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="DaveRadTabStrip" LoadingPanelID="DarRadAjaxLoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<telerik:RadAjaxLoadingPanel ID="DarRadAjaxLoadingPanel"
                             Transparency="20" runat="server" Width="200px" Height="100px" BackgroundPosition="Right"
                             IsSticky="true" BackColor="Green">
    <img src='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadAjaxLoadingPanel), "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' alt="Loading panel pic" />
</telerik:RadAjaxLoadingPanel>

The RadAjaxManager on the master page is simply:

<telerik:RadAjaxManager ID="DarRadAjaxManager" runat="server">               
</telerik:RadAjaxManager>

Does anyone know why I have more than one displaying?

Cheers
David
Top achievements
Rank 1
 answered on 23 Feb 2011
1 answer
57 views
I just added the Binary image column to my grid and all items are placed at the bottom of the row, I tried setting the Item-VerticalAlign to top but it didn't work. I am attaching a screen shot so you can see what I mean.

Thanks
Daniel
Telerik team
 answered on 22 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
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
Iron
Iron
Sergii
Top achievements
Rank 1
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?