User Profile & Activity

Andi Santoso Support
Page
of 53

Hi Douglas,

     Here is the snippet in order to get the type of "NewRow" on OnExitEditMode client side event:

        function WebGrid1_OnExitEditMode(controlId, tblName, editObject) {
            var WebGrid1 = ISGetObject(controlId);
            alert(editObject.ToCellObject().Row.Type);
            return true;
        }

      I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Vibhore,

     Actually, I am having a problem to replicate the issue of yours. I have tried to set the MaxFrozenColumn to 6 and Active FrozenColumns to 6 as well. The result, as you might see in my attachment, is just fine. It shows 6 column has been freezed.

     Perhaps, I am missing some point. Could you lead me to replicate the issue of yours? And does it give you an error message? Have you tried to get latest build for WebGrid? I am currently using WebGrid 7 build 403.

     I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Peter,

     Instead of marking the end time to 11.59 PM, you can simply set them to its next day. So for instance, if we wanted to mark date from 19/02/08 06:00 AM to 19/02/08 24:00 AM, here is the snippet to do so:

arr.Add(new WebSchedulerDateRange(new Date(2008, 2, 19, 6, 0, 0), new Date(2008, 2, 20, 24, 0, 0), 2, "DateTime"));
            

     Notice that at the end time, I set the date to the next date and the hour to 24. With this, it will meet the scenario of ours.

      I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: May 13, 2010 12:47 PM

Hi Douglas,

    The property of AlwaysShowAllRowsOnDropDown means that, for example we input a text i.e "Maria" in the Webcombo, when we try to show drop down list, it will show the other value and not just "Maria" in there. So, this is not a right property for that particular scenario.

     The only way to show all the rows in the drop down is by setting the DropDownRows value into a higer number.

      Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: May 13, 2010 12:22 PM

Hi Yousif,

     I have tried your scenario and the result is fine. Could you kindly see my snapshot and notice that there no vertical line appeared. May I know on how to set the border to be invisible. This is the code that I have used to do this scenario.

<FrameStyle Overflow="Hidden" OverflowX="Hidden" OverflowY="Hidden">
</FrameStyle>

      And this is what I used to remove the  particular messages.

<TextSettings>
     <TextItems>
          <ISWebGrid:WebGridTextItem TextItem="CommonText/NoData" TextValue=" " />
     </TextItems>
</TextSettings>

      I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Vincenzo,

     Actually, that version has been released. However, the new bin that I provided to you has been enhanced and the disclaimer is on. Any feedbacks regarding that build will be highly appreciated. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Shawn,

     Unfortunately, we do not have the API for that feature at this moment. However, we can get its element and set the display to none. Here is the snippet on how to do so.

This is to hide the AddNewRow:

        function Button1_onclick(){
            var grid = ISGetObject("WebGrid1");
            grid.RootTable.GetNewRow().style.display = "none";
            grid.Refresh();         
        }

 This is to show the AddNewRow:

         function Button3_onclick() {
             var grid = ISGetObject("WebGrid1");
             grid.RootTable.GetNewRow().style.display = "";
             grid.Refresh();
         }

     I hope it can help. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: May 13, 2010 9:50 AM

Hi RunFast,

     We do have a property that will allow one particular column to have an auto width, using IsAutoWidth = true. However, when we use that property, we will need to set the AutoFitColumns to true as well. Here is the snippet:

<LayoutSettings AutoFitColumns="true">        

     And this is needed in that one particular column:

<ISWebGrid:WebGridColumn Caption="Address" DataMember="Address" Name="Address" Width="100px" IsAutoWidth="true">
</ISWebGrid:WebGridColumn>

     Furthermore, if you are willing to have all the column to have a best fit columns, you will need to set them in window on load function and set the column to best fit one by one. Here is the snippet:

       function window::onload(){             
              var WebGrid = ISGetObject("WebGrid1");                                
              for(var i = 0 ; i< WebGrid.GetRootTable().Columns.length;i++){                 
                    WebGrid.GetRootTable().Columns[i].ResizeBestFit();             
              }            
        }

       I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Huzefa,

     Yes, I am able to replicate the issue. It seems that, this is a regression issue. I have fowarded this to our Developer team regarding this particular issue. I will inform you as soon as possible when it has been fixed. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: May 11, 2010 12:22 PM

Hi Ca,

     Unfortunately, our hierarchical WebGrid can only be created when there is a relation between those two tables. 

     I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

All times are GMT -5. The time now is 11:30 PM.
Previous Next