PDA

View Full Version : [CLOSED] Change texts in contextmenu



frytas
Oct 16, 2008, 4:51 AM
 Hi,I need to change a text in contextmenu on the GridColumn ( s.a.:  'Sort Ascending', 'Sort Descending').  It is possible?




Bartek

Vladimir
Oct 16, 2008, 6:25 AM
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>

voldamirin
Aug 23, 2010, 11:45 AM
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.

Vladimir
Aug 23, 2010, 12:06 PM
Hi,

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