User Profile & Activity

Dev Ashish Member
Page
of 3
Posted: May 25, 2015 6:46 AM

Thanks Yudi,

I used some CSS to get it done.

div[id="dvWnd_mainDesktop_wndctl00_placeHolder_GRIDNAME"] > div > div:nth-child(2){
    top:0px !important;
}

div[id="dvWnd_mainDesktop_wndctl00_placeHolder_GRIDNAME"] div[class='mainDesktop-WindowSettings-ContainerStyle']{
    padding:0 !important;
}

Regards,
Dev

Posted: May 8, 2015 2:37 PM

Thanks for your reply.

But the solution does not seem to work for me.

I have the webDialog at the following location
<ISWebDesktop:WebDesktopWindow>
 <ISWebDesktop:WebPane ContentMode="UseIFrame">
  <ISWebDesktop:WebDialogBox WindowSettings-ContentMode="UseIFrame">
   <ISWebDesktop:WebDialogBox WindowSettings-ContentMode="UseIFrame">
    <WindowSettings WindowHeaderHeight="0">
          </WindowSettings>
    </ISWebDesktop:WebDialogBox>

Posted: March 23, 2015 9:13 AM

Hi Yudi,

Is there any way I can set custom tooltip for each cell for a grid where BindingOperationMode="ClientBinding".

I trying to use the below function but it’s not working.

function OnSynchronizeCell(gridId, cell) {
    var grid = ISGetObject(gridId);
    if (cell.Name = "Percent") {
        cell.TooltipText = cell.Text/100 + "%";
    }
}

Regards,
Dev

Posted: March 17, 2015 8:43 AM

Hi,

For a workaround can we have two header rows in a grid i.e.one header and other sub header?

Regards,
Dev

Posted: March 5, 2015 5:46 AM

Hi Hans,

Is there a way I can omit one row from getting sorted.

I have below grid

Sl. No

Name

Mob. No.

ID Mo.

Numeric Value

Alphabetical Value

Numeric Value

Numeric Value

1

Dev

123456789

555444666

2

Ashish

987654321

666444555

On click of the column header I don’t want the row-0 to change its position.

Regards,
Dev

Posted: March 2, 2015 6:53 AM
Hi Jitendra

As Yudi said use the DoResize() method on Grid resize, I am doing the same on window resize as shown below. But you have to trigger the javascript code I have given in my last post every time you resize the window.
if(window.addEventListener)window.addEventListener('resize', ResizeWindow, false);
else if(window.attachEvent)
window.attachEvent('onresize', ResizeWindow);

Where ResizeWindow will calls the DoResize() and the code in my last post.

Please do take Yudi's help more than me as he can always get in touch with developer's.

Hi Hans,

Thanks for sample code.

The solution provided by you works fine.

Thanks,
Dev

Hi Hans,

Thanks for the workaround. It solved my problem.

But this is not working if I use the “Reset” option in thecontext menu.

On grid initiation I am setting the background colour for the Header now if the user removes the column and add it back the colour should come back as well.

Using the “OnColumnChanged” event I am able to handle the “Apply” click but I am not getting any event for “Reset” click.

Please suggest a solution.

Regards
Dev

Hi Hans,

Thanks for your reply.

I am trying to add the background colour to the header when column is added from the context menu.

I tried to add the code provided by you as shown below,  but its throwing JavaScript error “Unable to get property 'style’ of undefined ornull reference”.

function OnColumnChanged(controlId, tblName, colName, action){

if(action == "Added")

if(ISGetObject(controlId).RootTable.GetColumn(colName).AllowGrouping == "Yes") {           

ISGetObject(controlId).RootTable.GetColumn(colName). GetElement().style.backgroundColor = "Red";

              }

}
}

Can you please tell what’s wrong with this implementation and a way to achieve the given scenario?

Regards
Dev

All times are GMT -5. The time now is 1:37 AM.
Previous Next