+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Display interrelated module information in field selector control

Display interrelated module information in field selector control

1 posts, 0 answered
  1. Tabish Usman
    Tabish Usman avatar
    25 posts
    Registered:
    27 May 2011
    16 Mar
    Link to this post

    I have three modules brand ,Country , offer.
    In offer module I have created a field control which is currently showing the information as shown in the attached image.(its showing brand's Title,date and country's ids).

    In field control I have following code in its .ascx file.

    <sf:FlatSelector ID="itemsSelector" runat="server"
     ItemType="Telerik.Sitefinity.GenericContent.Model.Content"
     DataKeyNames="Id" ShowSelectedFilter="false" AllowPaging="true" PageSize="100"
     AllowMultipleSelection="false"
     AllowSearching="true" ShowProvidersList="false" InclueAllProvidersOption="true"
     SearchBoxTitleText="Filter by Title" ShowHeader="true"
     ServiceUrl="~/Sitefinity/Services/DynamicModules/Data.svc/live/">
    <DataMembers>
     <sf:DataMemberInfo runat="server" Name="Title" IsExtendedSearchField="true" HeaderText='Title'>
     <strong>{{Title.Value}}</strong>
     </sf:DataMemberInfo>
     
     <sf:DataMemberInfo runat="server" Name="PublicationDate" HeaderText='Date'>
     <span>{{PublicationDate ? PublicationDate.sitefinityLocaleFormat('dd MMM, yyyy') : ""}}  </span>
     </sf:DataMemberInfo>
     
     <sf:DataMemberInfo runat="server" Name="Country" IsExtendedSearchField="true" HeaderText='Country'>
     <strong>{{Country}}</strong>
     </sf:DataMemberInfo>
    </DataMembers>
    </sf:FlatSelector>

    Now in last column inside DataMemberInfo I have called {{Country}} which is currently displaying Guids concatenated  string(can be seen in attached image) ,instead I want to display Country's Title.
    Kindly suggest if a server side method can be called inside DataMemberInfo or any other workaround for that will be appreciated. 
     

1 posts, 0 answered