[CLOSED] Change texts in contextmenu

  1. #1

    [CLOSED] Change texts in contextmenu

    *Hi,I need to change a text in contextmenu on the GridColumn ( s.a.: *'Sort Ascending', 'Sort Descending'). *It is possible?




    Bartek
  2. #2

    RE: [CLOSED] Change texts in contextmenu

    Hi,

    The 'Sort Ascending' and 'Sort Descending' labels can be changed with SortAscText and SortDescText of GridView Class.
    For example you can add next code to your GridPanel

    <View>
          <ext:GridView runat="server" SortAscText="My Asc Text" SortDescText="My Desc Text" />
    </View>
  3. #3
    Quote Originally Posted by vladimir View Post
    Hi,

    The 'Sort Ascending' and 'Sort Descending' labels can be changed with SortAscText and SortDescText of GridView Class.
    For example you can add next code to your GridPanel

    <View>
          <ext:GridView runat="server" SortAscText="My Asc Text" SortDescText="My Desc Text" />
    </View>
    hi i am added this code after my gridpanel code

    <ext:GridPanel ID="gridAntiVrsRcrd" runat="server" Title="Kayıtlar" Frame="True" 
                        AutoExpandColumn="TargetHostName" Height="300px" Width=500
                            meta:resourcekey="gridAntiVrsRcrdResource1">
                        <Store>
                            <ext:Store ID="storeAntiVirusRecord" runat="server" RemoteSort="true" 
                                meta:resourcekey="storeAntiVirusRecordResource1">
                                <Proxy>
                                    <ext:HttpProxy Method="GET" Url="GenericHandler/AntivirusRecordHandler.ashx" />
                                </Proxy>
                                <AutoLoadParams>
                                    <ext:Parameter Name="start" Value="={0}" />
                                    <ext:Parameter Name="limit" Value="={10}" />
                                </AutoLoadParams>
                                <Reader>
                                    <ext:JsonReader Root="Data" TotalProperty="TotalRecords">
                                        <Fields>
                                              <ext:RecordField Name="ID" Type=Int />
                                              <ext:RecordField Name="TargetHostName" Type="String" />
                                              <ext:RecordField Name="TargetFileName" Type="String" />
                                               <ext:RecordField Name="Received_UTC" Type=Date />
                                        </Fields>
                                    </ext:JsonReader>
                                </Reader>
                                <SortInfo Field="TargetHostName" Direction="ASC" />
                            </ext:Store>
                        </Store>          
    
                        <ColumnModel DefaultSortable="True"></ColumnModel>
                        <BottomBar>
                            <ext:PagingToolbar ID="pgngTlbrAntVrsRcr" 
                                runat="server" 
                                PageSize="10"
                                DisplayInfo="true" 
                                DisplayMsg="Displaying plants {0} - {1} of {2}" 
                                EmptyMsg="No plants to display" meta:resourcekey="pgngTlbrAntVrsRcrResource1" 
                                />
                        </BottomBar>
                        <LoadMask ShowMask="true" />
                    </ext:GridPanel>
                    <View>
                        <ext:GridView runat="server" <SPAN class=highlight>SortAscText</SPAN>="My Asc Text" SortDescText="My Desc Text" />
                     </View>
    if i started show this message Error The server tag is not well formed.


    i didnt understand the use of span.
  4. #4
    Hi,

    View is inner property of the GridPanel, please move your View inside the grid

Similar Threads

  1. [CLOSED] Can I cancel out of a contextMenu
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 24, 2011, 8:44 AM
  2. [CLOSED] ColumnTree contextmenu
    By kenanhancer in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 14, 2011, 2:38 PM
  3. ContextMenu
    By Maia in forum 1.x Help
    Replies: 2
    Last Post: Dec 08, 2009, 4:12 PM
  4. updating texts on the fly
    By alexp in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 12, 2009, 8:12 AM
  5. FieldSet problem movement texts
    By Vinturi in forum 1.x Help
    Replies: 0
    Last Post: Feb 09, 2009, 12:57 PM

Posting Permissions