User Profile & Activity

Yudi Support
Page
of 12
Posted: September 11, 2009 4:11 AM

I created a simple sample based on your requirement, assigning a default value on client side event using DefaultText or DefaultValue.

The sample consists of a WebGrid; an HTML input textbox; and an HTML button. Any text typed in the textbox will be set as DefaultText and DefaultValue of ShipperName column of the WebGrid.

Hope this helps. Should you have different scenario, please make any necessary changes to the sample file and send it back to us for further investigation.

Posted: September 11, 2009 12:33 AM

I created a test page based on your information.

The issue is not persisted using my test page. Please made any necessary changes to the attached test page and send back to us for further investigation.

Posted: September 10, 2009 11:13 PM

I checked the attached sample in your first post and I suspect that the SetAdditionalFilter fails because you are using unbound WebCombo.

The cboResource is unbound WebCombo (I conclude this from PopulateUnboundData method that is used in LoadUnboundWebCombo_v2 server side event). I suggest you to use bound WebCombo.

Hope this helps.

Posted: September 10, 2009 6:05 AM

Thank you for submitting your issue in our community forum. However, WebCombo 2.0 was discontinued for quite sometime. I’d recommend you to upgrade to WebCombo 4 as it includes many new features and fixes over the previous version. You might want to evaluate the 30-day trial of WebCombo 4 from the following link, http://www.intersoftpt.com/RequestTrial.aspx.

I will try to do my best to assist you to solve the issue.

Please try to set the additional filter of WebCombo 2.0 by using following syntax.
Wc_setAdditionalFilters(‘WebCombo instance ID’, “[Column name] = “ + the additional filter value);

For example, if there are two WebCombo, product WebCombo and category WebCombo. Product WebCombo is a WebCombo that shows list of products from Product table of Northwind database. And Category WebCombo is a WebCombo that shows list of categories from Categories table of Northwind database. The product WebCombo is filtered based on certain category selected in the category WebCombo. Please try to use following code.

wc_setAdditionalFilters( 'wcbProducts', "[CategoryID] = " + wc_States['wcbCategories'].Value );

For more detail, please download the sample from here.

Please try to set the checkbox horizontal align in InitializeRow server side event. Below is the snippet code to set the horizontal align of specific column.

e.Row.Cells.GetNamedItem("[ColumnName]").Style.HorizontalAlign = ISNet.WebUI.HorizontalAlign.Center;

I have checked that this event is invoked when user click the refresh button. So after clicking refresh button on WebGrid, the horizontal align of the checkbox column should be persisted.

Hope this helps.

Glad to hear that you’ve found a solution of your problem and share it with us.

Thank you very much for your contribution in our community forum. Should you find any other questions, suggestions, or problems regarding our products, please feel free to post them in our forum.

Posted: September 9, 2009 5:40 AM

Could you please kindly share the solution with us?
Your information will be helpful for us and the community member.

Posted: September 9, 2009 5:25 AM

Thank you for your feedback. I have forwarded it to WebScheduler development team. They will check the feasibility to implement this feature.

I’ll keep you updated with any news I heard from the team regarding this issue.

Posted: September 8, 2009 11:51 PM

I got news from WebGrid development team regarding this issue. After being investigated further by the team, I need to re-clarify that this issue is not bug.

James is correct. Please try to implement the value list in InitializeLayout event rather than PrepareDataBinding server side event. This should solve the issue.

For James: thank you very much for your contribution in our community forum.

Posted: September 8, 2009 10:43 PM

WebGrid 7 provides nine column types, such as: "Button"; “ButtonImage”; “CheckBox”; “Custom”; “Hyperlink”; “Image”
"ImageAndText"; "Template"; and "Text".

Below is the description for each column types.

Member

Description

Button

Cells that belong to a column with this setting will appear as HTML button.

ButtonImage

Cells that belong to a column with this setting will appear as HTML button rendered with Image.

CheckBox

Cells that belong to a column with this setting will appear as HTML check box.

Custom

Cells that belong to a column with this setting can be fully customized from within runtime code.

Hyperlink

Cells that belong to a column with this setting will appear as hyperlink.

Image

Cells that belong to a column with this setting will display only an image that specified in “CellImage” or its own “Image” property.

ImageAndText

Cells that belong to a column with this setting will display an image that specified in “CellImage” or its own “Image” property and text.

Template

Cells that belong to a column with this setting will appear as template.

Text

Cells that belong to a column with this setting will display only text.


The most suitable column type for your scenario is "Image" column type. Simply set the ColumnType property to "Image" and set the CellImage property to point to your static image file. Example:

<ISWebGrid:WebGridColumn Bound="False" ColumnType="Image" CellImage="./images/Order-Details.gif"
    EditType="NoEdit" Name="Icon" Width="20px">
</ISWebGrid:WebGridColumn>

Please check the sample of image column type in our live sample at here. Expand the child of the hierarchical grid sample until "OrderDetails" table. The column on the left side of "OrderID" column is using image column type.

Hope this helps.

All times are GMT -5. The time now is 2:45 PM.
Previous Next