User Profile & Activity

Hans Kristian Member
Page
of 69
Posted: October 15, 2012 11:03 PM

Hello,

If you want to change the font color after from server side, perhaps you might try to use RegisterStartupScript method to call javascript code.

I made a simple sample using this RegisterStartupScript method, to change the font color.

Please kindly have a review on my sample once again.

Hope this helps.

Thank you.

Regards,

Hans.

Posted: October 15, 2012 3:08 AM

Hello,

I have replied your email Intersoft Developer Network.

Thank you.

Regards,

Hans.

Posted: October 15, 2012 12:54 AM

Hello,

This calendar combo is already fixed.



However, this issue only fixed in WebGrid 8 only, because we have been discontinued WebGrid 7.

You could see the WebGrid’s version history from this link.

Thank you for your understanding.

Regards,



Hans.



Posted: October 14, 2012 11:44 PM

Hello,

Basically, WebExplorerPane use “disabled” attribute to set the disabled styling.

However, like I said in my prior post, this attribute styling doesn’t apply to all browsers, in this case Firefox.

I made a simple WebExplorer sample, using your javascript code.

In my sample, I disabled one item in pane and turn the item’s color to gray.

I run the sample in Firefox and it works fine.

Please kindly have a review on my sample and let me know if there are configurations that I missed.

I attached the video about the result of my sample.

Thank you.

Regards,

Hans.

Posted: October 12, 2012 6:17 AM

Hello,

Yes, it is possible. Set ContentMode property in WebExplorerBar to “UseInlineContent”.

Then you could customize the content as you please.

Please kindly have a review on my sample and please let me know your response.

Thank you.

Regards,

Hans.

Posted: October 12, 2012 5:53 AM

Hello,

Thank you for your reply.

If we use SetDisable() method to disable the pane of WebExplorer, this method will adding disabled attribute to the pane.

Each browser has the different behavior in rendering this disabled attribute.

I made a simple web page sample using a table. I add two TD and I add disabled attribute to one TD.

Then I run the sample in IE, Firefox, and Chrome. The result is only in IE make the text in TD become to silver, indeed. See in Table_Disabled_Result.png.

You could try my simple web page sample (Table_Disabled.html) to see the result.

To get result same styling when we disabled the pane, you could use this example snippet code:

function DisableBar() {
    var explorerPane = ISGetObject("WebExplorerPane1");
    var panes = explorerPane.Panes;
    panes[0].SetDisable();
    //remove disabled attribute
    panes[0].GetElement().removeAttribute("disabled");
    // set header color
    panes[0].GetElementText().style.color = "Red";
    // set item container color
    var itemElement = panes[0].GetContentElement().childNodes[0].childNodes[0].childNodes[0].childNodes[0];
            
    if(IS.ie)
        itemElement.childNodes[0].childNodes[0].style.color = "red";
    else
        itemElement.childNodes[1].childNodes[0].style.color = "red";
}

If you don’t mind, could please kindly have review on my sample (WebExplorerPane_Disabled.zip) and let me know your response.

Thank you.

Regards,

Hans.

Posted: October 11, 2012 9:27 PM

Hello,

You’re welcome.

I’m glad to hear that you have resolved your issue.

Should you have further question, please do not hesitate to contact us.

Thank you.

Regards,

Hans.

Posted: October 8, 2012 10:17 PM
Hello,

I’m sorry for the inconvenience.

Basically, this styling issue isn’t issue from WebExplorer but Firefox’s issue.
Firefox have different rendering styling from IE.
And in this case, that is the way how Firefox render disable styling, indeed.

Thank you for your understanding.

Regards,
Hans.
Posted: October 8, 2012 1:01 AM
Hello,

Please forgive me for lack of understanding about the reported problem.

If you want to remove the selected row from server side, please try to add this snippet code to your server side code below:
WebGrid1.SetSelectedObject(null);

Hope this helps and please let me know your response.

Regards,
Hans.


Posted: October 5, 2012 12:32 AM

Hello,

Basically, the reason why we can’t get the row/data from WebGrid, due to the WebGrid hasn’t load/render the row/data. It doesn’t have relation with the number of checkbox.

However you could get the data of WebGrid from the button’s OnClick event.

I made a simple WebGrid sample based on your information.
I bind WebGrid to access data source (Northwind.mdb database and Products table). But I made a little change in the Products table; I add one more (Boolean) column, named Discontinued2.
Now I have WebGrid with two checkboxes column.

In Button1_Click server side event, I add some code to get the value from Discontinued column and Discontinued2 column.

Please have review on my sample and please let know your response.

Regards,
Hans.

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