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

Edit Alignment problem

3 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Myriam
Top achievements
Rank 1
Myriam asked on 30 Jan 2009, 08:44 PM
Hello
I have a radgrid where I can insert in it.
I want my edit form align to the left so I put this in my masterTableView

 

EditFormSettings-FormMainTableStyle-HorizontalAlign=Left
here is what it gives me.

 

 

http://img98.imageshack.us/my.php?image=sanstitre4lk8.png
how can I align the textbox to the left and also their labels?
Thanks in advance once again

 

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 02 Feb 2009, 05:32 AM
Hello Myriam,

Try setting the FormTableItemStyle to Left as shown below:
aspx:
 <EditFormSettings>           
      <FormTableItemStyle HorizontalAlign="Left" />             
 </EditFormSettings> 

Thanks
Princy.
0
Myriam
Top achievements
Rank 1
answered on 02 Feb 2009, 01:52 PM
Hello Princy
Thanks for your answer
Here is what it looks like..
http://img266.imageshack.us/my.php?image=alignementfo7.png

why?

Here is my code

 <telerik:RadGrid   
                        ID="RadGrid_Entreprise"   
                        runat="server" 
                        DataSourceID="SQLDSEntreprise" 
                        autogeneratecolumns="False" 
                        Skin="Office2007"   
                        GridLines="None" 
                        AllowAutomaticInserts="True"   
                        AllowAutomaticUpdates="True"   
                        AllowAutomaticDeletes="True" 
                        ClientSettings-Scrolling-AllowScroll="true" 
                        CommandItemSettings-AddNewRecordText="Ajouter une nouvelle entreprise" 
                        width="100%" 
                         Height="100%" 
                        AllowFilteringByColumn=true 
                        AllowSorting=true>  
                  
                      
                   
                     <PagerStyle   
                         NextPageText="Suivant" PrevPageText="Précédent" Mode="NextPrevAndNumeric"   
                         NextPagesToolTip="Pages suivante"   
                         NextPageToolTip="Page suivante"   
                         PrevPagesToolTip="Pages précédente"   
                         PrevPageToolTip="Page précédente"/>  
                   
                     <MasterTableView   
                         Name="MTVEntreprise" 
                         EditMode="EditForms"   
                         DataSourceID="SqlDSEntreprise" 
                         NoMasterRecordsText="Il n'y a aucune entreprise." 
                         DataKeyNames="NO_ENTREPRISE" 
                         CommandItemDisplay="bottom"   
                         InsertItemDisplay="Bottom" 
                         EditFormSettings-EditColumn-CancelText="Annuler"   
                         EditFormSettings-EditColumn-EditText="Modifier" 
                         EditFormSettings-EditColumn-InsertText="Ajouter"   
                         EditFormSettings-EditColumn-UpdateText="Mise à jour" 
                         CommandItemSettings-AddNewRecordText="Ajouter une entreprise"   
                         CommandItemSettings-RefreshText="Rafraichir" 
                         EditFormSettings-FormMainTableStyle-HorizontalAlign=Left 
                           EditFormSettings-FormTableItemStyle-HorizontalAlign=Left>      
                          <EditFormSettings>              
      <FormTableItemStyle HorizontalAlign="Left" />                
 </EditFormSettings>    
 
                         <Columns> 
                                       
                            <telerik:GridBoundColumn   
                                SortExpression="NO_ENTREPRISE"   
                                HeaderText="NO_ENTREPRISE"   
                                DataField="NO_ENTREPRISE"   
                                UniqueName="NO_ENTREPRISE"   
                                visible="false" 
                                readonly="true">  
                            </telerik:GridBoundColumn> 
                                          
                            <telerik:GridEditCommandColumn   
                                ButtonType="ImageButton"   
                                UniqueName="EditCommandColumn">  
                                  
                            </telerik:GridEditCommandColumn> 
 
                            <telerik:GridButtonColumn   
                                ConfirmText="Supprimer cette entreprise?"   
                                ConfirmDialogType="RadWindow"   
                                ConfirmTitle="Supprimer"   
                                ButtonType="ImageButton" 
                                CommandName="Delete"   
                                Text="Supprimer"   
                                UniqueName="DeleteColumnDomaine">  
                               
                            </telerik:GridButtonColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="NOM_ENTREPRISE"   
                                HeaderText="Nom"   
                                DataField="NOM_ENTREPRISE"   
                                UniqueName="NOM_ENTREPRISE" 
                                MaxLength="50">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="DESCR"   
                                HeaderText="Description"   
                                DataField="DESCR"   
                                UniqueName="DESCR" 
                                MaxLength="255">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="ADRESSE"   
                                HeaderText="Adresse"   
                                DataField="ADRESSE"   
                                UniqueName="ADRESSE" 
                                MaxLength="50">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="VILLE"   
                                HeaderText="Ville"   
                                DataField="VILLE"   
                                UniqueName="VILLE" 
                                MaxLength="40">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="CODE_POSTAL"   
                                HeaderText="Code postal"   
                                DataField="CODE_POSTAL"   
                                UniqueName="CODE_POSTAL" 
                                MaxLength="10">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="NO_TEL"   
                                HeaderText="No tel"   
                                DataField="NO_TEL"   
                                UniqueName="NO_TEL" 
                                MaxLength="16">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="NO_FAX"   
                                HeaderText="No fax"   
                                DataField="NO_FAX"   
                                UniqueName="NO_FAX" 
                                MaxLength="16">  
                            </telerik:GridBoundColumn> 
                              
                             <telerik:GridBoundColumn   
                                SortExpression="RESP_COURRIEL"   
                                HeaderText="Courriel du responsable"   
                                DataField="RESP_COURRIEL"   
                                UniqueName="RESP_COURRIEL" 
                                MaxLength="65">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="RESP_NOM"   
                                HeaderText="Nom du responsable"   
                                DataField="RESP_NOM"   
                                UniqueName="RESP_NOM" 
                                MaxLength="40">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="RESP_PRENOM"   
                                HeaderText="Prénom du responsable"   
                                DataField="RESP_PRENOM"   
                                UniqueName="RESP_PRENOM" 
                                MaxLength="25">  
                            </telerik:GridBoundColumn> 
                              
                            
                              
                            <telerik:GridBoundColumn   
                                SortExpression="USAGER"   
                                HeaderText="Usager"   
                                DataField="USAGER"   
                                UniqueName="USAGER" 
                                MaxLength="25">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="MOT_PASSE"   
                                HeaderText="Mot de passe"   
                                DataField="MOT_PASSE"   
                                UniqueName="MOT_PASSE" 
                                MaxLength="20" > 
                                  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn   
                                SortExpression="SITE_WEB"   
                                HeaderText="Site web"   
                                DataField="SITE_WEB"   
                                UniqueName="SITE_WEB" 
                                MaxLength="75">  
                            </telerik:GridBoundColumn> 
                              
                           <telerik:GridCheckBoxColumn  
                                sortexpression="AUTONOME_OFFRE" 
                                HeaderText="Autonome offres" 
                                DataField="AUTONOME_OFFRE" 
                                UniqueName="AUTONOME_OFFRE2">  
                            </telerik:GridCheckBoxColumn> 
                        </Columns> 
                    </MasterTableView> 
                </telerik:RadGrid> 
0
Myriam
Top achievements
Rank 1
answered on 02 Feb 2009, 07:58 PM
I found it!
In my radgrid I had to put

 

MasterTableView-EditFormSettings-FormTableAlternatingItemStyle-HorizontalAlign=Left

 

 

MasterTableView-EditFormSettings-FormMainTableStyle-HorizontalAlign=left

Thanks anyway

 

Tags
Grid
Asked by
Myriam
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Myriam
Top achievements
Rank 1
Share this question
or