User Profile & Activity

Andrzej Sulej Member
Page
of 5

Hello,

 

Yes, your example works fine, but try to change your LayoutSettings to:

<LayoutSettings AllowContextMenu="False" ShowColumnAction="True"> </LayoutSettings>

 

I've received javascript error 

Brak definicji 'wga7958'   (English: There's no definition)

in line:

wga7958.m4c582(v5e694,v96a93[1],false,"Column",v0ee94);

 

regards

Andrzej

Hello

It's working on my PC the same as your video show, but when I set ClientSideBinding with Reuse server datasource option, I ve got error System.NullReferenceException in my web browser. Next when I insert manually section like this:

<ClientBindingSettings> <ServiceMethods SelectMethod="" />

it's working ok

 

My ver: WebGrid build 401 and Framework build 751

 

 

 

Hello Indra,

Yes , it's on IIS Manager. We have one server with 2003 but it's 32 bit version.

My suggest: On IIS Manager find and expand node with name  "Application Poll" (I've a Polish Ver of OS :-( ).

Right click on your application poll and show the propetries. Try to find this setting there.

 

Best Regards

Andrzej S.

Posted: December 3, 2009 3:57 AM

Hi,

So we have two solutions:

1. by using DataSourceID , then use RegisterStartupScript with JS code which set WebComboProduct Value on the client side and make LoadValue on it

2. by using DataSource (with or without AllowAutoQueryHandler depend on how many rows we expected), then in "FormView1_ItemCreated" set DataSource property to your customdata before or after setting Value on WebComboProduct.

 

In your example we shouldn't use clear "select * from Products"

I think it should be some method to retrieve list of WebCombo on demand (when the DataSourceId is in use). As you've seen the ClearCachedDataSource not working properly.

 

Regards

Andrzej

Posted: December 2, 2009 5:25 AM

Hi Handy,

Thank you for your help, but It's not acceptable method for Product list with few milion records.

SetFilter method don't modify SQL syntax, but set filter only. So app have to receive all records from Product table (it's the most critical point).

We can manually trigger select on any datasource (ie.

ISDataSourceList.Tables.GetNamedItem("Products").ClearCacheAndData();
ISDataSourceList.Tables.GetNamedItem("Products").Select();
 - why it can't by binding to WebCombo.


Sorry for my embarrassment, but modify WebCombo list on demand should be total base function.

 

Regards,

Andrzej

Posted: December 1, 2009 3:32 AM

Hi,

Your example explain how to refresh WebCombo on the client side

Maybe I'm not writing clearly or you don't read carefully.

I don't accept method like this:

 this.ClientScript.RegisterStartupScript(......

in FormView1_ItemCreated on the server side

I'd like to refresh (prepare) WebCombo in FormView1_ItemCreated before (or after) setting his Value.

Your method  WebCombo1.ClearCachedDataSource(); just not working.

I've tried (copy of my first example):

protected void FormView1_ItemCreated(object sender, EventArgs e)
    {
        if (FormView1.CurrentMode == FormViewMode.Edit)
        {
            DataRowView rowView = (DataRowView)FormView1.DataItem;
            if (rowView != null)
            {
                //test binding
                WebComboCategory.Value = "2";//Condiments
                WebComboProduct.ClearCachedDataSource();
                //ISDataSourceList.Tables.GetNamedItem("Products").ClearCacheAndData();
                //ISDataSourceList.Tables.GetNamedItem("Products").Select();
                WebComboProduct.Value = "3";//Aniseed Syrup
            }
        }
    } 

 

My question is : How can I manually refresh WebCombo on the server side ?

 

 

 

Posted: November 30, 2009 3:17 AM

Hi

How can I manually refresh WebComboProduct, before setting his Value ?

 

regards

Andrzej

I've found solution:

In Application Poll Advance Settings set: Enable 32-Bit Applications= True

We prefer also Identity=NetworkService

Regards

Andrzej

... we have to take care about perfomance

thank you for support

 

regards

Andrzej

Posted: November 26, 2009 1:55 PM

Hi,

I'm sorry, but I don't understand. Where would you like to set WebComboProduct.Value to "3" or other value comming from datasource (which is binding to FormView )  ?

We use similar solution with RegisterStartupScript, and set WebComboProduct on the client side, but it's workaround.

Is there no other way ? ... Intersoft have to do that :-)

 

regards

Andrzej

 

 

 

 

All times are GMT -5. The time now is 12:54 AM.
Previous Next