Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
I am writing a custom FileBrowserContentProvider that will be used to talk to our Picasa services, but I want to also use the built in FileSystemContentProvider.  So basically, how can I configure two different types of Image managers?  If one has to be a default, and another as has to use its own button, that is fine, I just need to be able to allow users to access our Picasa feed while working in the RadEditor, but still maintain the default file system provider.


Thank you,


Rumen
Telerik team
 answered on 16 Jul 2009
1 answer
124 views
Hi,

I am using 2009 Q2. I have my custom FileBrowserContentProvider.

When I right-click on a file, and choose "Delete", the RadFileExplorer call the DeleteDirectory method.
Should it call DeleteFile instead ?

Thanks.
Lini
Telerik team
 answered on 16 Jul 2009
1 answer
286 views
I need to display a grid column as hex. DataFormatString="{0:X}" not only doesn't display as hex, it triggers this execution error:

Microsoft JScript runtime error: Sys.FormatException: Format specifier was invalid.

I tried DataFormatString="{0:X2}" just for kicks. That doesn't work either.  DataFormatString="{0:D0}" works fine, but I need to display in hex.

Thank you,

Mark

Here is the complete grid definition:

<telerik:RadGrid ID="RadGridAlarms" runat="server" Skin="Telerik" ToolTip="Alarm Messages" Height="100%" AllowPaging="true" OnItemCreated="RadGridPaging_ItemCreated"> 
                        <PagerStyle AlwaysVisible="true" Mode="NextPrev" Position="Top" PagerTextFormat = "<span class='PagerTitle'>Alarms</span>{4}<strong>{0}</strong> of <strong>{1}</strong>, alarms <strong>{2}</strong> to <strong>{3}</strong> of <strong>{5}</strong><span style='padding-right: 50px'>.</span>"/> 
                        <ClientSettings> 
                            <Selecting AllowRowSelect="true" /> 
                            <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" /> 
                            <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                            <ClientEvents OnRowContextMenu="OnAlarmsRowContextMenu" OnDataBound="RadGridAlarms_DataBound" OnDataBinding="RadGridAlarms_DataBinding" OnDataSourceResolved="RadGridAlarms_DataSourceResolved" /> 
                            <DataBinding Location="WebService.asmx" SelectMethod="GetAlarms" /> 
                        </ClientSettings> 
                        <mastertableview autogeneratecolumns="False" commanditemdisplay="None" dir="LTR" frame="Border" tablelayout="Auto">  
                            <Columns> 
                                <telerik:GridImageColumn HeaderStyle-Width="30" DataImageUrlFields="alarmType" DataImageUrlFormatString="Images/Alarms/{0}.PNG" ItemStyle-CssClass="ImageTD"  /> 
                                <telerik:GridBoundColumn HeaderText="Message" DataField="message" /> 
                                <telerik:GridBoundColumn HeaderStyle-Width="80" HeaderText="Date" DataField="msgDateTime" DataFormatString="{0:M/dd/yyyy}" /> 
                                <telerik:GridBoundColumn HeaderStyle-Width="80" HeaderText="Time" DataField="msgDateTime" DataFormatString="{0:hh:mm tt}" /> 
                                <telerik:GridBoundColumn HeaderText="Dev Name" DataField="devNameComputer" /> 
                                <telerik:GridBoundColumn HeaderStyle-Width="50" HeaderText="Dev #" DataField="rawDevNumber" DataFormatString="{0:X}" /> 
                                <telerik:GridBoundColumn HeaderStyle-Width="80" HeaderText="Dev Date" DataField="devDateTime" DataFormatString="{0:M/dd/yyyy}" /> 
                                <telerik:GridBoundColumn HeaderStyle-Width="80" HeaderText="Dev Time" DataField="devDateTime" DataFormatString="{0:hh:mm tt}" /> 
                                <telerik:GridBoundColumn HeaderText="Dev Type" DataField="devType" /> 
                                <telerik:GridBoundColumn HeaderStyle-Width="50" HeaderText="Port #" DataField="portNumber" DataFormatString="{0:X2}"/> 
                            </Columns> 
                        </mastertableview> 
                    </telerik:RadGrid> 


Iana Tsolova
Telerik team
 answered on 16 Jul 2009
2 answers
363 views
Hello!

I´m using 2009.2.701.35 and are having trouble exporting to ExcelML when I have filtered the columns. There is no problems exporting on the default excel version or to Csv etc when colums are filtered.

The ExcelML export are working when the grid is NOT filtered.

There is also one strange bahavior that applies to all exports when using. It´s Paging. After exporting when using filter on colums and when I then select NO FILTER. The grid reloads the grid without paging and fill the grid with all rows from the database.

To reproduce this. Just take
1. New .ASPX page
2. Put an ScriptManager on the page
3. Put an RadAjaxManager on the page
4. Put an LinqDataSource on the page
5. Put an RadGrid on the page, activate AllowFilteringByColumn  Enable Paging and PageSize
6. Put a button on the .ASPX page
7. On the button event add this

RadGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML;  
RadGrid1.ExportSettings.ExportOnlyData = true;  
RadGrid1.ExportSettings.IgnorePaging = true;  
RadGrid1.MasterTableView.ExportToExcel(); 

8. Load the page and filter a column
9. Export you data


Daniel
Telerik team
 answered on 16 Jul 2009
3 answers
111 views
Hi all,

How to view day view from month view when i click the particular day cell not (the date header) the full cell.
Please any one help me with sample code.

Thanks,
Saravanan.S
Veselin Vasilev
Telerik team
 answered on 16 Jul 2009
1 answer
109 views

Hi,

This is my scenario

 

When user Click the button

            A javaScript Function is Called which is making a ajaxRequest.

 

This AjaxRequest from Code behind Registers a script (I m using RAdAjaxManger.ResponseScripts.Add(“radalert(‘HELP!!!’)”))

 

Along with this I have Added a setting in  RAdAjaxManger

So that it shows a loadingPanel during this ajax request…

 

Problem is radAlert(which is Called From CodeBehind using ResponseScripts) doesn’t fire !!

If  I remove the Ajax Settings(for RAdAjaxManager Itself) then it fires!!..please help

 

I need to show a loading panel when the Ajax Request Happens!!..

Iana Tsolova
Telerik team
 answered on 16 Jul 2009
1 answer
225 views
I have a radgrid where I generate a template column which has a checkbox as it's itemtemplate. The checkbox is checked in the codebehind if another field is prefixed with certain characters. I have included the code below. I want to know if there is a way to filter this column either saying is checked, or even is not empty?

Here is the aspx:
<telerik:GridTemplateColumn UniqueName="webLinkedContent" HeaderText="Web linked" > 
            <ItemTemplate> 
                <asp:CheckBox ID="webLinkedContent" Enabled="false" runat="server" /> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
 and here is the c#:

  protected void sourcesGrid_itemDataBound(object sender, GridItemEventArgs e) 
        { 
            if ((e.Item is GridDataItem)) 
            { 
                GridDataItem dataItem = (GridDataItem)e.Item; 
                string psSourceCd = ((System.Data.DataRowView)(((Telerik.Web.UI.GridItem)(dataItem)).DataItem)).Row.ItemArray[9].ToString(); 
                if (psSourceCd.Length > 4) 
                { 
                    string beginning = psSourceCd.Substring(0, 4); 
                    if (beginning == "SPD_") 
                    { 
                        CheckBox chkbx = dataItem["webLinkedContent"].FindControl("webLinkedContent") as CheckBox; 
                        chkbx.Checked = true; 
                    } 
                } 
 
            } 
        } 

Thanks



Veli
Telerik team
 answered on 16 Jul 2009
1 answer
85 views
Hi guys,
You should be able to help me out...

a. Data Bound to a grid and grid.showFooter = true is set.
b. During the grid pre-render event,
Following code is executed.

Dim gridRevisedCol As GridBoundColumn
        gridRevisedCol = grid.MasterTableView.GetColumn("Revised")
        gridRevisedCol.DataFormatString = "{0:#####}"
        gridRevisedCol.FooterText = "Total: "
        gridRevisedCol.FooterAggregateFormatString = "<strong>{0:###,###,##}</strong>"
        gridRevisedCol.Aggregate = GridAggregateFunction.Sum
        gridRevisedCol.Groupable = False
        gridRevisedCol.ItemStyle.HorizontalAlign = HorizontalAlign.Right
        gridRevisedCol.FooterStyle.HorizontalAlign = HorizontalAlign.Right


My question is what have I missed that I am not able to show the aggregate value in footer when the page loads.

It works though when it's grouped by dragging a column and ungrouped it. Amazing.


FYI..

  <telerik:RadGrid ID="grid" runat="server" Skin="Office2007" BorderWidth="0px"
    AutoGenerateColumns="true" PageSize="500" AllowPaging="True" AllowSorting="True">
        <AlternatingItemStyle BackColor="AliceBlue" Font-Names="Verdana" Font-Size="8pt" />
        <ItemStyle Font-Names="Verdana" Font-Size="8pt" />
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
       </ClientSettings>
        <MasterTableView>
            <RowIndicatorColumn Visible="True">
            </RowIndicatorColumn>
        </MasterTableView>
        <FilterMenu EnableTheming="True" Skin="Web20">
            <CollapseAnimation Duration="200" Type="OutQuint" />
        </FilterMenu>
        <PagerStyle Position="TopAndBottom" />
    </telerik:RadGrid>



Please help me.

Thanks a lot.

Milan G


Iana Tsolova
Telerik team
 answered on 16 Jul 2009
2 answers
335 views
Hi,

I would like to generate columns in my RadGrid as I have in my DataTable. I created my DataTable about XML file. The structure of XML file you can see below:

<?xml version="1.0" encoding="utf-8" ?>
<Tabela>
  <Colunas>
    <Coluna NomeColuna="nome_completo" NomeCabecalho="Nome"></Coluna>
    <Coluna NomeColuna="matricula" NomeCabecalho="Registro"></Coluna>
    <Coluna NomeColuna="tipo_deficiencia" NomeCabecalho="Deficiência"></Coluna>
  </Colunas>
  <Linhas>
    <Linha NomeColuna="nome_completo" Conteudo="João"></Linha>
    <Linha NomeColuna="matricula" Conteudo="123456"></Linha>
    <Linha NomeColuna="tipo_deficiencia" Conteudo="Física"></Linha>
    <Linha NomeColuna="nome_completo" Conteudo="Maria"></Linha>
    <Linha NomeColuna="matricula" Conteudo="654321"></Linha>
    <Linha NomeColuna="tipo_deficiencia" Conteudo="Auditiva"></Linha>
  </Linhas>
</Tabela>

In a code aspx, I have the code in a button, as you can see below:

       try
        {
            System.Data.DataSet _dsDadosXML = new System.Data.DataSet();

            System.Data.DataTable _dtTabela = new System.Data.DataTable("Dados");
            
            System.Data.DataRow _drLinhas;

            _dsDadosXML.ReadXml(Server.MapPath("~/Protegidos/Empresas/Relatorios/XMLFile.xml"));
            System.Data.DataTable _dtTabelaXML = _dsDadosXML.Tables["Coluna"];
            foreach (System.Data.DataRow linha in _dtTabelaXML.Rows)
            {
                System.Data.DataColumn _dcColunas = new System.Data.DataColumn();

                _dcColunas.ColumnName = linha[0].ToString();
                _dcColunas.Caption = linha[1].ToString();
                _dtTabela.Columns.Add(_dcColunas);
            }

            _dtTabelaXML = _dsDadosXML.Tables["Linha"];
            foreach (System.Data.DataRow linha in _dtTabelaXML.Rows)
            {
                _drLinhas = _dtTabela.NewRow();
                _drLinhas[linha[0].ToString()] = linha[1].ToString();
                _dtTabela.Rows.Add(_drLinhas);
            }

            RadGrid1.DataSource = _dtTabela;
            RadGrid1.DataBind();
        }
        catch (Exception ex)
        {
            lblResultado.Text = ex.Message;
        }

And my RadGrid in source aspx is:

                 <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Telerik"
                            GridLines="None" AllowPaging="true" AllowSorting="true" Width="97%"
                            AutoGenerateColumns="false" ShowStatusBar="true"
                            PageSize="10">
                            <HeaderContextMenu Skin="WebBlue">
                                <CollapseAnimation Type="OutQuint" Duration="200" />
                            </HeaderContextMenu>
                            
                            <MasterTableView GridLines="None" Width="100%" CommandItemDisplay="None"
                                Font-Bold="false" Font-Italic="false" Font-Overline="false" Font-Strikeout="false"
                                Font-Underline="false" Name="TableViewTeste">
                                
                                <PagerStyle NextPageText="Próximo" PrevPageText="Anterior" />
                            </MasterTableView>
                            
                            <FilterMenu Skin="WebBlue">
                                <CollapseAnimation Type="InOutQuint" Duration="200" />
                            </FilterMenu>
                            <StatusBarSettings LoadingText="Aguarde..." ReadyText="Pronto" />
                        </telerik:RadGrid>

So, after to pass the DataBind method, I can't see anything in my RadGrid, that is, the data wasn't populated . Is there anything wrong with the code or other part?



Iana Tsolova
Telerik team
 answered on 16 Jul 2009
1 answer
91 views
hi,
I am using a RadPanelBar in my one of the aspx page. There I am Using Custom CSS class for it.
My issue is , in the RadPanelBar, all colapsed item's are displaying with a bottom blue border, and its onmouse over, this is getting disappeared. Please help me to remove this bottom border from the collapsed items.

Thanks & Regards,
Dony Jose Augustine
Paul
Telerik team
 answered on 16 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?