User Profile & Activity

Andi Santoso Support
Page
of 53
Posted: December 29, 2009 4:38 AM

Hi Nicolas,

       Yes, it is possible. In order to do that, we need to call the java script from server side using invoke script. Here is the sample code that you need to add on your server side function, 

    WebGrid1.ClientAction.InvokeScript("updateRow();");

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

Best Regards,
Andi Santoso.

Posted: December 28, 2009 11:11 PM

Hi James,

        It occurs because on the WebCombo, there is a property called AllowFloatingText and by default it will set to true. I have tried you sample and set the AllowFloatingText to False and it works fine. Here are the sample code:

<ISWebCombo:WebCombo ID="WebCombo1" runat="server" UseDefaultStyle="true" LayoutSettings-	   AllowFloatingText="False">
</ISWebCombo:WebCombo>

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

Best Regards,

Andi Santoso

Hi Jocelyn,

 

       Actually, you can request for this particular feature at Developer Network -> Community Center ->

 Product Support  -> Feature Request. Thank you.

 

Best Regards,

Andi Santoso

Posted: December 27, 2009 8:51 PM

Hi Yaniv,

    You can request for this particular feature at Developer Network -> Community Center -> Product Support  -> Feature Request. Thank you.

Best Regards,
Andi Santoso

Hi Nick,

      Actually, to use WebCombo control in the  filter column, you do not need to add any line of code in the server side nor client side. When we integrate the Webcombo to WebGrid, it will automatically derive all the column including the filter column to integrate with WebCombo. You can go to our WebCombo sample, WebGridIntegration.aspx, then on the WebGrid's SmartTag, check on "Allow Filtering". You will see that the filter column, now, is integrated with WebCombo.
      I hope it helps and please do not hesitate to ask if you have any other questions.

Best regards,
Andi Santoso

Posted: December 23, 2009 9:01 PM

Hi Yaniv,

    Yes, it would give us a result layout on the reverse, since we set things inside the div from right to left. The "next arrow" which in right postition will move to the left without rotate the image.
    I hope it helps and please do not hesitate to ask if you have any other questions.

Best regards,
Andi Santoso

Posted: December 21, 2009 10:06 PM

Hi R D,

    If you like to set value on the server side, on the Page_Load, you can just add WebCombo1.Value = "Andrew", it will set the default value to "Andrew". All the sample beside the one that using SetText() method are not working because when we try to set the WebCombo into the specific index, the data is not populated yet. That is what we need to set the timeout first. Here are the sample code that I made on ClientSide Event of OnInitialize.

function SetValue() {
	var timeout = 650;
	var combo = ISGetObject("WebCombo1");
	combo.ShowDropDown();
	setTimeout(function() { combo.SetSelectedIndex(5); }, timeout)
}


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

Thank you,
Andi Santoso.

Hi Sudeep,

    Unfortunately, that is the WebGrid behaviour since we are trying to refresh the data and structure of the WebGrid by changing active number of column freezing. As you notice, the method FreezePane is already in the context menu of its header column and it automatically ignite when we use it in the context menu. The alternative way to have a column freezing function, is by creating our own sub-context menu that will change the active number of column freezing. Here are the sample code that I make to change it by one or two.

function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject)
{
	var WebGrid1 = ISGetObject(controlId); 
		    
	var FreezingOneColumn = new WebMenuItem();
			
	var FreezingTwoColumn = new WebMenuItem();
					
	FreezingOneColumn.Text = "<asp:Literal runat="server" Text="Column Freezing One" />";

        FreezingOneColumn.Name = "ColumnFreezing";

        FreezingOneColumn.OnClick = "ViewColumnFreezing";

        FreezingOneColumn.CustomElement = controlId;           
            
        FreezingTwoColumn.Text = "<asp:Literal runat="server" Text="Column Freezing Two" />";

        FreezingTwoColumn.Name = "ColumnFreezing2";

        FreezingTwoColumn.OnClick = "ViewColumnFreezing2";

        FreezingTwoColumn.CustomElement = controlId;
           
        menuObject.Items.Add(FreezingOneColumn); 
         
        menuObject.Items.Add(FreezingTwoColumn);
           
            
	return true;
}
		

function ColumnFreezingTwo(controlId) {

        var grid = ISGetObject(controlId);

	var rootTable = grid.RootTable;
		    
	rootTable.Layout.FreezePaneSettings.MaxFrozenColumns = "4";
		    
	rootTable.Layout.FreezePaneSettings.ActiveFrozenColumns = "2";
		    
	grid.RefreshAll();

        return true; 

}
        
function ColumnFreezingOne(controlId) {

        var grid = ISGetObject(controlId);

	var rootTable = grid.RootTable;
		    
	rootTable.Layout.FreezePaneSettings.MaxFrozenColumns = "4";
		    
	rootTable.Layout.FreezePaneSettings.ActiveFrozenColumns = "1";
		    
	grid.RefreshAll();

        return true; 

}
        
        

		
function ViewColumnFreezing(menuItem) {

        return ColumnFreezingOne(menuItem.CustomElement);

}

        
function ViewColumnFreezing2(menuItem) {

        return ColumnFreezingTwo(menuItem.CustomElement);
}

      And for the layout problem, I cannot replicate your issue. It works just fine on my sample. Have you tried it on different browser? If it works fine on the other, perhaps it is just a browser issue. I hope it helps and please do not hesitate to ask if you have any other questions.


Thank you,
Andi Santoso.

* Double post

Posted: December 21, 2009 1:54 AM

Hi Nicolas,

     Actually, I am not sure what may cause the error when you use another component such as PowerWeb FileUpload (AJAX component). Perhaps you can give me a simple sample code that can represent your issue using AJAX, because our product should be working fine with other AJAX tools and what is the version of your WebGrid if I may know ?.
     In fact, we have our built in component that works just like AJAX component, it is called "WebFlyPostBackManager". You can see our sample to have a further information and functionality of it. I hope it helps and please do not hesitate to ask if you have any other questions.

Thank you,
Andi Santoso.

All times are GMT -5. The time now is 11:27 PM.
Previous Next