User Profile & Activity

Andi Santoso Support
Page
of 53

Hi Nick,

    Sorry, but that behaviour is not supported yet. By default, it will clear the filter column when it is lost focus.

Thank You,
Andi Santoso

Posted: December 15, 2009 4:54 AM

Hi Nicolas,

    Actually, I do not see something wrong with your java-script code. So here, I attached you my aspx file using a northwind database, try and see if it runs fine on yours, if so, then you can modify mine.
    I hope it helps and please do not hesitate if you have any other questions.

Thank you,
Andi Santoso

Posted: December 14, 2009 11:16 PM

Hi Nicolas,

     It seems that I cannot replicate your issue. I have tried your sample code and it works well, all the function are called. The error that you have got, did it say "Unknown Runtime Error" ? or something else ? Have you tried to reset the VS ? or empty your "Temporary ASP.Net Files" <C:\Windows\Microsoft.NET\Framework\<<your version>>\Temporary ASP.NET Files> and do the "iisreset" from cmd prompt.
 
     I hope it helps and please do not hesitate to ask if you have any other questions.

Thank you,
Andi Santoso

Hi Sudeep,

     Yes, you absolutely can change the WebGrid's ActiveFrozenColumns property on client side. Here are the sample code that I made using a HTML button to change its value.

function Button1_onclick() {

	var wg = ISGetObject("WebGrid1");
	var grid = wg.RootTable;
		    
	grid.Layout.FreezePaneSettings.MaxFrozenColumns = "5";
	grid.Layout.FreezePaneSettings.ActiveFrozenColumns = "1";
		    
	wg.RefreshAll();
		    
}

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

 

Thank you,

Andi Santoso

Hi Mino,

      It seems that I cannot replicate those behaviour, it works fine on me. Perhaps, sending the .aspx file would be a help for me to investigate further more.
      For changing the title of the editing box, first, we need to get to the object of the EditingDialogBox. Here are a sample code in client side _OnEditingFormShow that I made to change the caption.

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 = 						WebScheduler1.SelectedEvent.StartTime; }, 500);

	}
	else {


		window.setTimeout(function() {
		            
		var dialogBox = ISGetObject("dlgEditing");
	        var setCapt = dialogBox.Window.SetCaption("Add New Event");
		window.parent.window[1].document.getElementById("Text1").value = 				WebScheduler1.StartDateSelection;
		            
		}, 10);
		        
	}
		  
	return true;

}

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


Thank you,
Andi Santoso

Hi Pierre,

     Sorry to tell you, but that is the default behaviour of WebGrid. So it would be, either set all the height row to the maximum, based on the data field, to keep focus on the selected row when we scroll to the right or make it with a regular height.

Thank you,

Andi Santoso

Posted: December 10, 2009 10:55 PM

Hi Joycelyn,

    Actually DataKeyField is based on your Primary Key on database. You can add another key, but it will be stated as a ForeignKey. In DataKeyField, you just need to leave it blank, by default, it will be configured by it self.
    I hope it helps and please do not hesitate to ask if you have any other questions.

Thank you,
Andi Santoso

Posted: December 9, 2009 9:35 PM

Hi,

     Sorry, but I cannot replicate you issue. Could you give us more detail informations, such as, what does the link do? Does it link to another page or doing other else procedure? To be more precise, could you give us a simple sample code and steps to reproduce of your issue.
     I hope it helps, and please do not hesitate to ask if you have any other questions.

Thank you,
Andi Santoso

Hi Mark,

      Yes it is possible. In way to do so, you need to retrieve the value on each cell by the key value. Here are the sample code that I made in server side.

protected void Button1_Click(object sender, EventArgs e)
{
        TextBox1.Text = "Checked rows are : \n";
        
        foreach (string keyValue in WebGrid1.RootTable.GetCheckedRows()) // get checked rows
        {
             
            for (int x = 1; x < 11;x++ )
            {

                TextBox1.Text += WebGrid1.RootTable.Rows.GetRowByKeyValue  			       (keyValue).Cells[x].Value + ",";
            }

            TextBox1.Text += "\n\n";
        }
}

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

Thank you,
Andi Santoso

Posted: December 9, 2009 9:19 PM

Hi Ethan,

   Sorry, but I am unable to replicate your issue. The WebCombo works fine on my Safari, it populates all the data that i expected. Have you tried to get the latest hotfix from us and download the newest version of Safari ? Could you give me your simple sample or page structure? So I can investigate the issue.

Thank you,
Andi Santoso

All times are GMT -5. The time now is 1:46 AM.
Previous Next