Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
150 views
Hi, I have been playing with the Demo RadGrid, and I want to use it to export some data to a spread sheet, the data is already in the db by the time I get to using the RG, and it is there as a string and it displayes the leading 0, i.e. 083 ## ### ##

But when I export it to excel, I get 83####### is there any way to export this to excel so that the leading 0 comes out too?

Thanx
Daniel
Telerik team
 answered on 18 Mar 2009
8 answers
267 views
Hi,

the first thing I tried was to convert an existing project.
Works fine so far - but add's an authentication section to web.config - although there is an existing one.
--results in an error - pretty easy to fix :)

Next I tried was to create a GridTemplate.
I used "export to PDF" -- nice thing BUT - it would be great if you use the configuration.connectionstring instead of inserting the plain text.

About the first point -- the <authentication mode="windows" /> is inserted every time I use the wizard to change settings.
A last idea about the wizard - MaxReuestLength is a thing I change (at least) in the matter of megabytes.
So it would be good for me if the stepping (Spin buttons) is set to 1024 or something like this.
Hitting this button 2048 times to allow 2 megs more :)))
Just kidding - I know I can enter the value by typing text - but since the spins are there....

One question - what's the difference between "Add Rad controls template..." and "More Templates..."?
Looks pretty the same for me.

Regards

Manfred
Erjan Gavalji
Telerik team
 answered on 18 Mar 2009
1 answer
103 views
Hi
I have a radWindow that has a radTabStrip in it.  When I open this radWindow from a parent .aspx page (from a radGrid's buttoncolumn), the radWindow does not show both of the scrollbars.

However, if I navigate to different .aspx that does not have radTabStrip, the window pops up with scroll bars.
My current work around is to resize the radWindow to fit the content when it pops up but I cannot live with that.

Any clue to get rid of this problem?

Thanks
Georgi Tunev
Telerik team
 answered on 18 Mar 2009
4 answers
101 views
Hello,

Is there anyway to get and change the value of ChartMarkedZone ValueStartX value and ValueEndX value in clientside.
for example :

 

<telerik:ChartMarkedZone ValueStartX="1" ValueEndX="10" >

 

 

<Appearance FillStyle-MainColor="green">

 

 

</Appearance>

 

 

</telerik:ChartMarkedZone>

For above marked zone, i want to set the ValueStartX to 3 and ValueEndX to 15 in clientside when i click a button.

Thanks in advance

 

Ves
Telerik team
 answered on 18 Mar 2009
5 answers
977 views
Hi,
  My current requirement demands to have a radgrid inside the nestedview template.On page load I should be able to access this grid. Can I know how to access items inside a nestedvieetemplate on page load.

This is a major requirement for me. Please do let me know.

Thanks and regards,
Giridhar.
Yavor
Telerik team
 answered on 18 Mar 2009
1 answer
120 views
i am trying to create a filtration method where when a cell a combobox will apear for filtring with that column...i just want to get the column name after clicking on the cell? is it possible
Shinu
Top achievements
Rank 2
 answered on 18 Mar 2009
1 answer
103 views
Hi Telerik

We're building our Menu dynamically and we make use of the HighlighPath() method, everything works great.

Now some items do not have a NavigateUrl set, and we would like to assign a css class that shows just the default cursor, so everybody get's it that this element is not clickable.

I'm iterating through the items collection and mark empty items with a css class, but it does not work.

For Each item As RadMenuItem In RadMenu1.Items 
                If item.NavigateUrl = "" Then 
                    item2.CssClass = "rmLink rmDisabled" 
                End If 
Next 

I tried to set enable = false for those items too, but then childItems aren't visible anymore.

Thanks for your help in advance!
Tom
Princy
Top achievements
Rank 2
 answered on 18 Mar 2009
1 answer
164 views
Hello
i would like to know how to set the width of my detail table, as when my user has another resolution screen on his pc, it doesn't fit in the screen. The left overflow the screen. so the user doesn't seems the beginning of my detail viewtable
Here is my code
Thanks in advance



 <telerik:RadGrid   
            DataSourceID="CustomerSource" 
            ID="RadGrid1" 
            autogeneratecolumns=False 
            runat="server"   
            GridLines="None"   
            ShowHeader="false"   
             Skin="Office2007" 
            showfooter="true" 
            OnPreRender="RadGrid1_PreRender" 
                
            Width="99%" 
            HorizontalAlign="Center" 
            EnableLinqExpressions="false" 
            > 
            <MasterTableView   
                TableLayout="Auto"    
                datasourceid="CustomerSource"   
                GridLines="None"   
                Width="100%"   
                ShowFooter=false   
                ShowHeader="true" 
                ShowGroupFooter=false 
                HierarchyDefaultExpanded=true   
                DataKeyNames="NO_FOURNISSEUR" 
                HorizontalAlign="Center" 
                NoMasterRecordsText="Aucun enregistrement">  
                   
                  
                <Columns> 
                  
                   <telerik:GridBoundColumn SortExpression="NO_FOURNISSEUR"   
                       HeaderText="NO_FOURNISSEUR"   
                       DataField="NO_FOURNISSEUR"   
                       UniqueName="NO_FOURNISSEUR"   
                       ReadOnly="true"   
                       Visible="false" GroupByExpression="NO_FOURNISSEUR">  
                    </telerik:GridBoundColumn> 
                     
                    <telerik:GridTemplateColumn> 
                        <ItemTemplate>    
                          
                        <asp:textbox id="labelinvisible" runat="server" BorderWidth="0" BorderColor=White></asp:textbox> 
                        <br /> 
                            <asp:Label ID="Label1" Text='<% # DisplayFournDetail(Container) %>' runat="server"></asp:Label>    
                              
                        </ItemTemplate>    
                         <ItemStyle Width="200px"></ItemStyle> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn UniqueName="MessageFourn">  
                        <ItemTemplate>    
                            <asp:TextBox runat=server ID="TxtMessageFourn" TextMode=MultiLine Height="100px" width="500px" Text='<% # RechercheFournisseurMessage(Container) %>'></asp:TextBox>                 
                        </ItemTemplate>     
                        <ItemStyle VerticalAlign="Middle" HorizontalAlign="Center" /> 
                    </telerik:GridTemplateColumn> 
                                                                              
                    <telerik:GridButtonColumn   
                        ButtonType=LinkButton   
                        UniqueName="LkMessEnregistrer"   
                        CommandName="MessEnregistrer"   
                        Text="Sauvegarder">   
                     <ItemStyle Width="200px" CssClass="LienB" HorizontalAlign="Center"></ItemStyle> 
                    </telerik:GridButtonColumn>   
                </Columns> 
                  
                <DetailTables > 
                  
                     <telerik:GridTableView   
                     TableLayout="Auto"   
                     GridLines=Both   
                     Width="126%"   
                     ShowFooter=true   
                     DataKeyNames="No_fournisseur_produit"   
                     ShowHeader=true   
                     DataSourceID="PanierItemSource"   
                     CssClass="Detail"    
                     BorderColor="#336699" 
                     Name="Detail" CommandItemDisplay="Bottom" 
                        
                     > 
                       <CommandItemTemplate>    
                        <img alt="" width="100%" height="20px" src="Image/Fond_Rouge.JPG"/>    
                          
                        </CommandItemTemplate>    
 
                      <HeaderStyle CssClass="ImageFond" /> 
                      <FooterStyle CssClass="ImageFond" /> 
                           <ParentTableRelation> 
                               <telerik:GridRelationFields DetailKeyField="NO_FOURNISSEUR" MasterKeyField="NO_FOURNISSEUR" /> 
                           </ParentTableRelation>    
                             
                            <RowIndicatorColumn Visible="False">  
                                <HeaderStyle></HeaderStyle>  
                            </RowIndicatorColumn> 
 
                            <ExpandCollapseColumn Visible="False" Resizable="False">  
                                <HeaderStyle ></HeaderStyle>  
                            </ExpandCollapseColumn> 
                             
                           <Columns> 
                                                
                                 <telerik:GridTemplateColumn UniqueName="Template3" HeaderText="Confirmer">  
                                    <ItemTemplate> 
                                        <asp:CheckBox ID="CheckBox2" Checked='<% # Eval("CONFIRM") %>' autopostback=true runat="server" OnCheckedChanged="CheckedChanged"/>  
                                    </ItemTemplate>   
 
                                <HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
                                 
                                </telerik:GridTemplateColumn> 
                                  
                                <telerik:GridMaskedColumn    
                                     DataField="NO_PANIER"   
                                     UniqueName="NO_PANIER"   
                                     ReadOnly="true" 
                                     visible="false">  
                                </telerik:GridMaskedColumn > 
                                 
                               <telerik:GridButtonColumn   
                                    ButtonType="LinkButton" 
                                    CommandName="SupprimerItem"   
                                    Text="Supprimer" 
                                    UniqueName"SupprimerColumn"   
                                    HeaderText="Supprimer" 
                                    ItemStyle-Font-Size="Smaller" 
                                    ConfirmText="Voulez-vous supprimer l'élément suivant?" 
                                    ImageUrl="~/image/Item_Supp.jpg" > 
                                      
<HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
 
<ItemStyle Font-Size="Smaller"></ItemStyle> 
                                 </telerik:GridButtonColumn> 
                                      
                                <telerik:GridButtonColumn   
                                    ButtonType="LinkButton"   
                                    CommandName="ModifierItem"   
                                    Text="Modifier" 
                                    headertext = "Modifier" 
                                    ItemStyle-Font-Size="Smaller" 
                                    UniqueName"ModifierColumn"   
                                    ImageUrl="~/image/Item_Mod.jpg">  
                          
<HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
 
<ItemStyle Font-Size="Smaller"></ItemStyle> 
                                 </telerik:GridButtonColumn> 
                          
                               <telerik:GridMaskedColumn   
                                     DataField="CONFIRM"   
                                     UniqueName="CONFIRM"   
                                     ReadOnly="true" 
                                     visible="false">  
                               </telerik:GridMaskedColumn> 
                                 
                               <telerik:GridMaskedColumn   
                                     DataField="Non_Liste"   
                                     UniqueName="Non_Liste"   
                                     ReadOnly="true" 
                                     visible="false">  
                               </telerik:GridMaskedColumn> 
                                                               
                                 <telerik:GridTemplateColumn   
                                    HeaderText="Image" 
                                   > 
                                    <ItemTemplate>    
                                        <asp:Label   
                                            ID="Label2"   
                                            Text='<% # DisplayImage(Container) %>'   
                                            runat="server">  
                                        </asp:Label>    
                                    </ItemTemplate>    
 
<HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn   
                                 ItemStyle-Font-Size="Smaller" 
                                    HeaderText="Produit">  
                                    <ItemTemplate>    
                                        <asp:Label   
                                         CssClass="Texte13N" 
                                            ID="Label3"   
                                            Text='<% # DisplayItemDetail(Container) %>'   
                                            runat="server">  
                                        </asp:Label>    
                                    </ItemTemplate>    
 
<HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
 
<ItemStyle Font-Size="Smaller"></ItemStyle> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridNumericColumn   
                                    SortExpression="QUANTITE"   
                                    DataType="System.double"   
                                    HeaderText="QTE"   
                                    ItemStyle-Font-Size="Smaller" 
                                    DataField="QUANTITE"   
                                    UniqueName="QUANTITE"   
                                    Visible="true" 
                                    > 
<HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
 
                                    <ItemStyle HorizontalAlign="Right" CssClass="Texte13N" /> 
                                </telerik:GridNumericColumn> 
                                  
                                                                 
                                <telerik:GridNumericColumn   
                                    SortExpression="PRIX"   
                                    DataType="System.double"   
                                    HeaderText="PRIX"   
                                    ItemStyle-Font-Size="Smaller" 
                                    DataField="PRIX"   
                                    UniqueName="PRIX"   
                                    DataFormatString="{0:C}" 
                                    Visible="true">  
<HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
 
                                    <ItemStyle   
                                        HorizontalAlign="Right"   
                                        Width="40px" CssClass="Texte13N"/>  
                                </telerik:GridNumericColumn> 
                                       
                                <telerik:GridCalculatedColumn   
                                    HeaderText="Sous Total"   
                                    ItemStyle-Font-Size="Smaller" 
                                    UniqueName="SousTotal"   
                                    DataType="System.Double" 
                                    DataFields="QUANTITE, PRIX" 
                                    Expression="{0}*{1}"   
                                    DataFormatString="{0:C}">  
<HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
 
                                    <ItemStyle   
                                        HorizontalAlign="Right" CssClass="Texte13N">  
                                    </ItemStyle> 
                                    </telerik:GridCalculatedColumn> 
                                  
                                <telerik:GridCalculatedColumn   
                                    HeaderText="TPS"   
                                    ItemStyle-Font-Size="Smaller" 
                                   UniqueName="TPS"   
                                    DataType="System.Double" 
                                    DataFields="QUANTITE, PRIX, TPS" 
                                    Expression="({0}*{1})*{2}"   
                                    DataFormatString="{0:C}">  
<HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
 
                                    <ItemStyle   
                                        HorizontalAlign="Right" CssClass="Texte13N">  
                                    </ItemStyle> 
                                    </telerik:GridCalculatedColumn> 
                                  
                                <telerik:GridCalculatedColumn   
                                    HeaderText="TVQ"   
                                    ItemStyle-Font-Size="Smaller" 
                                    UniqueName="TVQ"   
                                    DataType="System.decimal" 
                                    DataFields="QUANTITE, PRIX, TPS, TVQ"   
                                    Expression="(({0}*{1}) + (({1}*{0})*{2}))*{3}"   
                                    DataFormatString="{0:C}">  
<HeaderStyle  CssClass="EnteteTable2 ImageFond"></HeaderStyle> 
 
                                    <ItemStyle   
                                        HorizontalAlign="Right" CssClass="Texte13N">  
                                    </ItemStyle> 
                                </telerik:GridCalculatedColumn> 
                                
                                 
                                 <telerik:GridCalculatedColumn   
                                    HeaderText="Total"   
                                    ItemStyle-Font-Size="Smaller" 
                                   UniqueName="Total"   
                                    DataType="System.Double" 
                                    DataFields="QUANTITE, PRIX, TPS, TVQ" 
                                    Expression="(({1}*{0})+(({1}*{0})*{2}) + (({0}*{1}) + (({1}*{0})*{2}))*{3})"   
                                    FooterText="Total : " 
                                    Aggregate="Sum"   
                                    DataFormatString="{0:C}" 
                                    FooterAggregateFormatString="{0:C}">  
                                    <HeaderStyle CssClass="EnteteTable2 ImageFond" BorderWidth="1" BorderColor="GrayText"></HeaderStyle> 
 
                                    <ItemStyle   
                                        HorizontalAlign="Right" BorderWidth="1" BorderColor="GrayText" CssClass="Texte13N">  
                                    </ItemStyle> 
                                    <FooterStyle ForeColor="#FFFFFF" BorderWidth="1" BorderColor="GrayText" HorizontalAlign="Right" /> 
                                    </telerik:GridCalculatedColumn>        
                           </Columns> 
                             
                            <EditFormSettings> 
                          <PopUpSettings ScrollBars="None"></PopUpSettings> 
                      </EditFormSettings> 
                     </telerik:GridTableView> 
                 </DetailTables> 
                 <EditFormSettings> 
                     <PopUpSettings ScrollBars="None"></PopUpSettings> 
                 </EditFormSettings> 
 
                 <RowIndicatorColumn Visible="False">  
                    <HeaderStyle Width="20px"></HeaderStyle> 
                 </RowIndicatorColumn> 
 
                 <ExpandCollapseColumn Visible=false Resizable=false>  
<HeaderStyle Width="20px"></HeaderStyle> 
                 </ExpandCollapseColumn> 
                   
            </MasterTableView> 
           <ClientSettings>   
                <Resizing AllowColumnResize="false" />   
           </ClientSettings>   
             
<FilterMenu Skin="Office2007" EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
             
        </telerik:RadGrid> 
Princy
Top achievements
Rank 2
 answered on 18 Mar 2009
3 answers
298 views
Hi,

I am using radgrid export..its working fine for mastertable view..but when i add detail tables to that grid, excel page is coming with blank rows for detailtable rows..it displays the mastertable view data only
I tried
grdProposalGroups.MasterTableView.DetailTables(0).ExportToExcel() 
but i m getting the error
RadGrid must be databound before exporting.

any solution to this prbm...

plz help me
thanks.....
Priya
Top achievements
Rank 1
 answered on 18 Mar 2009
2 answers
71 views
I am struggling to create more than one dynamic editor control on the page when the user requested to add new field on the page.

i was trying to load controls on RadAjaxPanel.

I am unable to retain my control state when the page is post back.
Can anybody send me the sample code for that.

If it is as web user control appreciatable.


Thanks in advance.
Santhosh
Top achievements
Rank 1
 answered on 18 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?