Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
201 views
Hello,

We are facing a problem with the location of the FilterMenu for the top right column
Screen shot here

                    <radG:RadGrid ID="RadGridCtrl" runat="server" GridLines="None" AllowPaging="false" AllowSorting="true" EnableAJAX="true" EnableAJAXLoadingTemplate="true" LoadingTemplateTransparency="0" ShowGroupPanel="True" OnItemDataBound="RadGridCtrl_ItemDataBound" PageSize="30" Width="100%" Height="100%" AutoGenerateColumns="false" OnNeedDataSource="RadGridCtrl_NeedDataSource" DataMember="OUTPUT" AllowFilteringByColumn="true" OnItemCreated="RadGridCtrl_ItemCreated" OnPreRender="RadGridCtrl_PreRender" OnColumnCreated="RadGridCtrl_ColumnCreated" OnItemCommand="RadGridCtrl_ItemCommand"> 
                        <FilterMenu CssClass="FilterMenuClass"></FilterMenu> 
                        <GroupPanel Visible="True" Text="Glissez une entête de colonne et déposez la ici pour exécuter le regroupement sur cette colonne"></GroupPanel> 
                        <ClientSettings AllowColumnsReorder="false" AllowDragToGroup="true" ReorderColumnsOnClient="false" AllowGroupExpandCollapse="true"> 
                            <Selecting AllowRowSelect="true" /> 
                            <ClientEvents OnRowDblClick="RowDblClick" OnGridCreated="GetGridObject" OnRequestEnd="RequestEnd" OnRowSelecting="RowSelecting" OnRowClick="RowClick"/> 
                            <Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling> 
                        </ClientSettings> 
                        <HeaderStyle Width="100px" /> 
                        <PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" PagerTextFormat="&#160;S&#233;lectionner une page: {4} &amp;nbsp;|&amp;nbsp; Page {0} sur {1}, Document {2} &#224; {3} sur {5}." AlwaysVisible="false"/> 
                        <MasterTableView AllowMultiColumnSorting="true" width="100%" GroupLoadMode="Client" ShowFooter="true"  CommandItemDisplay="Top"> 
                            <Columns> 
                                <radG:GridBoundColumn DataField="DDREQNBR" UniqueName="DDREQNBR" AllowFiltering="False" Reorderable="False" Resizable="False" HeaderText="" Groupable="false"> 
                                    <HeaderStyle Width="25px" /> 
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" /> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCDSCDC" HeaderText="Description" UniqueName="DDDOCDSCDC"> 
                                    <HeaderStyle Width="100%"/> 
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="100%"/> 
                                </radG:GridBoundColumn> 
                                <radG:GridTemplateColumn UniqueName="DDEDTIDIMG" Reorderable="False" Resizable="False" AllowFiltering="False"> 
                                    <ItemTemplate> 
                                        <asp:Image ID="ImageButtonEditor" runat="server" ImageAlign="Middle" Style="vertical-align:middle;" BorderWidth="0px" CssClass="FilterButtonClass"/> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="25px" /> 
                                    <ItemStyle HorizontalAlign="Center" Width="25px" VerticalAlign="Middle"/> 
                                </radG:GridTemplateColumn> 
                                <radG:GridBoundColumn DataField="DDEDTID" UniqueName="DDEDTID" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridTemplateColumn UniqueName="DDCMTFLAGIMG" Reorderable="False" Resizable="False" AllowFiltering="False" Display="False"> 
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" /> 
                                    <ItemTemplate> 
                                        <asp:Image ID="ImageButtonComment" runat="server" ImageAlign="Middle" Style="vertical-align:middle;" BorderWidth="0px"/> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="25px" /> 
                                </radG:GridTemplateColumn> 
                                <radG:GridTemplateColumn UniqueName="DDDOCWKFIDIMG" Reorderable="False" Resizable="False" AllowFiltering="False" Display="False"> 
                                    <ItemTemplate> 
                                        <asp:Image ID="ImageWorkflow" runat="server" ImageAlign="Middle" Style="vertical-align:middle;" BorderWidth="0px"/> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="25px" /> 
                                    <ItemStyle HorizontalAlign="Center" Width="25px" VerticalAlign="Middle"/> 
                                </radG:GridTemplateColumn> 
                                <radG:GridTemplateColumn UniqueName="DDVSAFLAGIMG" Reorderable="False" Resizable="False" AllowFiltering="False" Display="False"> 
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" /> 
                                    <ItemTemplate> 
                                        <asp:Image ID="ImageButtonVisa" runat="server" ImageAlign="Middle" Style="vertical-align:middle;" BorderWidth="0px"/> 
                                    </ItemTemplate> 
                                    <HeaderStyle Width="25px" /> 
                                </radG:GridTemplateColumn> 
                                <radG:GridBoundColumn DataField="DDDTPDESC" HeaderText="Nature" UniqueName="DDDTPDESC"> 
                                    <HeaderStyle Width="200px"/> 
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="200px"/> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCCTDTA" HeaderText="Date d'ajout" UniqueName="DDDOCCTDTA" DataType="System.DateTime" DataFormatString="{0:dd/MM/yyyy}"> 
                                    <HeaderStyle Width="110px"/> 
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="110px"/> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCCTTMA" UniqueName="DDDOCCTTMA" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCSTNME" UniqueName="DDDOCSTNME" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDVSAFLAG" UniqueName="DDVSAFLAG" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCWKFID" UniqueName="DDDOCWKFID" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDCMTFLAG" UniqueName="DDCMTFLAG" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDEPID" UniqueName="DDDEPID" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDDBID" UniqueName="DDDDBID" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCDCTID" UniqueName="DDDOCDCTID" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCCTUSR" UniqueName="DDDOCCTUSR" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCMDFUS" UniqueName="DDDOCMDFUS" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCMFDTA" UniqueName="DDDOCMFDTA" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCMFTMA" UniqueName="DDDOCMFTMA" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCDTPA8" UniqueName="DDDOCDTPA8" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCNUMBA" UniqueName="DDDOCNUMBA" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCPNMBA" UniqueName="DDDOCPNMBA" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDCVIDXST" UniqueName="DDDCVIDXST" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCARCID" UniqueName="DDDOCARCID" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCVRSID" UniqueName="DDDOCVRSID" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDSTKUNIT" UniqueName="DDSTKUNIT" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDVRSFLAG" UniqueName="DDVRSFLAG" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDLNKFLAG" UniqueName="DDLNKFLAG" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDTPR25A" UniqueName="DDDTPR25A" Display="False"> 
                                </radG:GridBoundColumn> 
                                <radG:GridBoundColumn DataField="DDDOCPACID" UniqueName="DDDOCPACID" Display="False"> 
                                </radG:GridBoundColumn> 
                            </Columns> 
                            <NoRecordsTemplate> 
                                Il n'y a aucun document Ã  afficher. 
                            </NoRecordsTemplate> 
                            <CommandItemTemplate> 
                                <table> 
                                <tr> 
                                <td valign="middle"> 
                                <font class="LabelFrameMainSelfCapture"><strong>Liste des documents </strong></font>&#160; 
                                </td> 
                                <td valign="middle"> 
                                <a href="#" onclick="javascript:GS_AddLotPAC('<%=ViewState["G_USR"]%>','<%=ViewState["G_ENV"]%>');"><asp:Image ID="btnLot" runat="server" ImageUrl="img/NAVGO/GS00addlot.gif" Visible="true" ToolTip="Ajouter un document Ã  un panier" /></a> 
                                </td> 
                                </tr> 
                                </table>                                 
                            </CommandItemTemplate> 
                        </MasterTableView> 
                        <AJAXLoadingTemplate> 
                            <table width="100%" cellpadding="0" cellspacing="0" height="100%" bgcolor="white"> 
                                <tr> 
                                    <td style="cursor: wait; width: 100%; height: 100px" valign="middle" align="center"> 
                                        <asp:Image ID="ImageWait" runat="server" SkinID="WaitSkin"/> 
                                    </td> 
                                </tr> 
                            </table> 
                        </AJAXLoadingTemplate> 
                    </radG:RadGrid> 
 

Filter menu is filled this way :
GridFilterMenu filterMenu = RadGridCtrl.FilterMenu; 
        foreach (GridMenuItem menuItem in filterMenu.Items) 
        { 
            switch (menuItem.Text) 
            { 
                case "NoFilter": 
                    menuItem.Text = "Aucun"; 
                    break; 
                case "Contains": 
                    menuItem.Text = "Contient"; 
                    break; 
                case "DoesNotContain": 
                    menuItem.Text = "Ne contient pas"; 
                    break; 
                case "StartsWith": 
                    menuItem.Text = "Commence par"; 
                    break; 
                case "EndsWith": 
                    menuItem.Text = "Fini par"; 
                    break; 
                case "EqualTo": 
                    menuItem.Text = "Egale Ã "; 
                    break; 
                case "NotEqualTo": 
                    menuItem.Text = "Différent de"; 
                    break; 
                case "GreaterThan": 
                    menuItem.Text = "Supérieur Ã "; 
                    break; 
                case "LessThan": 
                    menuItem.Text = "Inférieur Ã "; 
                    break; 
                case "GreaterThanOrEqualTo": 
                    menuItem.Text = "Supérieur ou Ã©gale Ã "; 
                    break; 
                case "LessThanOrEqualTo": 
                    menuItem.Text = "Inférieur ou Ã©gale Ã "; 
                    break; 
                case "Between": 
                    menuItem.Text = "Entre"; 
                    break; 
                case "NotBetween": 
                    menuItem.Text = "Pas entre"; 
                    break; 
                default: 
                    break; 
            } 
        } 
 

Is it possible de place this menu in different location?

thanks,
Cedric





Sebastian
Telerik team
 answered on 02 Oct 2008
3 answers
85 views
Hi-

I'm using the Q1 RC for Ajax context menu, populated via web service, in an Ajaxified page.  I have noticed that upon each postback, the (generated) field "RadContextMenu1_ClientState" grows a little larger each time, even if the user never opened the context menu.  My app uses the context menu with no static root menu, based upon the example code posted by Telerik a while back.

After a number of postbacks, the field will look like this:
RadContextMenu1_ClientState, size 115 = {"logEntries":[{"Type":3},{"Type":3},{"Type":3},{"Type":3},{"Type":3},{"Type":3},{"Type":3},{"Type":3},{"Type":3}]}

I need the menu to be re-created via the webservice after every postback, because its state and contents change.  I do NOT include the context menu in the list of updated controls in the Ajax Manager.  Why?  Because even though all I'm doing in the .cs file is removing all the menu items, downloading the empty menu adds about 1.1K to my pagesize.  Therefore, I manually clear out all the menu items during the Ajax Manager handler, onResponseEnd:

    var menu = GetRadContextMenu();
    if (menu.get_persistLoadOnDemandItems())
    {
        menu.trackChanges();
        menu.get_items().clear();
        menu.commitChanges();
        menu._itemsLoaded = false;
    }

If I try to clean up the menu in the menu's item close handler, it interferes with my handling of the actual menu item click.  The menu works fine in this way EXCEPT that the Client State field just grows and grows by the "{"Type":3}" on each postback.

I could see no way to control this, except to add a hack to explicitly blank out the value in onResponseEnd():

form1.RadContextMenu1_ClientState.value = "";


Telerik, can you explain what's going on?  Am I doing something totally wrong here?

Many thanks..
Atanas Korchev
Telerik team
 answered on 02 Oct 2008
2 answers
123 views
I am using the EnableEmbeddedSkins="false" on all telerik controls in my project with much success. However in one instance the checkboxes on my treeview disappears. So I changed the setting for this control on the page to "true" and all seems to work fine and the checkboxes are visible and working as expected. So this tells me there is something wrong with the CSS or related images or .... not sure.

Lets add some wood to the fire. When in my data there are no items that should be checked the nodes are set to use a webservice to populate the treeview when a node is expanded client side. This all works fine and the checkboxes are visible. OK now this is when it all goes wrong. When I have data where there are nodes that need to be checked I populate the entire treeview server side taking special care to make all nodes are checkable etc. When the page and treeview become visible the check boxes are not visible but the area where the checkboxes should be is all white indicating a css or image issue. To show there is nothing wrong with my code I set EnableEmbeddedSkins="true" and presto the checkboxes are visible.

I have downloaded the latest version of the ajax telerik controls and copied the relevant TreeView.WebBlue.css and images and still no joy. Any ideas ?

tks Hans
Atanas Korchev
Telerik team
 answered on 02 Oct 2008
5 answers
419 views
Hi

I am using Radgrid,radwindow controls,when i am using paging,sorting or filtering the following error comes in status bar

Sys.InvalidOperationException: A control is already associated with the element.

How i can remove this and what is the cause of this error?

Thanks
Atul
Pavel
Telerik team
 answered on 02 Oct 2008
2 answers
126 views
RadToolBar error, when I try to put the toolbar in horizontal way always appears to me in phase of planning in vertical way as I resolve this problem? , because it is much problematic one in order to make a planning of a page. I attend your news.

Thanks
Gennaro
Top achievements
Rank 1
 answered on 02 Oct 2008
2 answers
82 views
Hi,

I have a combobox which is databinded to a table in my database which has about 2000 rows within it. Is there any way to set the radcombobox to load these items quickily? at the moment it's taking too long to load which means i can't use it in my current application.

TIA
Paul
Telerik team
 answered on 02 Oct 2008
6 answers
183 views
Greetings folks.

I have recently migrated one of my pages to use the latest of offerings from Telerik; namely the ASP.net AjAX controls.

The migration was, I found, nice and easy and not cumbersome at all. The process is pretty much what I would have expected it to be.

My main issues however are coming from the CSS and skinning. It's all fairly straight forward but the RadMenu CSS that is now being used for the filter menu is rendering the menu above my grid, across the top of the page and pushing the rest of the content down!

The strange thing is that upon immediate migration to the new grid, I had no issue with the positioning of the menu. I then started to include CSS files for other controls and begin to customize my own skins and then suddenly this issue surfaced. I since removed all the CSS changes I made and the problem still persists. I then reverted my code completely to the last working committed version and started the migration over and the problem is still there. In conclusion, what gives?

In IE, the CSS is even rendering the display as none so I can't see the menu items. Firefox is not doing that. Even if I include one of the give telerik CSS files for the RadMenu, I get a nice looking menu but it's rendered above the grid.

Any thoughts?


Regards.

Dimo
Telerik team
 answered on 02 Oct 2008
2 answers
125 views
Hi All

I have Rad Chart on one off my page and is working fine, i just want to change the backgroud color. i mean the color on the sides of x-axis and y-axis.
 
Can anyone help please
Thanks
Ricky
Top achievements
Rank 2
 answered on 02 Oct 2008
1 answer
122 views
Debugging my first web application using a DateTimePicker Rad control and I continue to get "Failed to convert parameter value from a DatePickingInput to a DateTime" errors. Any ideas on how to proceed?

Here's the code snippet:

cmd =

new SqlCommand("INSERT INTO Act (Title, StartDate, EndDate VALUES (@Title, @StartDate, @EndDate", conn);

cmd.Parameters.Add(

"Title", SqlDbType.Char, 50).Value = ActTitle.Text;

cmd.Parameters.Add(

"StartDate", SqlDbType.DateTime).Value = ActStart.DateInput;

cmd.Parameters.Add(

"EndDate", SqlDbType.DateTime).Value = ActEnd.DateInput;

conn.Open();

cmd.ExecuteNonQuery();

Vlad
Telerik team
 answered on 02 Oct 2008
5 answers
166 views
We are trying to figure out how to get a long title to appear in a relatively small radwindow and have exhausted all of our lines of research on this. The issue is that the title bar is divided into a 3-cell table, with the first cell used for the icon, the second for the title and the third for the control buttons.

Regardless what we try, it appears that the 2nd and 3rd cells always divided the available space 50/50, but our title for this window needs to consume about 80% of the available space.

I am not sure that this can be implemented through the available classes/configuration, but it would be incredibly helpful if it could be or if someone knows of a workaround that we might have missed.

Thank you!
Martin
Telerik team
 answered on 02 Oct 2008
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?