I have an UltraWebGrid 2008 vol 2 that I have setup with a Row Edit Template. When I click on the row, the template window pops up correctly but it is a bit far away from where I clicked and where the row being edited is located. How can I position the template window closer to the click position?
Thank you,
CKA
I have this same exact problem. Note however, that it only happens when I have grouped the data on the grid. I am using v10.3.
What happens is, the RowEditTemplate always positions itself on the first row, so as I scroll down, the RowEditTemplate moves up, until it is eventually out of view.
This is a real bug or problem. There must be a way to fix this.
There is default logic for positioning the row edit template, but if you have some global CSS classes that override how divs/tables are shown. this may interfere with it. I can suggest checking global CSS styles and how they affect that.
Also, you can try setting CSS styles directly on the <div> tag of the edit template, for example here we adjust paddings (taken from our Samples website)
<RowEditTemplate> <div style="padding-right: 2px; padding-left: 2px; font-size: 8pt; padding-bottom: 2px; width: 100%; padding-top: 2px; font-family: Verdana; height: 35px; background-color: cornsilk"> Ship Data for Customer: <div id="tmplName" style="font-weight: bold"> Name</div> </div> </div></RowEditTemplate>
Hope this helps.
Ivan,
I've gone over that example before but I dont see how/where you explicitly position the edit template...
Hello,
You can see this sample:
https://ko.infragistics.com/samples/aspnet/data-grid/custom-edit-row-template
Grid -> Row Templates
Hope this help.