Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
224 views
Hello
I have a dropdownlist with two options and one radgrid.  The dropdown list options are "populate radgrid with table A" and "populate radgrid with table B".  Basically, the radgrid  datasource is set and bound, depending on the selection in the dropdown (on form load).  That works absolutely fine. I enable sorting on the radgrid - this works absolutely fine too.


However, when filtering is enabled on the grid, it fails to filter at all.

I am not sure if I am going about this the incorrect way with the dropdown list. Maybe someone can provide an alternative method or a solution to the problem.  I believe the problem is that the filter result is overriden by the On Load even data population.

Any info. appreciated
Thanks
R

Sebastian
Telerik team
 answered on 02 Mar 2009
2 answers
123 views
Hi, I'm is Brazilian and no have inglesh good.

I developer one grid whit scrolling, but the grid no render rigth when chage scroll.

Missing collumns, lines repeat, ...

My grid:

<telerik:RadGrid ID="gridMapa" runat="server" ForeColor="#333333" CssClass="gridVazia" Skin="" EnableEmbeddedSkins="False" OnItemDataBound="gridMapa_ItemDataBound" OnExcelMLExportRowCreated="gridMapa_ExcelMLExportRowCreated" OnExcelMLExportStylesCreated="gridMapa_ExcelMLExportStylesCreated" Width="95%">  
    <FooterStyle BackColor="#5D7B9D" ForeColor="White" /> 
    <AlternatingItemStyle BackColor="White"  CssClass="Espacamento" ForeColor="#284775" /> 
    <ItemStyle BackColor="#F7F6F3" CssClass="Espacamento" ForeColor="#333333" Wrap="False" /> 
    <PagerStyle BackColor="#284775" ForeColor="White" FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif" NextPageImageUrl="PagingNext.gif" PrevPageImageUrl="PagingPrev.gif"/>  
    <MasterTableView NoDetailRecordsText="" NoMasterRecordsText="">  
        <RowIndicatorColumn FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">  
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn CollapseImageUrl="SingleMinus.gif" ExpandImageUrl="SinglePlus.gif" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">  
            <HeaderStyle Width="20px" /> 
        </ExpandCollapseColumn> 
        <EditFormSettings> 
            <EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif" FilterImageUrl="Filter.gif" 
                InsertImageUrl="Update.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif" 
                UpdateImageUrl="Update.gif">  
            </EditColumn> 
        </EditFormSettings> 
        <CommandItemSettings AddNewRecordImageUrl="AddRecord.gif" RefreshImageUrl="Refresh.gif" /> 
        <PagerStyle FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif" 
            NextPageImageUrl="PagingNext.gif" PrevPageImageUrl="PagingPrev.gif" /> 
    </MasterTableView> 
    <SelectedItemStyle BackColor="#E2DED6" ForeColor="#333333" /> 
    <HeaderStyle CssClass="Espacamento" Wrap="False" BackColor="#5D7B9D" ForeColor="White" /> 
    <EditItemStyle BackColor="#999999" /> 
    <SortingSettings SortToolTip="Clique aqui para ordenar..." /> 
    <StatusBarSettings LoadingText="Carregando..." /> 
    <ExportSettings> 
        <Pdf PageHeight="297mm" PageWidth="210mm" PaperSize="A4" /> 
    </ExportSettings> 
    <FilterMenu EnableEmbeddedSkins="False" EnableTheming="True" Skin="">  
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </FilterMenu> 
</telerik:RadGrid> 

Source:

protected void gridMapa_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
    {  
        if (e.Item.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem  
            || e.Item.ItemType == Telerik.Web.UI.GridItemType.Item  
            || e.Item.ItemType == Telerik.Web.UI.GridItemType.Header)  
        {  
            if (e.Item.ItemType != Telerik.Web.UI.GridItemType.Header)  
            {  
                if (isVertical)  
                {  
                    e.Item.Cells[2].BackColor = gridMapa.HeaderStyle.BackColor;  
                    e.Item.Cells[2].CssClass = gridMapa.HeaderStyle.CssClass;  
                    e.Item.Cells[2].ForeColor = gridMapa.HeaderStyle.ForeColor;                      
                    e.Item.Cells[2].Font.Bold = true;                      
                    e.Item.Cells[2].Wrap = false;//gridMapa.HeaderStyle.Wrap;  
                }  
                if (isVertical && e.Item.ItemIndex > 0)  
                {  
                    for (int i = 3; i <= (e.Item.Cells.Count - 1); i++)  
                    {  
                        e.Item.Cells[i].Attributes.Add("onMouseOver", "this.style.cursor='pointer'");  
                        if (origem == Origem.email.ToString())  
                        {  
                            e.Item.Cells[i].Attributes.Add("onClick", "window.open ('" + ConfigurationManager.AppSettings["caminhoPaginaProcessosAbsoluto"] + "?NrProcesso=" + gridMapa.Items[0].Cells[i].Text + "', 'mapaFollowUP'); return false;");  
                        }  
                        else 
                        {  
                            e.Item.Cells[i].Attributes.Add("onClick", "location.href = 'processos.aspx?NrProcesso=" + gridMapa.Items[0].Cells[i].Text + "'; return false;");  
                        }  
                    }  
                }  
                else 
                {  
                    e.Item.Attributes.Add("onMouseOver", "this.style.cursor='pointer'");  
                    if (origem == Origem.email.ToString())  
                    {  
                        e.Item.Attributes.Add("onClick", "window.open ('" + ConfigurationManager.AppSettings["caminhoPaginaProcessosAbsoluto"] + "?NrProcesso=" + e.Item.Cells[2].Text + "', 'mapaFollowUP'); return false;");  
                    }  
                    else 
                    {  
                        e.Item.Attributes.Add("onClick", "location.href = 'processos.aspx?NrProcesso=" + e.Item.Cells[2].Text + "'; return false;");  
                    }  
                }  
            }  
            else 
            {                  
                if (e.Item.Cells[2].Text.ToLower() == "col1")  
                {  
                    isVertical = true;  
                    //e.Item.Visible = false;  
                    gridMapa.MasterTableView.ShowHeader = false;  
                    gridMapa.MasterTableView.Caption = "Mapa de Processos";  
 
                    for (int i = 2; i <= (e.Item.Cells.Count - 1); i++)  
                    {  
                        e.Item.Cells[i].Text = "";  
                    }  
                }  
                else 
                {  
                    isVertical = false;  
                    e.Item.Visible = false;  
                    gridMapa.MasterTableView.ShowHeader = true;  
                    gridMapa.MasterTableView.Caption = "";  
                }  
            }  
            e.Item.Cells[2].Visible = isVertical;  
            e.Item.ToolTip = "Clique aqui para ver o processo.";  
        }  
    } 

Afeter binder:

gridMapa.ClientSettings.Scrolling.AllowScroll = true;  
                    gridMapa.ClientSettings.Scrolling.UseStaticHeaders = true;  
                    gridMapa.ClientSettings.Scrolling.FrozenColumnsCount = 1; 

I need for help,

Thanks.
Dimo
Telerik team
 answered on 02 Mar 2009
3 answers
175 views
When I Clik the node (in leve 3), the treeview show the next Message:
Sys.WebForms.PageRequestManagerParserErrorException: Then Message received from the server could not be parser.
Common causes for this error are when the response is modified by calls to response.Write(), respose filter, HttpModules,
or server trace is enabled.
Details: Error Parsing near 'ddeen"/>
</div
|<html>
<head>
'
'
In this page I have tabstrip, multipage and gridas...
Please Help me, about this error, I tried some things but error is the same.....!!!
Thanks......

Is there any telerik  forum in spanish ?
Veselin Vasilev
Telerik team
 answered on 02 Mar 2009
5 answers
125 views
Hello All,
    I have used three level hierarchy of grid in my webisite. I want google like filtering to inner two grid in the hierarchy. Can you provide me any sample. How should i do google like filtering to inner grid.

Thanks
Rahul
Rahul
Top achievements
Rank 1
 answered on 02 Mar 2009
3 answers
137 views

In safari I have weird display issues with the buttons that have rad form decorator applied to them. The button is sliced in half and the bottom button has vertical lines across it. Has telerik encountered this problem before? I have another button in the layout that does not have that issues is this a formatting issue or is this a bug? How should I handle this ??

Georgi Tunev
Telerik team
 answered on 02 Mar 2009
1 answer
350 views
Is it possible to do something like this?

<telerik:GridTemplateColumn HeaderText="" UniqueName="TemplateColumn3">
<ItemTemplate>
<asp:ImageButton ID="info" runat="server" OnClientClick="addsubmenu(<%# Eval("DestID") %>)" ImageUrl="~/globalgraphics/webicons/info.jpg" />
</ItemTemplate>
</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 02 Mar 2009
3 answers
85 views
I have created a confirm dialog for my application. It is displayed fine in IE, but in FireFox (3.0.5) the title bar (text and close button) appear slightly above the the window frame (half in and half out). I was wondering if anyone else reported this problem and if so is there a solution. I have changed the default template slightly as follows to use our own images and adjust the styles. Would this have any affect on how the modal is rendered in FF? Is it possible to send a screen shot to you?  Thanks in advance...

<telerik:RadWindowManager Skin="WebBlue" ID="RadWindowManagerPOPUP" runat="server">
    <ConfirmTemplate>
       <div class="windowpopup">  
        <div class="dialogtext"> {1} </div>     
           <div>
             <a onclick="$find('{0}').callBack(true);"
                href="javascript:void(0);" >
                <img src="../images/Ok.gif" style="border:none;" alt="I Accept" />
             </a>
             <a onclick="$find('{0}').callBack(false);"
                href="javascript:void(0);">
                <img src="../images/Cancel.gif" style="border:none;" alt="Cancel" />
             </a>
           </div>
         </div>
     </ConfirmTemplate>
</telerik:RadWindowManager>

 

Georgi Tunev
Telerik team
 answered on 02 Mar 2009
1 answer
107 views


Hi

  The filtering of the columns is shown on the simple grid.
But I want the same thing in the Hierarchical grid.
I want that the filtering must appear on the 2nd and 3rd level of the hierarchical grid i.e the first level must not have any filtering.
Please help me with this. OR just Suggest whether it is possible or not with hierarchical grid.



Thanks in advance.
Regrads,
Ashwini
Princy
Top achievements
Rank 2
 answered on 02 Mar 2009
1 answer
82 views


       Hello All,
   

              I am using Hierachical Grid .In that I want to show Google like filtering in that grid.and this data should be bind with datatable  not a database.


    Please Help me..It's Urgent

    Thanx in Advance.
 

    Regards
    Nisha,
  
Princy
Top achievements
Rank 2
 answered on 02 Mar 2009
1 answer
91 views
Hello,

I would like to introduce the possibility of using two images in a radgrid, one will be to redirect to the first page of my radgrid and the second to reditrect to the last page.

For so I have used the following code:
<PagerStyle Mode="NextPrevNumericAndAdvanced" FirstPageImageUrl="~/_Img/Ico16/IcoPrimeraPagina.gif" LastPageImageUrl="~/_Img/Ico16/IcoUltimaPagina.gif" PageButtonCount="5"  />

Unfortunately is not working. Isn´t it the correct code?

What do yuo suggest me?

Thank you.



Shinu
Top achievements
Rank 2
 answered on 02 Mar 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?