User Profile & Activity

Somer B. Member
Dear Yudi,
I'm sorry that i forgot to mention that i'm using clientside binding so i think i have to call clientside OnInitializeRow event on the clientside. In the clientside OnInitializeRow event, i tried to change color, backgroundcolor of a row, or a cell, but not luck.
In the event, GetElement()  returning null, so i cant reach style properties.
As a sample code below returning null:
    <script type="text/javascript">        function GridOnInitializeRow(controlId, row) {
            alert(row.GetElement());
            return true;
        }
    </script>

so code below throws exception:

    <script type="text/javascript">
        function GridOnInitializeRow(controlId, row) {
            var rowElement = row.GetElement();
            rowElement.style.color = "red";
            return true;
        }
    </script>


With Firefox or Chrome, visit your live demo site page:

http://live.intersoftpt.com/cs/WebGrid/BindWebValueListtoISDataSource.aspx?noframe=1&path=/WebGrid/WebValueList

Try to add a row with values:
SupplierID = Exotic Liquids
CategoryID=Beverages

You will see.. :)
Posted: January 28, 2011 4:40 AM

Sample is attached; sample database is in data folder of compressed file.

Posted: January 17, 2011 1:53 AM

Yudi,
The problem is dropdown's original datasource has no null row, but i want to add it to dropdown list.
Sample Scenerio is:
Webgrid's boundend datasource is a customer table where its country field is a nullable foreign key field. So what i want is a country dropdownlist column which populates its data from country table. But also, as it is nullable field, i have to supply a null option for that field. As you may agree, it is not an option to add a null row to country table. So i'm inserting a null object to returned collection at OnSelected event of LinqDataSource.
In my opinion, as this scenerio is very generic, there must be a simple option for this in webgrid column.

Posted: April 19, 2010 3:11 PM

Not a specific component, problem seems valid for all components using SmartWebResources (or Firebug mis reporting). You may even test from live.intersoftpt.com, open any sample in a new window, turnon Firebug and reload page. You will see that all static items except resources from ISRes.axd supplied from cache (304 Not Modified)

Posted: March 11, 2010 5:22 AM

Dear Julia,
Unfortunately, this does not work; as both clientside script and postback executes in parallel.
If you check from attached modified sample; you will see that whether you confirm or not, postback event runs.

Posted: March 8, 2010 3:31 AM

When i remove        
<LayoutSettings AlwaysShowHelpButton="False" RoundCorner="True" EnableAnimation="True">
</LayoutSettings>
part from attached webcombo, problem is fixed.

Note: I could not produce same problem with adding this lines.

 

I'm using also jquery tabs with webgrid.
My problem is when there is two webgrids in diffent pages, second webgrid's footer is shown at the below of tabpage. But it fixes itself, if you hit refresh button of webgrid.

Same kind of problem is valid for webgrid's context menu also, it does not show up when page is called with window.showModalDialog in Firefox

All times are GMT -5. The time now is 4:01 PM.
Previous Next