User Profile & Activity

Andi Santoso Support
Page
of 53
Posted: July 14, 2010 4:01 PM

Hi Arun,

     Based on my knowledge, this scenario is not supported by our component. Yet, I will ask our Developer team first to confirm this scenario. So, I will let you know when I have got news from them.

     May I know of what control is the people's object in this case? Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: July 14, 2010 12:53 PM

Hi Ca,

     In your case, I would say that it would be better if we use OnCellClick client side event. With this event, it will make us easier to create a validation for the hyperlinked column.

     At this moment, our WebGrid cannot change the background color for any particular row. However, what we can do is to change the color of cell by cell. Here is the snippet to do so:

   <script language="javascript" type="text/javascript" id="WebGrid1_OnCellClick">
		<!--
        function WebGrid1_OnCellClick(controlId, tblName, rowIndex, cellIndex, cellEl) {
            var WebGrid1 = ISGetObject(controlId);

            var rowEl = WebGrid1.RootTable.GetRow(rowIndex).RowElement;

            for (var i = 1; i < rowEl.cells.length; i++) {

                rowEl.cells[i].style.setAttribute("backgroundColor", "Red", true);
            }

            return true;
        }
		-->
    </script>

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

Best Regards,

Andi Santoso

Posted: July 13, 2010 11:50 AM

Hi George,

      Thank you for your suggestion. I will inform this to our Developer team as a consideration. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: July 13, 2010 11:33 AM

Hi Ca,

    Yes, here is the snippet on how to get background color of the particular cell using onRowSelect client side event.

     function WebGrid1_OnRowSelect(controlId, tblName, rowIndex, rowEl)
     {
           var WebGrid1 = ISGetObject(controlId);

           rowEl.cells[2].style.setAttribute("backgroundColor", "Red", true);
           alert(rowEl.cells[2].style.backgroundColor);
			
	   return true;
     }

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

Best Regards,

Andi Santoso

Hi John,

     Forgive me, could you point me more detail with this? May I know which sample are we talking about in here? I have tried to look them up in WebDesktop and WebAqua samples, however, I did not manage to find our sample with name of Window and Dock integration sample.

     Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: July 12, 2010 9:31 AM

Hi Adam,

     Since you are not using SmartWebResources, I will assume that your project is at Local Host instead of File System. In this case, when we disabled, please ensure to create that particular folder as a virtual directory in your IIS. Because when disabled, it will retrieve using the classic physical path through IIS Virtual Directory.

      I have tried to create a WebGrid and set the the "EnableWebResources="ResourcesOnly", and tried under you scenario, it seems that it still gave me a fine result in the end. I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: July 9, 2010 2:33 AM

Hi Adam,

     Forgive me, however I am not able to replicate the issue for you first problem. I have tried using the same code of yours and the image is not changing back after I performed sorting in that specific column. Please ensure that you put those block of code in OnInitializeLayout server side event.

     For the second problem, yes what you have written is correct already. Here is the snippet on how to use a class only for the header.

protected void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)
{
   WebGrid1.LayoutSettings.HeaderStyle.CssClass = "headerfont";
        
   WebGrid1.LayoutSettings.ImageSettings.SortAscImage = "resume_arrow_up.png";
}

     Noted that I have already included the css file in the html page. Here is the snippet as well.

<link href="Default.css" type="text/css" />

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

Best Regards,

Andi Santoso

Hi Mike,

    Thank you for your detail information. I am able to replicate the issue right now and have forwarded this to our Developer team. I will inform you as soon as I get any news regarding this issue. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Mike,

     First of all, thank you for your feedbacks. At this moment, that would be our default behavior of WebGrid to insert the value first then click the filter types. However, I will try to forward this to our Developer team as well as the ont that it can only recieve "and" in filter type.

     For the format type, it will depend on the format on that specific column. I hope it helps for now. Thank you and have a nice day. 

Best Regards,

Andi Santoso

Posted: July 8, 2010 11:30 PM

Hi Adam,

    At this moment, our WebGrid does not support to have a different cell edit type for each row. Right now, we can only have different edit type for each column. 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:53 PM.
Previous Next