User Profile & Activity

Riendy Setiadi Member
riendy@intersoftpt.com
Page
of 19
Posted: June 7, 2011 11:41 PM

Hello,

Thank you for appreciate BP.

To filter data in UXGridView by inputing value in textbox without picking values in checkbox, unfortunately your scenario can't handled it yet so far. UXGridView filter show filtering by picking values from a checkbox. It is use to know what existed values in data. So when the inputed value doesn't exist in database, the UXGridView will not bind any data, then you may not get an empty data in UXGridView. 

If you still want to do the scenario, I suggest you to use TextBlock beside UXGridView to input the value that should be bind to the UXGridView.


Hope this helps.
Riendy

Hi Neill,

To add selected WebListBoxItem to another WebListBoxItem, I suggest you to use SelectedIndex property in WebListBox. SelectedIndex is also usefull because you don't have to do looping to find a selected items. You can change your code behind into codes bellow :

 protected void btnAddItem_Click(object sender, EventArgs e)
 { 
    int i = WebListBox1.SelectedIndex;
    WebListBoxItem wli = new WebListBoxItem();
    wli.Name = WebListBox1.Items[i].Name;
    wli.Text = WebListBox1.Items.GetNamedItem(wli.Name).Text;
    WebListBox2.Items.Add(wli);
 }

Please let me know whether it is work as your expectation or not ?


Hope this helps.
Riendy



Posted: June 6, 2011 9:40 PM

Hi Mike,

You get a NullReferenceException because you're unable to use unbound here. The templating is only supported for bound columns. Which means it must be bound to a data. The WebGrid have to be bound to a datasource as well.


Hope this helps.
Riendy

Posted: June 6, 2011 6:13 AM

Hi BP, 

I got the point as you expect for result. Your question has been forwarded to our developers to know how to filter in UXGridView without picking checkBox in a list. I will let you know for the updates from them.


Thank you.
Riendy

Hello Krzysztof,

I have forwarded your question to our developers to know whether it is possible for UXGridView or not. I will let you know as soon as possible after I get any updates from them.


Thank you.
Riendy

Hello Questica,

I have an update for your issue from developers. Our development team has been done with your issue. You will get the fixed issue in SP1.


Thank you.
Riendy

Posted: June 3, 2011 7:20 AM

Hello Mike,

I have replicated your issue here. your issue have been forwarded to our development team for further investigated. I will let you know for any updates soon.


Regards,
Riendy

Posted: June 3, 2011 7:14 AM

Hello Mang Lu,

I don't think if it is possible to load table structures with your approach.
We could not load table structure in that way. The page should be in FullPostBack condition. It could not be done in FlyPostBack request. 
If you still want to load the table structure via context menu click, you need to make/set the page into FullPostBack. In this case, you no longer need to load table structure in IntializePostBack.
You can just load table structure instanly in PageLoad event.

Riendy


Hi Udaya,

Your question has been answered in your other thread. Would you please take a look at that page and let me know if you still get any trouble there.


Thank you.
Riendy

Hi Rudy,

To mark non editable type with a different color in specific cell, you have to set the cell to non editable in code behind by setting ForceNoEdit to true in the cell. Please take a look at the snippet code bellow : 

protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
    {
        e.Row.Cells.GetNamedItem("CategoryID").ForceNoEdit = true; 
        // you can validate which cells that you want to set in true or false.
        if (e.Row.Cells.GetNamedItem("CategoryID").ForceNoEdit == true)
        {
            e.Row.Cells.GetNamedItem("CategoryID").Style.BackColor = System.Drawing.Color.SkyBlue;
        }
        
    }


For your information, you should not set edit type in WebGrid.NET designer if you want to get a cell, because EditType in WebGrid.NET designer is define a column not a cell.


Hope this helps.
Riendy

All times are GMT -5. The time now is 6:49 PM.
Previous Next