User Profile & Activity

Glenn Layaar Support
Page
of 99

The instant lookpup feature will not work if it is set to a hidden column. In order to allow the instant lookup feature to work you will need to use AdditionalSearchField property in order to allow WebCOmbo to search in the FirstName and LastName field, for example.

Our WebCombo documentation already have an article regarding AdditionalSearchField on the article titled Additional Search Field and How-to: Use AdditionalSearchField to search a query text on other column besides DataTextField column

Unfortunately both classic paging and filter on a specific column feature has not been supported in the current version of WebCombo.

On the server side, you will need to set the Value property in order to set the default choice in WebCombo, as detailed on the article How-to: Set initial value from server side in WebCombo in the WebCombo documentation. In the client side you could set the choice using the text by executing the SetTextBoxValue function, as detailed on the article How-to: Get/Set the TextBox value in the WebCombo documentation

My test show that using return false during client side command click, we will not be able to cancel the postback click event handler in the WebToolBar.

A workaround, as posted in this thread, is using a WebDialogBox to handle the confirmation.

The thread I link earlier is for the WebCoverFlow in silverlight. Based on your description, it seems you are using the WebCoverFlow for ASP .NET. Here is the snippet in order to add a new item during page load event handler:

protected void Page_Load(object sender, EventArgs e)
{
WebCoverFlowItem itm = new WebCoverFlowItem();
itm.MediaType = WebCoverFlowMediaType.Image;
itm.Source = "../images/iMovie.png";
itm.Name = "cfItm1";
itm.Title = "Test Item #1";

WebCoverFlow1.Items.Add(itm);
}


Posted: March 24, 2010 10:02 PM

The extra column will be displayed and required if you enable the freezing column feature. It will be used internally in order to render the WebGrid with freezing column feature correctly.

Posted: March 24, 2010 5:39 AM

My test of the scenario show you could use the table-layout: fixed css style on the HTML table in order to resolve the issue. You do not need to use the AutoWidth property.

Thank you for the sample, I have sucessfully replicate the issue.

However, I am still discussing the issue with our developer. I will inform you if I have any update or progress regarding this issue.

Posted: March 22, 2010 11:56 PM

Based on the screenshot, it seems the issue is the height is different in XHTML and HTML. Did you use percentage in defining the height in your element?

My test show that setting a fixed height for the element would allow the control render similarly in both XHTML and HTML.

For your scenario, you could add the new column to the datasource during IntializeDataSource server side event

protected void Combo1_InitializeDataSource(object sender, ISNet.WebUI.WebCombo.DataSourceEventArgs e)
{
DataTable dtData = new DataTable();
dtData.Columns.AddRange(new DataColumn[]{
new DataColumn("UserID"),
new DataColumn("FirstName"),
new DataColumn("LastName"),
new DataColumn("Age"),
new DataColumn("Gender")
});

dtData.Rows.Add(new object[] { "1", "Tom", "Blanks", "50", "Male"});
dtData.Rows.Add(new object[] { "2", "Peter", "Schuler", "30", "Male" });
dtData.Rows.Add(new object[] { "3", "Kareena", "Kapoor", "24", "Female" });
dtData.Rows.Add(new object[] { "4", "John", "Doe", "40", "Male" });

dtData.Columns.Add(new DataColumn("FullName"));

dtData.AcceptChanges();

e.DataSource = dtData;
}

In order to fill the FullName data, you could use the InitializeRow server side event handler

protected void Combo1_InitializeRow(object sender, RowEventArgs e)
{
WebComboCell fName = e.Row.Cells.GetNamedItem("FirstName");
WebComboCell lName = e.Row.Cells.GetNamedItem("LastName");
WebComboCell fullName = e.Row.Cells.GetNamedItem("FullName");

fullName.Value = String.Join(" ", new string[] { fName.Text, lName.Text });
fullName.Text = String.Join(" ", new string[] { fName.Text, lName.Text });
}

Regarding my earlier post to create the column programmatically, in order to render the hidden correctly, you will need to use the InitializeLayout server side event instead of PrepareDataBinding.

In my test, the column must be a bound column in order to set the text correctly. A workaround for your scenario would be modify the select query to include the Percentage Hours, for example

SELECT ID, StandardHours, DirectHours, '' AS PercentageHours
FROM Hours

Initially you could use the InitializeRow server side event in order to fill the percentage hours cell.

Attached is the demonstration of the workaround.

Posted: March 22, 2010 6:20 AM

In the latest reply in the TDN on your issue. Our developer suggest that the WebGrid height will depends on the container. You will need to modify the WebGrid container to have 100% height as well in order to render the WebGrid 100% height correctly.

Based on the screenshot, have you tried setting the HTML element and body element to have 100% height as well?

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