Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
341 views
Hi sir,
          We are using Telerik RadGrid. We have  remove background image in header of the radgrid sir....

 We give the corresponding  Css  style  below sir....

div.RadGrid_Default .rgHeader , div.RadGrid_Default .rgHeader a
        {
           font-family:Trebuchet MS;
           font-size:14px;
           color:#575757;
           font-style:normal;
           background-image:none;
           background-color: #EEEEEE;        
        }

The above Css style which removed the background-image in the RadGrid header  while running in  Firefox browser and not work in Internet Explorer Browser sir....

 Our need is how to remove background-image in  RadGrid  header running in Internet Explorer Browser.....

we are waiting for your valuable answer sir....

Kindly reply soon sir....
Pavlina
Telerik team
 answered on 19 Sep 2011
3 answers
187 views
in RadNumericTextBox onkeypress in server side i have some function done,
After enter that RadNumericTextBox i have assign some fields in another textbox


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 19 Sep 2011
6 answers
243 views
(I am using version 2011.1.519.40; I will try to get the Q2 release downloaded if that will allow me to get what I need. I see the new LoadOnDemand functionality in the documentation, which would definitely help us.)

I have the TreeList loading fine from a datatable.

I need to do just a few things which I expected were straightforward...

(1) When an item is selected, I need to get two of the bound data items (one of which displays and one of which doesn't--the one that doesn't is the "DataKeyNames" item). I then need to do server side actions depending on what I determine from those two data items.
         (a) I can't find any way to retrieve those data items (astonishingly to me).
         (b) There doesn't appear to be a server side event for Selected. So, what do you recommend for hitting a server method from a client-side event in this context?

Can you (I mean, Telerik support) or anyone provide a code snippet which would accomplish this?

(2) When an item is double-clicked, I need to get "DataKeyNames" item, and depending on what I determine from it, possibly expand the node.
         (a) I can't find any way to retrieve this data item (astonishingly to me).
         (b) There doesn't appear to be a server side event for Double-Click. So, what do you recommend for hitting a server method from a client-side event in this context?

Can you/anyone provide a code snippet which would accomplish this?

(3) I don't want to add/edit/delete data directly from the list. Can I add or delete programatically, rather than reloading the whole datatable and requerying? Is there a sample showing something like this?

Actually, I'm willing/just as happy to do any of this server-side, client-side or server-side, whichever...

Thanks.

Tsvetina
Telerik team
 answered on 19 Sep 2011
5 answers
249 views
Hello,
I am using a paging in Grid, it is default paging combo box to 10,20,50

How can I change to fill it with 50,100,200?

thanks,
Mohamed Taraman
dexter
Top achievements
Rank 1
 answered on 19 Sep 2011
2 answers
64 views
Hi,

I got an extremely similar example with this one: 
http://www.telerik.com/help/aspnet-ajax/grid-virtual-scrolling.html


As soon as the first request for another page happens the virtual scrollbar is lost and replaced with a regular one (basically it switches to the normal paging mechanism). Can you tell me what to do?

Thanks,
Cristian 
Mira
Telerik team
 answered on 19 Sep 2011
9 answers
238 views
Hello!
I have problem with function javascript  hideColumn
Function don't works in brower safari in IPAD
despite the fact that function works in safari in PC

Regards
Sveta

Svetlana
Top achievements
Rank 1
 answered on 19 Sep 2011
3 answers
140 views
Hi. 

I have a RadGrid with the following settings:

<telerik:RadGrid ID="genericGrid" runat="server" AutoGenerateColumns="false" AllowAutomaticDeletes="false"
    AllowSorting="true" AllowAutomaticInserts="false" AllowAutomaticUpdates="true" OnDataBound="DataBoundGenericGrid"
    AllowCustomPaging="true" PageSize="100" AllowPaging="True" AutoGenerateEditColumn="true"
    AllowFilteringByColumn="true" AllowMultiRowSelection="true" OnUpdateCommand="ItemUpdatedEvent"
    OnCancelCommand="ItemCanceledHandler" OnInsertCommand="ItemInsertedEvent" OnEditCommand="ItemEditHandler"
    OnItemDataBound="ItemDataBoundEvent" OnNeedDataSource="GridNeedDataSource" Style="height: 600;
    width: 100%">
    <ClientSettings AllowDragToGroup="true" AllowGroupExpandCollapse="true">
        <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        <ClientEvents OnRowDblClick="RowDblClick" />
    </ClientSettings>
    <MasterTableView AutoGenerateColumns="true" AllowAutomaticDeletes="false" AllowFilteringByColumn="true"
        AllowAutomaticInserts="false" AllowAutomaticUpdates="true" GridLines="Vertical"
        TableLayout="Fixed" GroupLoadMode="Client" EditMode="InPlace" />
</telerik:RadGrid>
When we autogenerate columns from a DataTable everything works as expected:

genericGrid.DataSource = table.DefaultView;

http://dl.dropbox.com/u/4552022/workinggrid.png

But when i try to add the columns in code:

foreach (var gridColumn in _gridColumns)
            {
                genericGrid.Columns.Add(gridColumn);
            }
            genericGrid.DataSource = table.DefaultView;

I get this:

http://dl.dropbox.com/u/4552022/notworkinggrid.png

And also, doubleklicking a row is supposed to give editmode:
http://dl.dropbox.com/u/4552022/edit.png

But when adding columns manually it gives this error:
http://dl.dropbox.com/u/4552022/error.png

When manually creating columns, they are created like this: 

var dropDownColumn = new GridDateTimeColumn()
                         {
                             DataField = tableDefDto.ColumnId
                         };


The reason for doing this manually, is to enable the possiblity for dropdownColumns.

Any ideas?

Radoslav
Telerik team
 answered on 19 Sep 2011
3 answers
158 views
Hi,

I have a datetime column within my grid. I would like to set the value within this column to be empty anytime that the
datetime = 1/1/0001 12:00:00 AM

The row will still retain all other values. please let me know of anyways to do this.

thanks,
Minh Bui
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Sep 2011
1 answer
149 views
Can someone point me the right direction to implement a show a  Radwindow without refreshing the parent page in jquery and once the Radwindow is loaded, I need to make ajax calls from the Radwindow.

Thank you
Marin Bratanov
Telerik team
 answered on 19 Sep 2011
2 answers
88 views

Hello,

I have the following code which declares a radwindow in BasePage class, its works fine in aspx pages, but I can't use it in User Controls and Master Pages:

string BaseRadWindowID
        {
            get
            {
                return "UniqueBaseRadWindowID";
            }
        }
 
        RadWindow window = new RadWindow();// Create a enw Window
 
        RadWindow BaseRadWindow
        {
            get
            {
                return window;
            }
        }
 
        protected override void OnInit(EventArgs e)
        {
            this.window = new RadWindow();// Create a enw Window
            window.ID = BaseRadWindowID;// the id of the RadWindow;
            this.Form.Controls.Add(window);// Add it to the page
            base.OnInit(e);
        }
 
        public void ShowBaseRadWindow(bool visibleOnPageLoad, string navigationUrlQueryString)
        {
            BaseRadWindow.Width = Unit.Pixel(450);
            BaseRadWindow.Height = Unit.Pixel(150);
            BaseRadWindow.VisibleOnPageLoad = true;
            BaseRadWindow.VisibleStatusbar = true;
            BaseRadWindow.ReloadOnShow = true;
            BaseRadWindow.Modal = true;
            BaseRadWindow.Behaviors = WindowBehaviors.Close;
            BaseRadWindow.Style.Add("z-index", "10000");
            BaseRadWindow.NavigateUrl = "~/Pages/Messages/Default.aspx" + navigationUrlQueryString;
            BaseRadWindow.VisibleOnPageLoad = visibleOnPageLoad;
        }

I call the window in the aspx pages in this way:

this.ShowBaseRadWindow(true, string.Empty);

Please, I need your help in order to call the window and show it in User Controls and Master Pages.
It is very appreciated to send me the modified code.

Regards,
Bader

Bader
Top achievements
Rank 1
 answered on 18 Sep 2011
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?