or
| <MasterTableView ClientDataKeyNames="IdContact" GroupLoadMode="Client" | |
| NoMasterRecordsText="" ShowHeadersWhenNoRecords="true" Width="100%"> | |
| <GroupByExpressions> | |
| <telerik:GridGroupByExpression> | |
| <SelectFields> | |
| <telerik:GridGroupByField FieldAlias="MembreConvers" FieldName="MembreConvers" | |
| HeaderText="Participe" /> | |
| </SelectFields> | |
| <GroupByFields> | |
| <telerik:GridGroupByField FieldName="MembreConvers" /> | |
| </GroupByFields> | |
| </telerik:GridGroupByExpression> | |
| </GroupByExpressions> | |
| <Columns> | |
| <telerik:GridMaskedColumn DataField="MembreConvers" | |
| SortExpression="MembreConvers"> | |
| </telerik:GridMaskedColumn> | |
| <!-- Continue --> |
| //Called When WebService GetContactListForConversation return | |
| function SucceededCallbackGetParticipants(result, eventArgs) { | |
| //Conversation ID - and so window - is in eventArgs. | |
| //It allows us to get current conversation's radWindow | |
| var radWindowManager = GetRadWindowManager(); | |
| var window_ = radWindowManager.getWindowById(eventArgs); | |
| if (window_ != null) { | |
| //Get the frame | |
| var frame = window_.get_contentFrame(); | |
| //Get the window | |
| var windowContent_ = frame.contentWindow; | |
| var radGrid = windowContent_.$find("RadGridContacts"); | |
| //Get Master TableView | |
| var tableView = radGrid.get_masterTableView(); | |
| //Set dataSource and DataBind | |
| tableView.set_dataSource(result); | |
| tableView.dataBind(); | |
| //Using setTimeout instead of setInterval(firefox compatible) | |
| setTimeout(function() { GetParticipantsForConversation(eventArgs) }, timeout); | |
| } |
| public class Contact | |
| { | |
| public string NomPrenom { get; set; } | |
| public int IdContact { get; set; } | |
| public string EnLigne { get; set; } | |
| public string MembreConvers { get; set; } | |
| // Continue here .... | |
| } |
| //Test | |
| List<Contact> contactsList = new List<Contact>(); | |
| //there will be 2 groups : "Oui" and "Non". | |
| contactsList.Add(new Contact("", 0, true, "Oui")); | |
| contactsList.Add(new Contact("", 0, true, "Non")); RadGridContacts.MasterTableView.DataSource = contactsList; | |
| /*And when I'm updating Client-side, group "Oui" and "Non" are limited to 1 item each. How can I fill them client-side?*/ |
| Webpage error details |
| User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; FDM; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729) |
| Timestamp: Thu, 27 Aug 2009 14:19:42 UTC |
| Message: 'style.getPropertyValue' is null or not an object |
| Line: 176 |
| Char: 1 |
| Code: 0 |
| URI: http://www.arkadas.com.tr/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.311.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af48f6488-574a-46fe-9b15-624f013d8c03%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4%3ae330518b%3a1e771326%3ac8618e41 |
| <telerik:RadMenu Width="150px" DataFieldID="OID" DataValueField="OID" |
| DataTextField="Name" ID="MenuCategories" runat="server" |
| DataSourceID="DataSourceMenu" |
| AppendDataBoundItems="False" DefaultGroupSettings-Flow="Vertical" |
| Flow="Vertical" Skin="MyDefaultLeft" EnableEmbeddedSkins="false" |
| ondatabound="MenuCategories_DataBound" DataFieldParentID="OIDParent" |
| MaxDataBindDepth="2" EnableAutoScroll="True"> |
| <ItemTemplate> |
| <table width="140px"> |
| <tr> |
| <td id="td" runat="server" onmouseover='<%#Open(Eval("OID"))%>' onmouseout='<%#Close(Eval("OID"))%>'> |
| <asp:LinkButton ID="linkButton" Font-Underline="false" OnClick="linkButton_Click" CommandArgument='<%#Eval("OID") %>' runat="server" Text='<%#Eval("Name")%>'></asp:LinkButton> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| </telerik:RadMenu> |
| public string Open(object o) |
| { |
| string ret = ""; |
| if (!Categories.Exists(x => x.OIDParent == new Guid(o.ToString()))) |
| { |
| ret = string.Format( "newwindow=window.radopen('../PageReproductionDetails.aspx?oid={0}',null);" , o.ToString() ) + "newwindow.moveTo(520,300);"; |
| } |
| return ret; |
| } |
| public string Close(object o) |
| { |
| string ret = ""; |
| if (!Categories.Exists(x => x.OIDParent == new Guid(o.ToString()))) |
| ret = "newwindow.close();"; |
| return ret; |
| } |

| // Abbreviated function for ease of reading |
| function ShowContext(sender,args){ |
| var menu = $find("GridContextMenu"); |
| var selectedindex = args.get_itemIndexHierarchical(); |
| //Not sure about below |
| var parentindex = sender.get_parentView().getDataKeyNames("EventId"); |
| menu.show(args.get_domEvent()); |
| } |