User Profile & Activity

Hans Kristian Member
Page
of 69

Hello,

I have submitted the scenario, to load WebCalendar with selected dates, as feature request to our WebCalendar development team.
The team will check the feasibility to implement this feature in the next build of WebCalendar.
You might want to try our UXCalendar control. However, UXCalendar is a Silverlight control.
You could see the UXCalendar sample in our ClientUI live sample in http://live.clientui.com/

Thank you for understanding.
Regards,
Hans.

Hello,

Thank you for the question.
My apologize for the inconvenience.
Basically, WebCalendar can’t highlight various random date. For example 2012-05-09, 2012-05-11, 2012-05-17, etc.
However, you could highlight the next few days (For example 2012-05-09, 2012-05-10, 2012-05-11, etc.), by using “CustomHighlightedDays” property.
Then set “HighlightMode” property to ‘Custom’.

Thank you.
Regards,
Hans.

Posted: May 7, 2012 3:40 AM

Hello,

I’m sorry for this misunderstanding.
To set / modify text in Pane Items. You could use the example snippet code below:

function ChangeBarItemText()
{
    var explorerPane = ISGetObject("WebExplorerPane1");
    var panes = explorerPane.Panes;            
    var paneItems = panes[0].PaneItems;            
    paneItems[0].GetElement().childNodes[1].data = " New Text";
}

Or you could see the sample, how-to set text of PaneItems, in our WebDesktop Samples.
In WebDesktop Samples, please open “ObjectModel.aspx” (in WebExplorerPane folder)

Hope this one helps. Thank you.
Regards,
Hans.

Posted: May 6, 2012 10:19 PM

Hello,

You couldn’t change the text of Pane Item by using .Text field.
However you could change the text by using SetText() function.
Here’s the snippet example, how-to use SetText() function:

var WebPaneManager1 = ISGetObject("WebPaneManager1");
WebPaneManager1.RootGroupPane.Panes.GetNamedItem("Pane0").SetText("New Text");

Hope this helps.Thank you.
Regards,
Hans.

Posted: April 30, 2012 12:05 AM

Hello,

Thank you for your code.
My apologies for the inconvenience. I can replicate your issue on my end as well.
However, to set the filter text and filter type, you could use this following code below (in Page_Load server side event):

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        if (Session["ses_filter_columns"] != null)
        {
            WebGridFilterCollection wgfc = (WebGridFilterCollection)Session["ses_filter_columns"];

            int iFilterCount = wgfc.Count;
            for (int i = 0; i < iFilterCount; i++)
            {
                var myFilter = new WebGridFilter();
                myFilter.ColumnMember = wgfc[i].ColumnMember;
                myFilter.FilterText = wgfc[i].FilterText;
                myFilter.FilterType = wgfc[i].FilterType;
                WebGrid1.RootTable.FilteredColumns.Add(myFilter);
            }   
        }
    }
}

Hope this helps. Thank you.
Regards,
Hans.

Posted: April 27, 2012 5:32 AM

Hello,

To implement this scenario, first, you should get the filter value in filter column.
Here’s the example snippet code how to get the filter value (in client side event):

var WebGrid1 = ISGetObject("WebGrid1");
var filter = WebGrid1.RootTable.GetFilterRow();
var filterRow = WebGrid1.RootTable.ToRowObject(filter);
// You could choose the column by the column's name
var filterCell = filterRow.GetCells().GetNamedItem("ContactName");
var filterText = filterCell.Text;

I suggest you to save the filter value to session variable.

Then, to set back the filter value (or filter bar state), please use this following snippet code (in client side event):

var WebGrid1 = ISGetObject("WebGrid1");
var newFilter = new WebGridFilter();
newFilter.ColumnMember = "ContactName";
newFilter.FilterType = "Like";
newFilter.FilterText = filterText; // Your filter value
WebGrid1.RootTable.FilteredColumns.Add(newFilter);         
WebGrid1.RootTable.UpdateUI();
WebGrid1.Refresh();

For further information about add filter value programmatically, please see in our WebGrid’s documentation, on “How-to: Add and remove Filtered Column programmatically” section.

Hope this helps. Thank you.
Regards,
Hans.

Posted: April 27, 2012 3:18 AM

Hello,

I assumed that you have a complex project. Therefore I ask you to make a simple project/sample that replicate/similar this issue.
I need your simple project to investigate your issue. Example in debug mode, I can understand which  part that you missed.

Thank you.
Regards,
Hans.

Posted: April 27, 2012 12:11 AM

Hello,

Thank you for your information.
Base on your snippet code that you post, there isn’t a problem with your code.
Could you create a simple runnable project that replicates this issue, so that I can investigate the issue from my end?

Thank you.
Regards,
Hans.

Posted: April 25, 2012 10:31 PM

Hello,

I clarify that WebGrid 7 doesn’t support MVC3.
For now, we can’t estimate when will WebGrid 7 will fully support MVC3.
But currently, we are developing WebGrid 7  to support MVC3.

Thank you for understanding.

Regards,
Hans.

Hello,

There isn’t function in server side to clear selected item, like in client side.
However, you could clear selected item in server side by set the value of WebCombo to null or empty string.

Here’s the snippet code how to set the WebCombo’s value to empty string.
WebCombo1.Value = "";

Hope this helps. Thank you.
Regards,
Hans.

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