or
Hi,
I want to disable "grouping" function. For some reason, I keep getting it no matter I set GroupingEnabled="False" on grid,
adding Groupable="false" to columns and AllowDragToGroup="false" in clientSettings. It allows me to drag the header and then will return a javascript error "'this.get_element()' is null or not an object". Please help how to set GROUPING off. thanks!!
| <telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="True" GroupingEnabled="False" |
| AllowSorting="True" AutoGenerateColumns="False" |
| Skin="Black" SelectedItemStyle-ForeColor="Aqua" |
| OnSortCommand="RadGrid1_SortCommand" ShowGroupPanel="False"> |
| <MasterTableView ClientDataKeyNames="AlarmGUID" RowIndicatorColumn-Display="false" TableLayout="auto" AllowMultiColumnSorting="true" > |
| <Columns> |
| <telerik:GridBoundColumn DataField="Severity" HeaderText="Severity" |
| SortExpression="Severity" ItemStyle-BorderColor="Black" ItemStyle-Wrap="false" |
| ItemStyle-HorizontalAlign="Left" Groupable="False" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="DisplayName" HeaderText="Display Name" |
| SortExpression="DisplayName" ItemStyle-BorderColor="Black" |
| ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="Left" |
| Groupable="False" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Description" HeaderText="Description" |
| SortExpression="Description" ItemStyle-BorderColor="Black" |
| ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="Left" |
| Groupable="False" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="TimeFirst" HeaderText="Time First" |
| SortExpression="TimeFirst" ItemStyle-BorderColor="Black" ItemStyle-Wrap="false" |
| ItemStyle-HorizontalAlign="Left" Groupable="False" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="TimeLast" HeaderText="Time Last" |
| SortExpression="TimeLast" ItemStyle-BorderColor="Black" ItemStyle-Wrap="false" |
| ItemStyle-HorizontalAlign="Left" Groupable="False" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="AckedBy" HeaderText="Acked By" |
| SortExpression="AckedBy" ItemStyle-BorderColor="Black" ItemStyle-Wrap="false" |
| ItemStyle-HorizontalAlign="Left" EmptyDataText="UnAcked" |
| Groupable="False" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="TimeAcked" HeaderText="Time Acked" |
| SortExpression="TimeAcked" ItemStyle-BorderColor="Black" ItemStyle-Wrap="false" |
| ItemStyle-HorizontalAlign="Left" EmptyDataText="UnAcked" |
| Groupable="False" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="OccurrenceCount" |
| HeaderText="Occurrence Count" SortExpression="OccurrenceCount" |
| ItemStyle-BorderColor="Black" ItemStyle-Wrap="false" Groupable="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="NewOccurrenceCount" |
| HeaderText="New Occurrence Count" SortExpression="NewOccurrenceCount" |
| ItemStyle-BorderColor="Black" ItemStyle-Wrap="false" > |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <SortingSettings EnableSkinSortStyles="false" /> |
| <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowDragToGroup="false"> |
| <Resizing AllowColumnResize="True"/> |
| <Selecting AllowRowSelect="True" /> |
| <ClientEvents OnRowSelected="RadGrid1_RowSelected" OnRowDeSelected="RadGrid1_RowDeselected" OnRowCreated="RadGrid1_RowCreate" OnRowContextMenu="RowContextMenu" /> |
| <Resizing AllowRowResize="False" /> |
| </ClientSettings> |
| <SelectedItemStyle ForeColor="Aqua" /> |
| </telerik:RadGrid> |
| a.RadAsyncUpload.prototype={initialize:function(){a.RadAsyncUpload.callBaseMethod(this,"initialize"); |
| this.add_fileUploaded(c.proxy(this._onFileUploadEnd,this)); |
| this.add_fileUploadFailed(c.proxy(this._onFileUploadEnd,this)); |
| if(this._getIsManagerDeclared()){getRadProgressManager()._addParamToCallbackUrl("type","rau"); |
| }},appendStyledFileInput:function(k){var f=this.createFileInput(); |
| this._fileInput=f; |
| $addHandlers(f,{change:this.uploadFileSelected},this); |
| if($telerik.isIE){$addHandlers(f,{mousedown:this._getFileInputMouseDownHandler(),mouseup:this._getFileInputMouseUpHandler()},this); |
| }var h=f.id; |
| var e=h+"frame"; |
| var d=c("<iframe name='"+e+"' id='"+e+"'/>"); |
| this._inputsDictionary[e]={rowElement:k,inputId:h}; |
| var l=this; |
| var j=c("<form class='ruForm' action='"+this._handlerUrl+"' method='post' encoding='multipart/form-data' enctype='multipart/form-data' target='"+h+"frame'/>"); |
| j.attr("id",h+"form"); |
| j.appendTo(document.body); |
| d.insertAfter(j); |
| d.css("display","none"); |
| var g=document.createElement("span"); |
| g.className="ruFileWrap"; |
| var i=function(){var o=l._inputsDictionary[this.name]; |
| var p=null; |
| try{p=this.contentDocument||this.contentWindow.document; |
| }catch(q){l._onFileUploadFail(o,""); |
| return; |
| }if(p){if(c(o.rowElement).parents().length==0){return; |
| }var m=""; |
| try{m=c.parseJSON(p.body.innerHTML); |
| }catch(q){l._onFileUploadFail(o,p.body.innerHTML); |
| return; |
| }if(p){if(c(o.rowElement).parents().length==0){return; |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" RestoreOriginalRenderDelegate="false"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="grid"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="grid" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadGrid ID="grid" runat="server" BackColor="#0066FF" ForeColor="Black" al> |
| </telerik:RadGrid> |
| dtCommonList = List.GetItems(QueryForSDM).GetDataTable(); |
| if (dtCommonList.Rows.Count > 0) |
| { |
| grid.DataSource = dtCommonList; |
| grid.DataBind(); |
| grid.Visible = true; |
| } |
| else |
| { |
| Response.Write("no data"); |
| } |
| <CodeAccessSecurity> |
| <PolicyItem> |
| <PermissionSet class="NamedPermissionSet" version="1" Description="Permission set for SouthwesternEnergy.Partners.Web."> |
| <IPermission class="AspNetHostingPermission" version="1" Level="Minimal" /> |
| <IPermission class="SecurityPermission" version="1" Flags="Execution,ControlPrincipal,ControlAppDomain,ControlDomainPolicy,ControlEvidence,ControlThread" /> |
| <IPermission class="Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" |
| version="1" ObjectModel="True" /> |
| <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="UserName" /> |
| <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="$AppDir$;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\VisualWebPartProject1" Write="$AppDir$" Append="$AppDir$" PathDiscovery="$AppDir$" /> |
| </PermissionSet> |
| <Assemblies> |
| <Assembly Name="VisualWebPartProject1" /> |
| </Assemblies> |
| </PolicyItem> |
| </CodeAccessSecurity |
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
| [assembly: AllowPartiallyTrustedCallers()] |