Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
703 views
This is the first I have run into this.  Is there a way to turn the behavior off?  Grid is populated with needdatasource event.

If a column name in my datatable is "SuperMan", the column header in the grid is displayed as "Super Man" (note the space in front of "M").  If the column name in my database is  "superman" then the column header in the grid is "superman".  Is there some option where I can turn off renaming my column headers?  We capitalize for readability, but need the names to stay in tact so users can do excel lookups.

This particular page returns a variety of different datatables with different formats, most approx 50 columns wide so my preference is to not build lots of pages with predefined column headers to work around this.

Thanks!

-Joel
<telerik:RadGrid ID="rgExport" runat="server" Skin="WebBlue" AllowPaging="true" PageSize="20">
</telerik:RadGrid>
Marin
Telerik team
 answered on 23 Feb 2011
1 answer
288 views
Hi,
how to make a column value/item clickable and when column value/item clicked open up a new ajax panel in same web page?

Scanario:
  1. A radgrid will be loaded with data and visualized in AjaxPanel1¨
  2. Then user clicks a column value/item (ID) for having more information about this row item/value
  3. Then more detailed information about clicked row item/value should be loaded and visualized in AjaxPanel2

All tips/advices for a solution (code) are highly appreciated. I will load data in step 2 and 3 with sql queries. Links to demos and examples are also highly appreciated.

I would prefer to trigger an event when click the column value/item and have the instructions (=code) for action in code behind file. I will also have the column value/item as a link button because in some cases I want two different columns in radgrid that trigger different actions.

Thx in advance! 

Princy
Top achievements
Rank 2
 answered on 23 Feb 2011
3 answers
110 views
Hi,

In Telerik Rad Scheduler, when a users wants to schedule an appointment, he is allowed to do only once. He has to be disabled from entering again. He can re-schedule again after deleting the first one.
I used the code :
function OnClientAppointmentInserting(sender, agrs) {
               if (sender.get_appointments().get_count() >= 1) 
             {
           agrs.set_cancel(true);
           alert("Sorry..!Only One appointment is allowed. To Re-Schedule, delete ur first appointment and Schedule again");
       }
   }
But, if another user logs into the scheduler, he too is unable to add if there is one schedule already present and his clicks are disabled.
I want this method to be applied separately for each user. It means one user one click on scheduler. Another user one clcik on scheduler irrespective of other schedules present.


Veronica
Telerik team
 answered on 23 Feb 2011
3 answers
169 views
hello everybody

i read this advanced topic of making Multiple Chart Types in a Single Chart

and in my situation i combine pie chart and line chart and i need to position pie chart on a specific location on the chart

how can i do that ??
Evgenia
Telerik team
 answered on 23 Feb 2011
1 answer
103 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
327 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
283 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
100 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
165 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
196 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?