User Profile & Activity

Andi Santoso Support
Page
of 53

Hi Way Hang wee,

     Following is a snippet to get an EventID for an event. You also need a client side of OnEditingFormShow and do not forget to set the EditingURL to your custom editing form aspx. In this sample, on my custom editing form I have a regular TextBox with an ID of "Text1".

function WebScheduler1_OnEditingFormShow(controlId, action, eventView, eventType, newType)
{
	var WebScheduler1 = ISGetObject(controlId);
				    		    
	if (eventType == "Event") {
	   window.setTimeout(function() { window.parent.window[1].document.getElementById              ("Text1").value = eventView.GetOriginalObject().EventID;},100);		                   
} return true; }

      I hope it helps and please do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso


Posted: February 5, 2010 3:16 AM

Hi Mircea,

     The issue that you had is not occurred on our latest build. So would you kindly wait for our releasing and get the latest hotfix on early next week. I hope it helps and Thank you for your patience.

Best Regards,

Andi Santoso

Hi Way Hang Wee,

     The editing form is created as a connected object to our WebScheduler, that is why, for some reason, there are some object that automatically are connected to database and so on. That is also why we cannot erase or removed some objects. If there are objects that not wanted, perhaps you can create a new Editing Form, basically they are just calling an IFrame Window.

     However, it will allow us to add some object to our Editing Form. You can check on our WebScheduler sample, named "EventOrganizer.aspx", or for further information, you also can check on WebScheduler Docs with "Walkthrough: Adding custom fields in WebScheduler using Extensibility feature" topic's name.

     I hope it helps. Thank you.

Best Regards,

Andi Santoso

Posted: February 5, 2010 2:18 AM

Hi Way,

     Forgive me for the mistaken, the previous sample that I have provided was using an incorrect DataSet. The new attached sample is a sample of 4 WebCombo that is using a connected dataset. I hope it helps and Thank you.

Best Regards,

Andi Santoso

Hi Yousif,

     Attached is a sample of AutoWidthColumn. When we set the column as an AutoWidthColumn, that specific column's width will give us a wide width according to its data. How to do so is, go to WebGrid Designer, click on Advance then choose RootTable. After that, you can choose your specific column that we like to set as an AutoWidthColumn. In there, you can set the width for the checkbox as well.

     I hope it helps and please, do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso

Posted: February 4, 2010 9:40 PM

Hi Way Hang Wee,

     Attached is a sample code using 4 WebCombos that the data retrieval is based on the selection made in WebCombo1, WebCombo2, and WebCombo3.

     I hope it helps and please do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso

Posted: February 4, 2010 9:23 PM

Hi Scott,

     Would you kindly run the sample that I attached ? In that sample, I am using Customer Northwind database. What you can do is, try to copy the whole row and paste it again using "Paste Multiple Rows from Clipboard". In here, I make a validation that every city that equals to London will have a red highlight in their cell.

     I hope it helps and please do not hesitate to ask if you have any other question. Thank you.

Best Regards,

Andi Santoso

Posted: February 3, 2010 10:56 PM

Hi Scott,

     Thank you for you more detail information. I have forwarded this to our developer and I will inform you as soon as possible when the Hotfix is ready. I hope it helps and please do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso

Hi Vincenzo,

     I have forwarded this issue to our developer team. I will inform you as soon as possible when the hotfix is ready. I hope it helps and please do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso

Posted: February 3, 2010 9:41 PM

Hi Scoot,

    Actually, we do have a method to prevent invalid data insertion. Here are the sample code that will prevent data insertion to pending changes if it meets its validation. You can put this code in client side OnAddPendingChanges event.

if (rowChange.Data[1].NewValue == "Value")
{
   //If it is true, it will undo the changes
   setTimeout(function() {rowChange.Row.UndoChanges();},200);
}

     I hope it helps and please let me know if you have any other questions. Thank you.

Best Regards,

Andi Santoso

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