Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Hi All,

I have an item template command used to filter all columns once it is clicked. what i want to do is to allow the user to click [Enter] key then the filtering event occurs (Like clicking on the item template command by mouse click), how this can be doable?
Please find the attached image to see how the grid looks like.
I dont want to set property Autopostbackonfilter to true for each column because i'm filtering all the columns at single command item click.

Thanks in advance
Daniel
Telerik team
 answered on 31 May 2010
2 answers
93 views
I'm experiencing an issue in windows with contenttemplate and inside a toolbar with toolbarsplitbutton.
Normally the control work fine but if I maximize the window i cannot expand anymore the splitbutton

This is my implementation
    <telerik:RadWindow ID="RadWindow1" runat="server" CssClass="RadWindow" 
        Behaviors="Resize, Maximize, Move" Height="400px" Modal="True"   
        VisibleStatusbar="False" Width="600px" VisibleOnPageLoad="True"   
        Title="Seleziona Agenzia / Sito">  
        <ContentTemplate> 
            <telerik:RadToolBar ID="RadToolBar1" runat="server" Width="100%">  
                <Items> 
                    <telerik:RadToolBarButton runat="server" Text="Aggiorna"   
                        ImageUrl="~/images/refresh.png" AllowSelfUnCheck="True" Value="refresh">  
                    </telerik:RadToolBarButton> 
                    <telerik:RadToolBarButton IsSeparator="True" /> 
                    <telerik:RadToolBarSplitButton ID="ComboSearch" runat="server">  
                        <Buttons> 
                            <telerik:RadToolBarButton runat="server" Text="Cerca in 'Nomi e note'" /> 
                            <telerik:RadToolBarButton runat="server" Text="Cerca in 'Nome cliente'" /> 
                            <telerik:RadToolBarButton runat="server" Text="Cerca in 'Nome agenzia'" /> 
                            <telerik:RadToolBarButton runat="server" Text="Cerca in 'Indirizzo'" /> 
                            <telerik:RadToolBarButton runat="server" Text="Cerca in 'Cap'" /> 
                            <telerik:RadToolBarButton runat="server" Text="Cerca in 'Città'" /> 
                            <telerik:RadToolBarButton runat="server" Text="Cerca in 'Provincia'" /> 
                            <telerik:RadToolBarButton runat="server" Text="Cerca in 'Note'" /> 
                        </Buttons> 
                    </telerik:RadToolBarSplitButton> 
                    <telerik:RadToolBarButton Value="TemplateSearch">  
                    <ItemTemplate> 
                        <asp:TextBox ID="TextboxSearch" runat="server" Width="150px" /> 
                    </ItemTemplate> 
                    </telerik:RadToolBarButton> 
                    <telerik:RadToolBarButton runat="server" ImageUrl="~/Images/search.png" Value="search">  
                    </telerik:RadToolBarButton> 
                </Items> 
            </telerik:RadToolBar> 
            <telerik:RadGrid ID="RadGrid1" runat="server" Width="100%"   
                AutoGenerateColumns="False" DataSourceID="SqlDataSourceCustomers"   
                GridLines="None">  
                <!-- my grid implementation --> 
            </telerik:RadGrid> 
        </ContentTemplate> 
    </telerik:RadWindow> 

Any suggestion about that?

Best regards

Sandro Cavazzoni
Sandro Cavazzoni
Top achievements
Rank 1
 answered on 31 May 2010
6 answers
117 views
Hello,
i am working a project that uses Telerik Q2 2009.
I am using mainly Rad Ajax Manager and Rad Datepicker.
Today i get an interesting error and could not find any solution so i really need your help or i will have to remove all telerik components from my project.
Problem occured in a client machine running on Windows XP SP2. The interesting part when i tried your rad ajax manager demo from demos page http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/firstlook/defaultcs.aspx, i get same error.

The problem is when i click a date from calender in your demo page, ajax loading panels become active but they never fade and after 90 seconds they are giving an Timeout exception. When i debug with firebug i saw that ajax manager aren't posting any data it just try to beginajaxrequest event and falls to timeout exception. 

Lastly i saw this problem only 4 machine with same system and in the same network. I really need a quick help.
Maria Ilieva
Telerik team
 answered on 31 May 2010
6 answers
140 views
hi i have this grid w/ hierarchy table but its not expanding here is the code
                            <telerik:RadGrid ID="grdAppezz" runat="server" GridLines="None" 
                                AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False" 
                                ShowStatusBar="true" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
                                AllowAutomaticUpdates="True"
                                <MasterTableView CommandItemDisplay="none" GridLines="None" 
                                    DataKeyNames="IDAPPEZZAMENTO,IDUPO,IDNOTIFICA" AllowFilteringByColumn="False" AllowSorting="True"
                                    <Columns> 
                                        <telerik:GridTemplateColumn> 
                                            <ItemTemplate> 
                                                <asp:ImageButton runat="server" ID="btnEdit" ImageUrl="~/_img/Editor.gif" /> 
                                            </ItemTemplate> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn> 
                                            <HeaderTemplate> 
                                                <table id="Table1" style="width: 100%"
                                                    <tr> 
                                                        <td style="width: 100%"
                                                            <asp:LinkButton CssClass="Button" ID="btnAPP" Text="N° App." ToolTip="Sort by N° Appezzamento" 
                                                            CommandName='Sort' CommandArgument='IDUPO' runat="server" /> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <table cellspacing="0" width="100%"
                                                    <tr> 
                                                        <td style="width: 100%"
                                                            <%#Eval("IDAPPEZZAMENTO")%> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn> 
                                            <HeaderTemplate> 
                                                <table id="Table1" style="width: 100%"
                                                    <tr> 
                                                        <td colspan="2" align="center"
                                                            <b>Codice Istat</b> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td style="width: 50%"
                                                            <asp:LinkButton CssClass="Button" ID="btnProv" Text="Prov" ToolTip="Sort by Provincia" 
                                                            CommandName='Sort' CommandArgument='PROVINCIA' runat="server" /> 
                                                        </td> 
                                                        <td style="width: 50%"
                                                            <asp:LinkButton CssClass="Button" ID="btnCom" Text="Comune" ToolTip="Sort by Comune" 
                                                            CommandName='Sort' CommandArgument='COMUNE' runat="server" /> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <table cellspacing="0" width="100%"
                                                    <tr> 
                                                        <td style="width: 50%"
                                                            <%#Eval("PROVINCIA")%> 
                                                        </td> 
                                                        <td style="width: 50%"
                                                            <%#Eval("COMUNE")%> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn>                                    
                                        <telerik:GridTemplateColumn> 
                                            <HeaderTemplate> 
                                                <table style="width: 100%"
                                                    <tr> 
                                                        <td colspan="3" align="center"
                                                            <b>SUP. CATASTALE</b> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td style="width: 34%" align="center"
                                                            <asp:LinkButton CssClass="Button" ID="btnHA1" Text="ha" ToolTip="Sort by HA" 
                                                            CommandName='Sort' CommandArgument='HA1' runat="server" /> 
                                                        </td> 
                                                        <td style="width: 33%" align="center"
                                                            <asp:LinkButton CssClass="Button" ID="btnARE1" Text="are" ToolTip="Sort by Are" 
                                                            CommandName='Sort' CommandArgument='ARE1' runat="server" /> 
                                                        </td>   
                                                        <td style="width: 33%" align="center"
                                                            <asp:LinkButton CssClass="btnCRE1" ID="LinkButton1" Text="cre" ToolTip="Sort by cre" 
                                                            CommandName='Sort' CommandArgument='CRE1' runat="server" /> 
                                                        </td>                                                                                                          
                                                    </tr> 
                                                </table> 
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <table cellspacing="0" width="100%"
                                                    <tr> 
                                                        <td style="width: 34%"
                                                            <%#Eval("HA1")%> 
                                                        </td> 
                                                        <td style="width: 33%"
                                                            <%#Eval("ARE1")%> 
                                                        </td>   
                                                        <td style="width: 33%"
                                                            <%#Eval("CRE1")%> 
                                                        </td>                                                                                                        
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridBoundColumn DataField="METODOPRODDICHIARATO" HeaderText="Metodo" SortExpression="METODOPRODDICHIARATO"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="DTCESSAZIONECONV" HeaderText="Data Cessato" SortExpression="DTCESSAZIONECONV" DataFormatString="{0: dd/MM/yyyy}"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridTemplateColumn> 
                                            <HeaderTemplate> 
                                                <table style="width: 100%"
                                                    <tr> 
                                                        <td style="width: 100%" align="center"
                                                            <asp:LinkButton CssClass="Button" ID="btnOrient" Text="Orientamenti" ToolTip="Sort by Orientamenti" 
                                                            CommandName='Sort' CommandArgument='ORIENTAMENTO1' runat="server" /> 
                                                        </td>                                                                                                      
                                                    </tr> 
                                                </table> 
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <table cellspacing="0" width="100%"
                                                    <tr> 
                                                        <td style="width: 25%"
                                                            <%#Eval("ORIENTAMENTO1")%> 
                                                        </td> 
                                                        <td style="width: 25%"
                                                            <%#Eval("ORIENTAMENTO2")%> 
                                                        </td>   
                                                        <td style="width: 25%"
                                                            <%#Eval("ORIENTAMENTO3")%> 
                                                        </td>   
                                                        <td style="width: 25%"
                                                            <%#Eval("ORIENTAMENTO4")%> 
                                                        </td>                                                                                                                                                                
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
                                    </Columns> 
                                    <DetailTables> 
                                        <telerik:GridTableView AutoGenerateColumns="false" Caption="Particella Appezzamenti" AllowSorting="false" 
                                            DataSourceID="objDSPart" Width="90%" PageSize="7"
                                            <ParentTableRelation> 
                                                <telerik:GridRelationFields DetailKeyField="IDUPO,IDNOTIFICA,IDAPPEZZAMENTO" MasterKeyField="IDUPO,IDNOTIFICA,IDAPPEZZAMENTO" /> 
                                            </ParentTableRelation> 
                                            <PagerStyle AlwaysVisible="false" /> 
                                            <Columns> 
                                                <telerik:GridBoundColumn SortExpression="IDIDPARTICELLA" HeaderText="Part." DataField="IDIDPARTICELLA" UniqueName="colIDIDPARTICELLA" AllowSorting="false"
                                                </telerik:GridBoundColumn>                                                      
                                                <telerik:GridBoundColumn SortExpression="SUPERFICIECONVENZ" HeaderText="Sup. Convenzionale" DataField="SUPERFICIECONVENZ" UniqueName="colSUPERFICIECONVENZ"
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridBoundColumn SortExpression="SUPERFICIEBIO" HeaderText="Sup. Biologico" DataField="SUPERFICIEBIO" UniqueName="colSUPERFICIEBIO"
                                                </telerik:GridBoundColumn>    
                                                <telerik:GridBoundColumn SortExpression="SUPERFICIECONVERS" HeaderText="Sup. In Converzione" DataField="SUPERFICIECONVERS" UniqueName="colSUPERFICIECONVERS"
                                                </telerik:GridBoundColumn>                                      
                                            </Columns> 
                                        </telerik:GridTableView> 
                                    </DetailTables>                                      
                                </MasterTableView>                                
                            </telerik:RadGrid>   

i have 3 relation fields

w/ 1 relation field it always work but after i tried to add 2 more relation fields it stop on working
Mira
Telerik team
 answered on 31 May 2010
3 answers
199 views
Using BinaryImage, how can I show an emf image as Byte array from database on IE8? In the code, I have updated Photo column with emf image in CustomerPhotos table. The modified application does not show the emf image on IE8 but shows it on IE6/IE7 because the Content-Type is image/*.

(Q1) Is there any way to set image/x-emf to the Content-Type for BinaryImage?
(Q2) Is there the correct way to show an emf image in BinaryImage on IE8?

Best regards,
BaiH
Top achievements
Rank 1
 answered on 31 May 2010
1 answer
82 views
I'm looking for a way to have SlidingPanes come down from the top and in from the left, covering the same area.  Is this possible?
Svetlina Anati
Telerik team
 answered on 31 May 2010
3 answers
103 views
Hi ,

I have a RadTreeView Bound to the generic List<Category>. Nodes are loaded on Demad.

I have the code :

protected

 

void Page_Load(object sender, EventArgs e)  

 

 

    if (!Page.IsPostBack) 

    { 

        LoadRootNodes(

TreeNodeExpandMode.ServerSideCallBack);  

 

 

    }

    RadTreeView1.DataBind();

}

and 

 

protected

 

 

void RadTreeView_NodeExpand(object sender, RadTreeNodeEventArgs e)  

 

 

{

 

 

    PopulateNodeOnDemand(e,

TreeNodeExpandMode.ServerSideCallBack);

 

 

}

so when I delete Category from the RadTreeView (the delete button is nested in the NodeTemplate),  fisrt I call method to delete the category from the database : (CategoriesData.Delete(SelectedNode.Value)) and after that remove the  node from the RadTreeView.
(SelectedNode.Remove)
But when I press the refresh Button of the Browser after the node was removed from the TreeView, it appears again.So my question is how I can Refresh the TreeView   on delete operation,  when   i use Load-on demand feature and NodeTemplate.
.

Best Regards Deyana

 

 

 

 

 

 

Nikolay Tsenkov
Telerik team
 answered on 31 May 2010
4 answers
139 views
I'm using a RadSlider with an ItemType="Item" and a TrackPostion="TopLeft".  Unfortunately, the drag handle rests right on top of the text of the item.  Is there an easy was to have the text shifted down so the handle won't cover it up?  See attached image.  Thanks.

(In this example I'm only using numeric values but I may want to do the same thing with text values too.)

Robert Lampe
Top achievements
Rank 1
 answered on 31 May 2010
2 answers
137 views
Hi,
    I want to draw a(or more) special control line in Y-Axis, like the property "stripLines" of MSChart.
    For example, a rad line at YAxis 35, so if the y value bigger than the control line, I can fill it with a special color.

    By the way , it seems if I Bind a DateTime Collections to  RadChart1.PlotArea.XAxis.DataLabelsColumn, it will be error.



                                                                                                          yours alexzchen
Ves
Telerik team
 answered on 31 May 2010
6 answers
238 views

Throw a simple radgrid onto a page, and by default, it takes up 100% or the whole width of the browser window,
even if you have only one or two columns.

Of course you can set the width of the whole grid, then all the columns expand to fill that 100%.

Or you can set the width of each column, but that is tedious and inflexible.

How can you setup the radgrid so each column only takes the exact width needed based on
the cell contents, expanding up to 100% if necessary, but not if it isn't needed.

err....just like the GridView....

Thanks...
Richard Gregg
Top achievements
Rank 1
 answered on 31 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?