User Profile & Activity

Maged Mikaeel Member
Page
of 6

Yes, and this is really causing lots of issues and frastration to devlop.

Posted: September 29, 2010 9:43 AM

Thanks for your reply.

This is not exactly what I’m looking for.

I want to manage it from the client side as we usually do for the other controls, so I mean I want to bind the control to a datasource instead of loading it from the server side.

Posted: September 28, 2010 11:03 PM

I found a great fix for that, by using unbound mode, and load the data in the combobox on the serverside at the page load using PopulateUnboundData() combobox api.

Well, this is not the only issue here, any control you place inside the pane manger, after you put them inside the pane manger, and using the GUI designer, no changes will take a place, you actually will not get any change you make using the GUI. The only thing works is if you write everything manually without the GUI tools, or as you said, by taking it outside the Pane Manager which is kind of frustrating.


Thanks,

Maged

Posted: July 9, 2010 1:32 AM

Also this is idn't work with me due to actions not hapeinging in exact secuence, for example, if you programatically show the drop down, I cannot inthe next line of code to select an item because the server will still processing the request. Best solution is to provide me a function that ask the combo toload all the items!

Posted: July 9, 2010 12:50 AM

Thanks for your reply.

Is there any function that I can use to force the combobox to load all the  items without open the drop down list. It doesn't look good if the user find the list open without touching it!

Posted: May 20, 2010 1:50 PM

I managed to fix it, all good now.

Thanks allot for your support.

Posted: May 19, 2010 5:14 AM

Hi Andi,

   Nice work arround. The onlything is not working properly is the

grid1.RootTable.GetRowByKeyValue(txt.value).Select();                   

The  grid1 doesn't show the selected row after we select back the older row, it need kind of screen referesh, but I could not do it, any idea?

Also, I had to modify this solution, as we need to handle grid1_OnBeforeRowSelect(...).


Thanks,

Maged

Posted: May 18, 2010 9:23 AM

Hi,

   Thanks again for your support.

   First let me show you what I did in the code.

On the server side:

/// <summary>

///

/// </summary>

/// <param name="sender"></param>

/// <param name="e"></param>

protected void MemebershipTypesGrid_InitializePostBack(object sender, ISNet.WebUI.WebGrid.PostbackEventArgs e)

if (e.Action == ISNet.WebUI.WebGrid.PostBackAction.Custom)

{

 ucSelectedMemebershipTypID.Value = Request["key"] asstring;

 FreeProductsGrid.ClientAction.Refresh();

 PricedProductsGrid.ClientAction.Refresh();data

}

On the client side:

/// <summary>

function MemebershipTypesGrid_OnRowSelect(controlId, tblName,

rowIndex, rowEl)

{

  try

  {

var grid    = ISGetObject(controlId);

var row     = grid.RootTable.GetRow(rowIndex);

      var key     = row.KeyValue;

document.getElementById('ucSelectedMemebershipTypIDGroup').childNodes[0].value = key;

      {

            grid.AddInput("key", key);

            grid.SendCustomRequest();

      }

}

catch (err)

{

alert(err.description);

}

                 

 return true;

}

With this code, it works perfectly, except one thing, still refresh issue, sometimes the third grid or the second grid don’t get refreshed, and if I update it manually, I’ll see the data.

Any brilliant ideas to ensure the refreshment will happen?

This software will be used by hundreds of users, and may be thousands of people in the future, and I can’t ask the users not to navigate quickly using the keyboard or to use the filter to navigate instead of using the keyboard, this is hard to ask. If its few users and all technical users, I wouldn’t really care, but users like doctors, nurses or accountants can’t be asked to do things like that, they only want to know how to use the keyboard or mouse...etc :-)


Thanks,

Maged

Posted: May 17, 2010 9:02 PM

Hi Julia,

  Thanks for your reply.

   I don’t agree that this is not a bug.

   The problem is, if you change quickly, the grid will send the first event, but it will not send the second event, you need to wait a little while to get the second event for the new row before you move to a new row.

   Now imagine, if you have 10 rows of data in the first grid, and the user just keep clicking on the down arrow to go down to the fourth row, but because it was too fast, the grid may miss the last row to send the event, this will result that the user will see a data in the second grid not related to the current selected line, and that is my main concern.

 I’m working on a large medical project, and mistake like this will result of wrong patient results and information.

I tried your sample, and it act a little bit better, but here is another related issue to your sample.

If I have three grids, one master grid, that if this grid changed the row, the other 2 grid will get updated. With your sample, if we move quickly, we will get one grid updated and the other one not!!

This is serious issue and need to be fixed.

If there is any way to block the master grid of moving until the other grids get updated that may fix, so please check and let me know.

Maged

All times are GMT -5. The time now is 3:53 AM.
Previous Next