User Profile & Activity

Glenn Layaar Support
Page
of 99

I have confirmed the linked WebCombo behavior with the developer. Your assessment is correct, by default the WebCombo will retrieve all the value and filter the data based on the WebCombo 1 selection.

On the other hand, the method you are using in your provide sample will only retrieve partial row based on the selection of the WebCombo1. 

Posted: November 26, 2009 3:12 AM

Based on my observation on the attached code, it seems there is some mistake in the WebScheduler markup.

In the EventsBinding property, you will need to use different column for StartTime and EndTime and you will also need to bind the AllDayEvent field.

<EventsBinding 
AllDayEventField="..."
CategoryIDField="IDCategories"
DescriptionField="descrizione"
EndTimeField="oraFine"
EventIDField="ID"
LocationField="luogo"
ModeField="modalita"
ResourceIDField="IDRisorsa"
StartTimeField="oraFine"
SubjectField="soggetto"
ReminderTimeSpanField="promemoria" />

Also in the ISDataSource Events insert parameter, there is some unaccounted parameter. The parameter that is used for the ISDataSource insert parameter and must be the same with the field binded in the EventsBinding property, except for the ID.

<asp:Parameter Name="IDCategories" Type="String" />
<asp:Parameter Name="IDRisorsa" Type="Int32" />
<asp:Parameter Name="modalita" Type="Int32" />
<asp:Parameter Name="soggetto" Type="String" />
<asp:Parameter Name="descrizione" Type="String" />
<asp:Parameter Name="luogo" Type="String" />
<asp:Parameter Name="allDay" Type="Int32" />
<asp:Parameter Name="oraInizio" Type="String" />
<asp:Parameter Name="oraFine" Type="String" />
<asp:Parameter Name="promemoria" Type="Int32" />


Posted: November 26, 2009 2:35 AM

As my colleague has explained, the lifecycle in WebCombo 2 and WebCombo 4 has been changed. In the WebCombo 4, the text value will be processed much earlier compared to WebCombo 2. Since the text youentered is not in the WebCombo data source list, the text will be set to empty string.

In order to simulate the WebCombo 2 behavior, you could buffer the text value during onlostfocus client side event handler to a hidden input. During click server side event handler, you will need to check the hidden input value to get the last value of WebCombo, if the entered text is not in the dropdown list. Here is the snippet:

function WebCombo1_OnLostFocus(ctrlId) {
var combo1 = ISGetObject("WebCombo1");

document.getElementById("hiddenBuffer").value = combo1.TextObj.value;
}

The hidden input and WebCombo markup:

<input type="hidden" id="hiddenBuffer" runat="server" />
<ISWebCombo:WebCombo ID="WebCombo1" runat="server"
OnInitializeDataSource="WebCombo1_InitializeDataSource"
UseDefaultStyle="true" AllowWildCardSearch="true">
<LayoutSettings>
<ClientSideEvents OnLostFocus="WebCombo1_OnLostFocus" />
</LayoutSettings>
</ISWebCombo:WebCombo>


Posted: November 25, 2009 11:23 PM

The code will work if I set the WebComboProduct value during ItemCreated server side event handler is invoking client script AfterItemSelected. Here is the snippet:

protected void FormView1_ItemCreated(object sender, EventArgs e)
{
System.Diagnostics.Debug.Print("=====Event : FormView1_ItemCreated : Begin");
if (FormView1.CurrentMode == FormViewMode.Edit)
{
DataRowView rowView = (DataRowView)FormView1.DataItem;
if (rowView != null)
{
System.Diagnostics.Debug.Print("=====Event : FormView1_ItemCreated : testbinding (Category=2; Product=4)");
WebComboCategory.Value = "2";//Condiments

this.ClientScript.RegisterStartupScript(this.GetType(), "Update", "<script type=\"text/javascript\" language=\"javascript\">WebComboCategory_OnAfterItemSelected('');</script>");
}
}
System.Diagnostics.Debug.Print("=====Event : FormView1_ItemCreated : End");
}

The original code will not work because WebComboProduct data source is still empty during the ItemCreated event handler

Posted: November 25, 2009 10:23 PM

Without setting the autopostback property of the WebCombo to true the ValueChanged server side event will not be triggered.

However, if you wish to invoke a server side function after a WebCombo item is selected you could use SendCustomRequest function during AfterItemSelected client side event hanlder to invoke a server side event.

Attached is the sample which demonstrate this method.

Posted: November 25, 2009 5:46 AM

The feature is still being worked on, I still do not have any ETA from our developer regarding this issue.

Posted: November 24, 2009 10:01 PM

In the 64 bit environment, the registry entry for intersoft solution must be listed under the HKEY_LOCAL_MACHINE/SOFTWARE and HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node.

Both of the entry will need to have identical information in order for Intersoft component to work correctly. Running the provided tools will help in maintaning both of this entry to be identical. 

You could send us the Intersoft solution registry in both of this folder. Please send it to technical@intersoftpt.com, referencing this thread in the message content, since this is a private & confidential information.

For such scenario, we recommend using Linked WebCombo feature. I have taken the liberty of modifying the sample to use Linked WebCombo feature to simplify the scenario, the after WebCombo1 item selected will also correctly set the WebCombo2 item in the modified sample.

In order to update the WebCombo1 value, you will need to call the function WebCombo1.UpdateState();

Posted: November 24, 2009 2:38 AM

My suggestion is create the WebItem dynamically on the frame.aspx page load or page init server side event handler.

Attached is the sample I used to simulate the scenario, the sample create the tab pages during frame.aspx page in your scenario or ProgramaticWebTab.aspx in the attached sample init server side event handler.

Could you explain in more detail about the reinitialized remark?

Currently they are being created upon PageLoad and I belive the WebTab is initializing fully and then the properties are being set, and it's being reinitialized.


Could you provide us with a client side snippet and the server side event you are using, in order for us to replicate the issue you are having?

All times are GMT -5. The time now is 9:36 AM.
Previous Next