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

Filter(Template) Alignment

2 Answers 237 Views
Grid
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 1
J asked on 14 Dec 2012, 04:37 PM
Is there a way to get my FilterTemplates aligned with my header (and items)? I've aligned my headers and items left, but the filter is still stuck in the middle. Snippet, details omitted:

<MasterTableView TableLayout="Fixed">
  <Columns>
    <telerik:GridBoundColumn UniqueName=HeaderText="User Name">
      <HeaderStyle HorizontalAlign="Left"/>
      <ItemStyle HorizontalAlign="Left"/>
      <FilterTemplate>
        <telerik:RadTextBox/>
          <telerik:RadScriptBlock >
            <script type="text/javascript">
                  // filter code
            </script>
          </telerik:RadScriptBlock>
      </FilterTemplate>
    </telerik:GridBoundColumn>
  </Columns>
</MasterTableView>

Edit for clarity: Is there a way to do it declaratively?

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 16 Dec 2012, 06:19 AM
Hello,

<FilterTemplate>
                           <div style="width: 100%; text-align: left;">
                               <telerik:RadTextBox ID="txt1" runat="server" />
                           </div>
                       </FilterTemplate>
OR
<FilterTemplate>
                            <div style="width: 100%; float:left;">
                                <telerik:RadTextBox ID="txt1" runat="server" />
                            </div>
                        </FilterTemplate>
OR
<style type="text/css">
       .rgFilterRow td
       {
           text-align: left;
       }
   </style>


Thanks,
Jayesh Goyani
0
J
Top achievements
Rank 1
answered on 17 Dec 2012, 02:58 PM
D'oh. Why didn't I think of that? Thanks, Jayesh.
Tags
Grid
Asked by
J
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
J
Top achievements
Rank 1
Share this question
or