Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views

Hello,

I am using a RadGrid in which I am using the FrozenColumnsCount property to freeze the first column, and it works well.

Now, I am showing and hidding some columns, by changing the Display property of the GridBoundColumn in my PreRender method, and it works well too.

I have 18 columns in the RadGrid, so when I horizontally scroll to see the last columns, I always have some columns automatically hidding "behind" the first column which is frozen.

The problem is that sometimes, when I display some columns in the RadGrid and hide the others, if I use the horizontal scrolling, I find that suddenly the second column of the RadGrid is being displayed when it unveils from "behind" the frozen column, even if I set the Display property of this column to false.

I would like to know which event is being fired when I use the horizontal scroll and could let me know which column is going to be unveiled, to let me hide the unwanted columns ?

Thank you for any help or advice.

[For example, let say I have 5 columns in the Grid. The column N° 1 is frozen, I set Display property of columns 2, 3, 4 to false, so the RadGrid only shows columns 1 (frozen) and 5.
If I use horizontal scroll, I see column 2 unveilling from "behind" column 1 when I thought that it was going to stay hidden as its Display property is set to false.]

Eyup
Telerik team
 answered on 14 Jan 2013
3 answers
155 views
I have radgrid being used in sharepoint webpart.   protected void RadGridCommunityList_Init(object sender, EventArgs e)i have customized the list of filter to limited so that will be easy for users.
now i need help localizing the radgrid.
1. Filter list how to display them in the local language
this is the code for filter menu
protected void RadGridCommunityList_Init(object sender, EventArgs e)
      {
 
          GridFilterMenu menu = RadGridCommunityList.FilterMenu;
          int i = 0;
          while (i < menu.Items.Count)
          {
              if (menu.Items[i].Text == "NoFilter" || menu.Items[i].Text == "Contains" || menu.Items[i].Text == "EqualTo" || menu.Items[i].Text == "GreaterThan" || menu.Items[i].Text == "LessThan" || menu.Items[i].Text == "StartsWith")
              {
                  i++;
              }
              else
              {
                  menu.Items.RemoveAt(i);
              }
          }
 
      }

2. Tool tips for everything in the Rad grid. how to localize them where should i write the code and which variable and how please advise....       
Shinu
Top achievements
Rank 2
 answered on 14 Jan 2013
1 answer
84 views
hi,

hope doing well, i want to disable grid controls when radgrid is in editable mode based on combobox selection, combobox control is not in the radgrid i have tried javascript to do that but  no luck i was unable to find controls in the radgrid, can any one tell me server side and client side both.

Thanks
Regards
Shinu
Top achievements
Rank 2
 answered on 14 Jan 2013
9 answers
400 views

Can i do Intended-vertical-left align tabs like i draw in the attached file..? help required
Siroos
Top achievements
Rank 1
 answered on 14 Jan 2013
1 answer
569 views
HI,
I have an aspx page in which i have added a div and inside the div i have the radgrid.

When the user adds new item, the page height is getting increased. How to add a vertical scrollbar in the grid, so that grid height does not affect the page height.
Currently the UI is as below:

<div class="my_Table" style="overflow:auto;">
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="radgrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="radgrid1" LoadingPanelID="RadAjaxLoadingPanel1" />   
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
                Width="75px" Transparency="25">
                <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                    style="border: 0;" /></telerik:RadAjaxLoadingPanel>
              
            <telerik:RadGrid ID="radgrid1" runat="server" ShowStatusBar="True" ShowFooter="True"
                OnItemCommand="radgrid1_ItemCommand" OnDeleteCommand="radgrid1_DeleteCommand"
                OnInsertCommand="radgrid1_InsertCommand" OnUpdateCommand="radgrid1_UpdateCommand"
                OnNeedDataSource="radgrid1_NeedDataSource" OnItemDataBound="radgrid1_ItemDataBound" OnPreRender="radgrid1_PreRender"
                CellSpacing="0" GridLines="None">
                <MasterTableView DataKeyNames="ProductNumber" AutoGenerateColumns="false" EditMode="InPlace" CommandItemSettings-ShowRefreshButton="false"
                    CommandItemDisplay="Bottom" CommandItemSettings-AddNewRecordText="Add New Order">
                    <Columns>
     </Columns>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true" >
                </ClientSettings>
            </telerik:RadGrid>
        </div>

How to fix this?
Thanks
Princy
Top achievements
Rank 2
 answered on 14 Jan 2013
4 answers
334 views
Hello, I'm new to RadControls, I'm trying to see if there's a way to use CSS to remove the close icon "X" from the title bar of the edit form pop-up window?  I also want to position the pop-up edit form in the center of the screen below the grid and prevent users from moving it around.  Are there any built-in options within RadControls that I can use to accomplish these stylings?  Thanks in advance.

UPDATE: Forgot to mention that I'm using a custom edit form template.
Shinu
Top achievements
Rank 2
 answered on 14 Jan 2013
1 answer
127 views
Hi,

The Telerik's grid is incorporated in our user control (derived from UserControl). I had a requirement to allow context menu to show up on grid's row and we use RadContextMenu in conjunction with ContextMenuControlTarget. Actually, I have to use ContextMenuControlTarget. I have a simple test project where everything works fine with RadContextMenu only. But, in our main complex project I have to use ContextMenuControlTarget to show grid's context menu. If I don't use it the context menu doesn't appear. I don't know why.

So, I'm not sure when to use RadContextMenu only and when with ContextMenuControlTarget.

There's another issue. When I use ContextMenuControlTarget the context menu appears not only when I select grid's row but in header as well. We don't need the context menu to appear in header.

Here's the code I use:

public class GridContextMenu : RadContextMenu
{
    ...
}

protected override void OnInit(EventArgs e)
{
  base.OnInit(e);

  var contextMenu =
new Parus.Controls.GridContextMenu();

  var target =
new ContextMenuControlTarget();
  target.ControlID = this.GridControl.ID;

  contextMenu.ID =
this.GridControl.ID + "_RadMenu";

  CreateContextItems(contextMenu.Items,
this.Frame.ViewFrameData.ActionItems);

  contextMenu.LinkedControlClientId = ServerRequest.ClientID;
  contextMenu.OnClientItemClicked = "GridContextMenu_ActionsHandler";

  contextMenu.Targets.Add(target);

  this
.PostbackPanel.ContentTemplateContainer.Controls.Add(contextMenu);

  ...
}

My question is - how can I get rid of ContextMenuControlTarget or if it's not possible how to disallow it to appear in grid's header?
Goran
Top achievements
Rank 1
 answered on 14 Jan 2013
11 answers
192 views
We have a RadTabStrip that uses NavigateUrl on the tabs. With Q2, it worked fine on desktop browsers and on the iPad/iPhone. Now that we have upgraded to Q3, touching the tabs on the iPad/iPhone no longer works. It does not navigate to the URL. We reverted to Q2, and it works again.

Oddly enough, while we were debuggiing with Q3, if we put something in the OnClientTabSelected event, such as

OnClientTabSelected = "alert('blah');"

, then the click event started working on the iPad/iPhone again. Of course, it throws a JavaScript error in IE8, so it's not a viable workaround.
Entegral
Top achievements
Rank 1
 answered on 13 Jan 2013
0 answers
85 views
can any one write a sample code for me, raking tool implement with cookie 
Michael
Top achievements
Rank 1
 asked on 13 Jan 2013
5 answers
140 views
I have a frameset page containing 2 frames. Within each frame is a page containing a RadGrid. Is there a way to drag / drop items from one grid to another ACROSS frames? I can already drag / drop within a page between 2 grids without any issues. But I need to be able to do it across the frames. Any help is appreciated.

Sara
Mark Sandford
Top achievements
Rank 1
 answered on 12 Jan 2013
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?