.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

Removing Extra Padding Around Interactive Sort Arrows

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :Sql Server
 
I have a report (using SSRS 2005) which uses Interactive Sorting for all the headings in the table. There appears to be padding around the sort glyphs (arrows) on both the left and the right.  It looks like it is padding about 10px on the left and 10px on the right.  I don't have any setting in my report to explain this.  This means I have to size the text boxes to be a lot larger than they need to be otherwise the heading label wraps to another line. Here's what the text box looks like: ---------------------- | Review Date     ?     | ---------------------- As you can see in my representation there is a lot of padding to the left and right of the sort image. Is there anyway to get rid of this extra padding around the sort glyphs?  I've tried everything I can think of.  If not, can I keep the heading labels from wrapping?  I've tried non-breaking spaces but they still wrap to the next line. Thanks in advance, -- John...


View Complete Post


More Related Resource Links

Interactive Sort - problem when toggling

  
I have created a matrix with a toggle option on one of the rows (when the report is initially run this row is hidden).  This row when toggled produces 10 or more rows with data.  In the column headings I have given the user the option to interactively sort through the data that is stored in this row.  The problem that I am having is that when I choose to sort the data after I have toggled to see the data, the report re-renders and the goes back to the un-toggled view.  So I have to re-toggle to see what my sorted data. I want to be able to view my sorted data without having to toggle back out. I believe the solution lies in Row visibility "show or hide based on expression".  I just don’t know what expression to use... or if the solution is more complex. Help please.

Interactive sort - keep toggled data open

  
I have created a matrix with a toggle option on one of the rows (when the report is initially run this row is hidden).  This row, when toggled produces 10 or more rows with data.  In the column headings I have given the user the option to interactively sort through the data that is stored in this row.  The problem that I am having is that when I choose to sort the data after I have toggled to see the data, the report re-renders and the goes back to the un-toggled view.  So I have to re-toggle to see what my sorted data. I want to be able to view my sorted data without having to toggle back out. I believe the solution lies in Row visibility "show or hide based on expression".  I just don’t know what expression to use... or if the solution is more complex. is this possible??

Matrix column Interactive sort

  

Hi,

 

In one of my reports, there is a requirement to provide interactive sort functionality on all the columns of the matrix report.

(Reporting Services 2005).

 

I was successful in implementing the interactive sort on the row groupings, but was unable to do the same on the column groupings.

 

For example , I have the following :

Removing the extra Link from quick launch which redirects to Discussion list template?

  

Hi,

  I have added the discussion list to my site definition as follws

get the guid =List.add(Name ,Title andListTemplateID.discussion)

I have customized the quicklaunch menu by adding the links

in NavigationCollection .

bu I get the additional link in quick launch  which redirects to _layouts/viewlist /ListemplateId=108And basetypeId=0

How to remove this extra link from quick launch

I tried by NavColl.Delete(Quicklauch[0]) th Item

and web.update.

But its not working

 


Compressing and Removing extra whitespace from generated HTML in MVC

  

Hello...

In my .net MVC app I´ve added two filters of this page  http://stackoverflow.com/questions/855526/removing-extra-whitespace-from-generated-html-in-mvc/4074953:
- CompressFilter by WOPR
- WebWhitespaceFilterAttribute by alphus

In my Controlers I just added:

    [WebWhitespaceFilter]
    [CompressResponse]
    public virtual ActionResult Index ()
    ...

 
But sometimes appears this error and the page is not returned.

    Content Encoding Error
    
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

I think the problem is by using both actions.
Is there a better way to do it?
Myabe joining both actions into one?

I try to join both Actions but with this code I got the same Content Encoding Error in all my pages:

#region OnActionExecuting
    /// <summary>
    /// OnActionExecuting code
    /// </summary>
    /// <param name="filterContext">The filter context</param>
    public override void OnActionExecuting ( ActionExecutingCont

How to sort GridView?

  
In this article I will discuss how to sort columns in grid and more. At the end it will help answer some very frequently asked questions like following

Sort by gridview SortExpression parameter via Stored Procedure

  

I have a gridview that calls data via a stored procedure.  I am unable to enable the gridview columns to be sortable. I need to set the parameter in the Stored Procedure, can someone help me with this?

Here is my gridview:

<asp:GridView ID="AllUsersGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="UserName"
                        GridLines="Vertical" Width="900px" DataSourceID="SqlDataSource1" AllowSorting="True"
                        SelectedRowStyle-Height="30px" CellPadding="4" BackColor="White">
                        <Columns>
                            <asp:TemplateField HeaderText="Full Name" SortExpression="lastname">
                                <ItemTemplate>
                                    <asp:Label ID="DisplayName" runat="server" Text='<%# Eval("firstname").ToString() & " " & Eval("lastname").ToString() %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="User Name" DataField="UserName" />
                            <

removing item from datatable

  

hi to all ..thanks in advance

 

I have Two datatables dtA,dtB ,both contains column name is "FiledName" I need to remove item

from dtA when same row data exists in dtB.  please tell me how to do it

dtA    dtB   

 A        A

 B        F

 C        C

 D        Z

I want o/p like this

0/p

dtA

   B

   D

 

 


Dynamic .NET: Creating Interactive Bing Maps with Silverlight and IronRuby

  

Silverlight provides support for dynamic languages such as IronRuby and IronPython. We'll walk you through the creation of a custom Silverlight control using Bing Maps and IronRuby.

Ashish Ghoda

MSDN Magazine February 2010


Office 2003: Host an Interactive Visio Drawing Surface in .NET Custom Clients

  

Microsoft Office Visio 2003 introduces a new drawing component that allows you to embed an interactive drawing surface into your application's user interface. You can drive the Visio drawing component from events in your host application or with data from a Web Service and an ADO.NET data adapter. The Visio drawing component supports the rich Visio application programming model, giving you control over how graphics are used and displayed on the drawing surface. This article explains how to embed the Visio drawing component into a C#-based Windows Forms client app that retrieves data from the Fabrikam 2.0 Web Service.

Mai-lan Tomsen Bukovec and Blair Shaw

MSDN Magazine December 2003


WebResource.axd - Padding is invalid and cannot be removed error

  

Hi,

I'm working on a site that is hosted externally, and the admin just sent me an email syaing they're getting this following error:

 

Event code: 3005 

Event message: An unhandled exception has occurred.

Event time: 11/17/2008 8:11:24 AM

Event time (UTC): 11/17/2008 8:11:24 AM

Event ID: 5d3b54c09a24463ca8fb03f22692e0bb

Event sequence: 731

Event occurrence: 3

Event detail code: 0


Application information:

Application domain: /LM/W3SVC/1776482879/ROOT-1-128713348984007217

Trust level: Full

Application Virtual Path: /

Application Path: D:\....

Machine name: ****


Process information:

Process ID: 2272

Process name: w3wp.exe

Account name: ****


Exception information:

Exception type: CryptographicException

Exception message: Padding is invalid and cannot be removed.


Request information:

Request URL: http://sitename/WebResource.axd?d=_O9D297IUE-qcgMP0yFe-w2&t=633468747532779057

Request path: /WebResource.axd

User host address: 10.0.64.17

User:

Is authenticated: False

Authentication Type:

Thread ac

Extra file is included on the Page directive inherits =

  

Hi;

I am trying to understand where the additional file name is coming from in my Page directives Inherits

attribute like so :

inherits ="Track_Milestones2, App_Web_techsrvcs_track_milestones2.aspx.cdcab7d2"

Is the result of this app being published on my local server at one time or could this

page have been compiled on a server ?

Thanks for your insights !


TextField control add extra character space at end of it

  

Hi

On one of my publishing page layout i have added Content Field (field of content type) that is

<SharePointWebControls:TextField FieldName="MyName" runat="server"></SharePointWebControls:TextField>
"MyName" is single line text column in the content type.

Then i edit the page which is using this page layout and add one text "Sandip" in that MyName field. Now problem is, this filed show the text on the page but at the end of it, it add space. i.e- "Sandip "

I m not getting why it is showing this.

Please help..!


Regards Sandip Patil Sharepoint Developer http://www.worldofsharepoint.com

Sort in array

  

 Hi,
  I have a collection Role[], in that i want to Sort Order by MerchantID, then RoleName ascending order, how its possible?


.Sort a List problem

  

Hi,

I have a little problem with sorting a List<String>.

I have put 4 elements like this and now are trying sort them correct. My example below shows the problem. I am not sure of how sort the names so they comes in this order: "Folder1, Folder2, Folder10, Foler11"  ?

List<String> GetNames = new List<String>();

GetNames .Add("Folder1");
GetNames .Add("Folder10");
GetNames .Add("Folder2");
GetNames .Add("Folder11");

GetNames.Sort(); //Sort the list



The sort comes in this order now which is wrong:
Folder1
Folder10
Folder11
Folder2

How to sort the list to have this order: ?
Folder1
Folder2
Folder10
Folder11


 

 


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend