set the GroupingSettings.RetainGroupFooterVisibility property to true.

<telerik:RadGrid ID="RadGridRMEmployee" runat="server" AllowMultiRowSelection="True" OnNeedDataSource="RadGridRMEmployee_NeedDataSource" onprerender="RadGridRMEmployee_PreRender"> <ClientSettings Selecting-AllowRowSelect="true" AllowDragToGroup="True" EnablePostBackOnRowClick="true"> <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True"></Selecting> </ClientSettings> <MasterTableView DataKeyNames="EmployeeIDl"> <Columns> <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" /> </Columns> <PagerStyle AlwaysVisible="True"></PagerStyle> </MasterTableView> </telerik:RadGrid>protected void btnSaveTask_Click(object sender, EventArgs e) { bool check; foreach (GridDataItem item in RadGridRMEmployee.SelectedItems) { CheckBox chk = (CheckBox)item["ClientSelectColumn"].Controls[0]; string EmployeeID = item["EmployeeID"].Text;//HOW TO GET THESE 3 VALUES string EmployeeName = item["EmployeeName"].Text; string EmployeeType = item["EmployeeType"].Text; string EmployeeEmail = item["EmployeeEmail"].Text;}}
Sharepoint PeopleEditor control is not rendering properly if it is placed within the RadTabStripà RadTab controls (see sample screenshot from this link). We checked it within FireFox fire bug as you can see below the control type is set to hidden. Is there something that we need to set in the attributes of the Rad controls?
Rendered in FireFox
<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_hiddenSpanData" type="hidden" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$hiddenSpanData"/>
<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_OriginalEntities" type="hidden" value="<Entities><Entity Key="DS\francis.a.b.rosos" DisplayText="Rosos, Francis A. B." IsResolved="True" Description="DS\francis.a.b.rosos">
When we changed the type attribute value from hidden to text we can see the expected value e.g. Rosos, Francis A. B.
<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_hiddenSpanData" type="text" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$hiddenSpanData"/>
<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_OriginalEntities" type="text" value="<Entities><Entity Key="DS\francis.a.b.rosos" DisplayText="Rosos, Francis A. B." IsResolved="True" Description="DS\francis.a.b.rosos">
Html representation
|
<wssawc:PeopleEditor AllowEmpty="true" ValidatorEnabled="true" id="pplEditorMyBackup" AllowTypeIn="false" runat="server" SelectionSet="User,SecGroup,SPGroup,DL" width="350px" visible="true" MultiSelect="true" EnableViewState="true" onkeydown="javascript:AllowDeleteOnly(event);" onkeypress="javascript:AllowDeleteOnly(event);" /> |
Source view in FireFox
|
<span id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01" style="display: inline-block; width: 350px;" eeaftercallbackclientscript="" showentitydisplaytextintextbox="0" allowempty="1" value="true" removetext="Remove" moreitemstext="More Names..." nomatchestext="<No Matching Names>"> <input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_hiddenSpanData" type="hidden" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$hiddenSpanData"/> <input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_OriginalEntities" type="hidden" value="<Entities><Entity Key="DS\francis.a.b.rosos" DisplayText="Rosos, Francis A. B." IsResolved="True" Description="DS\francis.a.b.rosos"><ExtraData><ArrayOfDictionaryEntry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DictionaryEntry><Key xsi:type="xsd:string">DisplayName</Key><Value xsi:type="xsd:string">Rosos, Francis A. B.</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">Email</Key><Value xsi:type="xsd:string">francis.a.b.rosos@accenture.com</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">SPUserID</Key><Value xsi:type="xsd:string">8</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">Title</Key><Value xsi:type="xsd:string">Programmer</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">PrincipalType</Key><Value xsi:type="xsd:string">User</Value></DictionaryEntry></ArrayOfDictionaryEntry></ExtraData></Entity></Entities>" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$OriginalEntities"/> <input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_HiddenEntityKey" type="hidden" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$HiddenEntityKey"/> <input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_HiddenEntityDisplayText" type="hidden" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$HiddenEntityDisplayText"/> <table id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_OuterTable" class="ms-usereditor" cellspacing="0" cellpadding="0" border="0" style="width: 350px; border-collapse: collapse;"> <tbody> <tr> <td valign="top"> <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; table-layout: fixed;"> <tbody> <tr> <td> <div id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_upLevelDiv" class="ms-inputuserfield" autopostback="0" style="display: none; position: absolute;" tabindex="0" name="upLevelDiv"/> <textarea id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_downlevelTextBox" class="ms-input" style="width: 100%;" autopostback="0" title="People Picker" onkeyup="onKeyUpRw('ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01');" onkeydown="return onKeyDownRw(this, 'ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01', 3, false, event);" cols="20" rows="3" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$downlevelTextBox"/> </td> </tr> </tbody> </table> </td> </tr> <tr> </tr> <tr style="padding-top: 2px;"> </tr> </tbody> </table> </span> |
But when I ran my app, the same error occurred.
So then I changed the property setting to this: TemporaryFolder="~/Logs"
The "Logs" folder is an existing one that also has Write privileges.
<telerik:RadGrid ID="grdResults" runat="server" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="False" CellSpacing="-1" GridLines="Both" PageSize="100"> <ExportSettings IgnorePaging="True" OpenInNewWindow="True" ExportOnlyData="True" FileName="CUMapListings"> <Excel AutoFitImages="True" Format="ExcelML" /> <Csv ColumnDelimiter="VerticalBar" EncloseDataWithQuotes="False" /> </ExportSettings> <MasterTableView CommandItemDisplay="Top" UseAllDataFields="true" TableLayout="Fixed"> <HeaderStyle Font-Bold="true" /> <CommandItemTemplate> <asp:LinkButton ID="btnPrint" runat="server" CommandName="PrintResults" Visible="true" OnClientClick="PrintRadGrid(); return false;"><img style="border:0px;vertical-align:middle;" alt="" src="/Images/DownloadPrinter.png"/>Print</asp:LinkButton> <asp:LinkButton ID="btnExportMap" runat="server" CommandName="ExportMapListing" Visible="true"><img style="border:0px;vertical-align:middle;" alt="" src="/Images/Help/CSV_Export.jpg"/>Excel Download</asp:LinkButton> </CommandItemTemplate> <AlternatingItemStyle BackColor="LightGray" /> <Columns> <telerik:GridTemplateColumn UniqueName="RowNumber"> <ItemTemplate> <asp:Label ID="lblRowNumber" runat="server" /> </ItemTemplate> <ItemStyle Font-Bold="true" /> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="_search_asiNum" Visible="false" DataField="asi_num"> <ItemTemplate> <asp:Label ID="_search_asiNum" runat="server" /> </ItemTemplate> <ItemStyle Font-Bold="true" /> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="CUInfo" HeaderText="ADDRESS"> <ItemTemplate> <asp:Label ID="lblCULink" runat="server" Visible="false" /> <asp:LinkButton runat="server" ID="CU_LinkButton" Visible="false"></asp:LinkButton> <br /> <asp:Label ID="lblAddressInfo" runat="server" Visible="True" /> </ItemTemplate> <HeaderStyle HorizontalAlign="Center" /> </telerik:GridTemplateColumn> <telerik:GridBoundColumn HeaderText="MEMBER" UniqueName="MemberType" FilterControlAltText="Filter column column" DataField="MemberType"> <ColumnValidationSettings> <ModelErrorMessage Text=""></ModelErrorMessage> </ColumnValidationSettings> <ItemStyle HorizontalAlign="Center" /> <HeaderStyle HorizontalAlign="Center" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="PHONE" UniqueName="Phone" FilterControlAltText="Filter column column" DataField="cuPhone"> <ColumnValidationSettings> <ModelErrorMessage Text=""></ModelErrorMessage> </ColumnValidationSettings> <ItemStyle HorizontalAlign="Center" /> <HeaderStyle HorizontalAlign="Center" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="APPROX. MILES" UniqueName="Miles" FilterControlAltText="Filter column column" DataField="Distance" DataFormatString="{0:####.#0}"> <ColumnValidationSettings> <ModelErrorMessage Text=""></ModelErrorMessage> </ColumnValidationSettings> <ItemStyle HorizontalAlign="Center" /> <HeaderStyle HorizontalAlign="Center" /> </telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="Directions" HeaderText="DRIVING DIRECTION"> <ItemTemplate> <asp:PlaceHolder runat="server"> <a href="http://google.com/maps/dir/<;%# DataBinder.Eval(Container.DataItem, "Address1")%>%2C+<%# DataBinder.Eval(Container.DataItem, "City")%>+<%# DataBinder.Eval(Container.DataItem, "state_id")%>+<%# DataBinder.Eval(Container.DataItem, "zip_code")%>/<%# Request.QueryString("A")%>%2C+<%# Request.QueryString("C")%>+<%# Request.QueryString("S")%>+<%# Request.QueryString("Z")%>" target="_blank">To <%# Request.QueryString("N")%></a> <br /> <a href="http://google.com/maps/dir/<;%# Request.QueryString("A")%>%2C+<%# Request.QueryString("C")%>+<%# Request.QueryString("S")%>+<%# Request.QueryString("Z")%>/<%# DataBinder.Eval(Container.DataItem, "Address1")%>%2C+<%# DataBinder.Eval(Container.DataItem, "City")%>+<%# DataBinder.Eval(Container.DataItem, "state_id")%>+<%# DataBinder.Eval(Container.DataItem, "zip_code")%>" target="_blank">From <%# Request.QueryString("N")%></a> </asp:PlaceHolder> </ItemTemplate> <HeaderStyle HorizontalAlign="Center" /> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <PagerStyle PageSizeControlType="RadComboBox" /></telerik:RadGrid>Private Sub grdResults_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles grdResults.ItemCommand If e.CommandName = "ExportMapListing" Then grdResults.ExportSettings.ExportOnlyData = True grdResults.ExportSettings.FileName = "ExportMapListing" grdResults.MasterTableView.ExportToExcel() End IfEnd SubPrivate Sub grdResults_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles grdResults.ItemDataBound 'Set Row Count If TypeOf e.Item Is Telerik.Web.UI.GridDataItem Then Dim rowCounter As Integer = 0 Dim lblRowNumber As Label = TryCast(e.Item.FindControl("lblRowNumber"), Label) rowCounter = grdResults.MasterTableView.PageSize * grdResults.MasterTableView.CurrentPageIndex lblRowNumber.Text = (e.Item.ItemIndex + 1 + rowCounter).ToString() Dim lblCULink As Label = TryCast(e.Item.FindControl("lblCULink"), Label) Dim CU_LinkButton As LinkButton = TryCast(e.Item.FindControl("CU_LinkButton"), LinkButton) Dim lblAddressInfo As Label = TryCast(e.Item.FindControl("lblAddressInfo"), Label) lblAddressInfo.Text = DataBinder.Eval(e.Item.DataItem, "Address1") & "<br />" & _ DataBinder.Eval(e.Item.DataItem, "City") & " " & _ DataBinder.Eval(e.Item.DataItem, "state_id") & " " & _ DataBinder.Eval(e.Item.DataItem, "zip_code") If DataBinder.Eval(e.Item.DataItem, "MemberType") = "Non-member" Then e.Item.ForeColor = Drawing.Color.Black lblCULink.Visible = True lblCULink.Text = "<a href=""/cuDataAnalysis/cuSummary.aspx?Charter_num=" & DataBinder.Eval(e.Item.DataItem, "charter_num") & """>" & DataBinder.Eval(e.Item.DataItem, "CUName") & " (" & DataBinder.Eval(e.Item.DataItem, "charter_num") & ")</a>" CU_LinkButton.Visible = False Else e.Item.ForeColor = Drawing.Color.Green 'lblCULink.Text = "<a href=""/CUTracking/ContactManager/default.aspx?_search_asiNum=" & DataBinder.Eval(e.Item.DataItem, "asi_num") & """>" & DataBinder.Eval(e.Item.DataItem, "CUName") & " (" & DataBinder.Eval(e.Item.DataItem, "charter_num") & ")</a>" lblCULink.Visible = False CU_LinkButton.Visible = True CU_LinkButton.PostBackUrl = "/CUTracking/ContactManager/default.aspx" '?_search_asiNum=" & DataBinder.Eval(e.Item.DataItem, "asi_num") CU_LinkButton.Text = DataBinder.Eval(e.Item.DataItem, "CUName") & " (" & DataBinder.Eval(e.Item.DataItem, "charter_num") & ")" End If End IfEnd Sub