Hello..
I am using ulrtrawebgrid with standard configuration. I am using OutlookGroupBy with multiple groupings, so often the grid is pushed to the right, and the right side of the grid is hidden under the frame.
this is happening because frame has "overflow:hidden" HARDCODED for some reason?!
i've been trying to change this style property to "overflow:visible" .. i've wasted an hour going through all properties of grid.DisplayLayout.FrameStyle but i am not seeing a way to change it.
I know that i can hard code frame width, but i do not want to do that because displayed columns are configurable by user so there is no way to predict grid with.
i could do some nasty hack like adding up all visible column widths and setting the Frame width to that.. but why should i need to do that?
why does the grid come in a frame with overflow:hidden ? is there any way i could make it a normal grid so that it stretches around the inner grid?
I really don't have a answer for your regarding why it is doing that but I will give you a little bit of advise that has saved me countless hours of debugging...
Anytime I come across a situtation with "anyones" controls due to CSS I override it instead of trying to figure out the "Why" of what they are doing.
Download IE Developer Toolbar (if you do not already have it)http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
Open your site up and go Tools->Toolbars->Explorer Bar->IE Developer ToolbarClick Find->Select Element by ClickClick on the html area that is causing you to pull your hair out and and look at what class file it is using.
Goto your css file and or the top of your page and add.overflow: auto !important;
the !imporant will cause the css to read yours instead of the controls this works on any object that uses css. if they are not using a css file then find the id and use #idname instead.
I know it doesn't help you with trying to understand what is going on with the overflow but in my experience I have found it is better just to say ok and override them.
thanks for your reply.
yeah i've been using ie developer since it came out. personally i prefer FF developer addons but they will all do the job.
i already tried overring the CSS with !important flag but a. that didn't work for me, and b. its a terrible hack that i would try to avoid since i am using this gird in so many places.
it is just not good development practice to add such overrides, since other developers will come after me and they will have a tough time figuring out this is needed. etc etc.
i would really like to find a way to do this using grid initialization properties so i can add to the base class and never have to return to this issue again.
I agree with you but sometimes I am in such a hurry that i have a hack.css file just for these kinds of things lol...
Send me the basic layout of your grid (columns, settings) etc. and I will have a look at it, I am sure it is something simple that you are overlooking being frustrated and all sometimes a fresh pair of eyes helps.
first of all, you totally rock for wanting to look at my layout :) It would be tricky to create a standalone case because its pretty heavily integrated into my framework, and my css is whats responsible for this i have a feeling.
i actually took your advice and dug deeper using developer toolbar and discovered that.. Framestyle element points to the table (which also have overflow:hidden style) but in fact, the element responsible for hidding inner table is a div burried in one of the cells of Frame table.
not sure how to gain access to that element from .Net...
my suspicion here is that some css properties i set globally to infragistics grid are adding padding to the cells stretching the table vertically inside the container div. that container div is set to width 100%. no elements actually have width set on them it looks like.. so i think the browser (this is IE only problem) trips over it self trying to size all the elements while applying all the css...
if i remember correctly infragistics lets you have a reference to that div by setting its ID to infragistics grid UniqueID + "_div".
so there.. i could probably use that to perform the css hack on that div. thanks for throwing some ideas my way that helped me get to this conclusion :)
No problem, I can actually reproduce your problem as well just by throwing a dataset at it and treating it like a treeview, I see what you are talking about on mine after about 6 groups I start to see the overflow problem. hmmmmmm I am going to play a little more with it and see if there is something I can do about it without a css hack.
Chrome, FF and Safari all work like they should but IE7 is doing it big time.
that was quick :)
ok so here is my "solution"
http://www.copypastecode.com/codes/view/5027
need to override some more properties, because when i set overflow to auto, it just adds scrollbars, if i set it to visible, it puts the content outside (on top of ) of the frame border
Could you put this sorting question on new thread. There may be many people who have experienced such problem and could answer.
Also if you could attach a sample then I would like to try on it.
I am using server sort only.
PositionsGrid.Bands[0].SortedColumns.Add( myColumn ); myColumn.SortIndicator = SortIndicator.Ascending;
by Custom Sort do you mean DisplayLayout.SortImplementation? i found only 1 really crappy example of how to use that on infragistics documentation and it doesn't get triggered for me. ClientID renders id with _'s in control tree. infragistics uses x's
I am using version 8.2 and I also had some problems in sorting.
After analysis I found that that different kind of sorting mechanisam is used for different case like:
(1) Load on Demand =XML
(2) Client side sort/server side sort
So you must consider your grid’s settings while implementing sort.
The code you provided seems ok. Have you tried to implement custom sort?
What is the current implementation for sorting which is giving weird results as you mentioned?
Apart from this a quick question: What if you use PositionsGrid.ClientID instead of using UniqueID and replacing?
woah!
that is great that it works for you!
ok so maybe i am still not doing something correctly with my implementation because I just upgraded from 6.2 to 8.2 to see if maybe something was up with infragistics.
here is my implementation:
http://rafb.net/p/Hrw4oK11.html
does it look OK to you?
What i do, is use that base type to serve as base to all date parameters such as:
public class TradeDate : QueryDateTimeParameter {...}
and than, have a Position object:
public class PortfolioPosition { public TradeDate Date { get; set; } public InterestParameter Interest {get; set;} etc...}
than finally i use a List<PortfolioPosition> myPositions which is bound to the grid.
So maybe somewhere along the chain my implementation is a bit more different and less standard than yours?
Yes always a method to my madness :)
The web grid should use a IComparable interface with no problems, I have an application that is extremly date intensive right now and implements the same type logic you are talking about and is working fine.
I am however using the latest build of IG which might have a difference, i can put 8.2 on another machine and test it out, sounds like something is just getting lost somewhere.
Regarding being slick, yes you are I do stuff like that everywhere for example I don't let "any" control dictate paging but rather use ROWCOUNT etc. inside sql to handle (less overhead) creating custom business logic layers that handle this stuff for you is the way to go just sometimes a pain to get it all hooked up but once you do the gains you get in the long end when having to add new logic etc. far out weigh the frustration.
I will install 8.2 on a test server and play with this over the weekend it sounds like it is loosing your interfaces somewhere.