This is a migrated thread and some comments may be shown as answers.

[Solved] Some Queries about Grid

7 Answers 234 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kapil Koli
Top achievements
Rank 1
Kapil Koli asked on 17 Feb 2010, 02:03 PM
Hi,
I have some queries regarding telerik grid as follows:
1.    How to set the height of header row?
2.    How to set the height of overall grid?
3.    How to apply scroll bar "on demand"? If the contents of grid goes beyond the standard height, the vertical scrollbar should appear, otherwise it would be always kept hidden(not disabled).
4.    How to scroll the header row on horizontal scrollbar movement? By default, only contents of grid are being scrolled on horizontal scrolling.
5.    I have used .filterable() but the filters in header row are not showing any provision for filtering. How to achieve it?

Appreciating your help.

Thanks,
Kapil

7 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 17 Feb 2010, 04:32 PM
Hello Kapil Koli,

  1. By using CSS 
    div.t-grid .t-header
    {
           line-height: 20px;
    }
  2. You can use the HtmlAttributes method:
    Grid().HtmlAttributes( new { style="height:400px"})
    To set the scrollable area height use the Height property of the scrolling settings:
    Grid().Scrollable(scrolling => scrolling.Height(400))
  3. Unfortunately this is not possible
  4. Make sure you have a ScriptRegistrar component defined in your master page.
  5. The same as 4. A ScriptRegistrar component is required for all client-side features of the grid.
Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kapil Koli
Top achievements
Rank 1
answered on 18 Feb 2010, 05:13 AM
Thanks for your quick response.
Can you explain the answer for query 4 in more details.

Appreciating your response.

Thanks,
Kapil
0
Accepted
Atanas Korchev
Telerik team
answered on 18 Feb 2010, 07:55 AM
Hi Kapil Koli,

Every Telerik UI component requires a ScriptRegistrar component to be defined in your page. You can find more info in this help topic. Check section #4.

All the best,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kapil Koli
Top achievements
Rank 1
answered on 18 Feb 2010, 09:11 AM
Thank you again Atanas for the quick reply.
Now one last thing, I want to ask is about setting the header row's height.
You have said to add following to CSS
div.t-grid .t-header
{
       line-height: 20px;
}
But where should i add it - to common.css or to the theme's css.

Thanks,
Kapil
0
Accepted
Atanas Korchev
Telerik team
answered on 18 Feb 2010, 09:14 AM
Hello Kapil Koli,

It does not matter as long as this rule is added to some CSS file loaded in your page.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kapil Koli
Top achievements
Rank 1
answered on 18 Feb 2010, 09:34 AM
Thanks a lot.
0
Vincent Girard
Top achievements
Rank 1
answered on 19 Feb 2010, 06:24 PM
As for number 2, I think it's also good to say that if you want the scrollable zone to be inside the grid you should set the height to your grid height - 90.

As an exemple :  .HtmlAttributes(new { style="height:600px;"})
                     .Scrollable(scrolling => scrolling.Height(510))

I might be wrong, maybe it's an other style sheet that set some padding to my grid row so, sorry if I am.
Tags
Grid
Asked by
Kapil Koli
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Kapil Koli
Top achievements
Rank 1
Vincent Girard
Top achievements
Rank 1
Share this question
or