User Profile & Activity

Andi Santoso Support
Page
of 53

Hi Ellen,

     First of all, forgive me if I am wrong, but if I am not mistaken, when we use Unbound to populate the data, we cannot create a link setting and filter another WebCombo. So my suggestion is, since the return value is in data table as well, why do not you use bound WebCombo. So instead of cBoChild.PopulateUnboundData(dt,true), you can just put the data table in to the data source, ex: cBoChild.DataSource = dt. In this way, now we can use the link setting feature and we do not need the client side even of "onAfterItemSelected". I believe it is more convenient.

     For the second problem, the column is not adding because you have not set the combo mode into a multiple columns. Here a line code that you will need to add in order to do so:

WebCombo2.LayoutSettings.ComboMode = ISNet.WebUI.WebCombo.Mode.MultipleColumns;

     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 14, 2010 11:48 PM

Hi Sukhdepp Kaur,

     Yes, the best way to do so is by using a client side event OnBeforeWindowClosed and make the return value into false. The object expected error is occured, perhaps, you did not specify the specific object. Attached is a sample code to show a WebDialogBox after we click on "X" button and asking for confirmation of closing the window.

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

Best Regards,

Andi Santoso

Hi Way Hang Wee,

     From the previous snippet that I gave to use, the value of Text is set to an EventID. To get the value of "Text1", you can simply try with it with an alert. Here are the snippet.

if (eventType == "Event")

{

   window.setTimeout(function() { window.parent.window[1].document.getElementById("Text1").value = eventView.GetOriginalObject().EventID; }, 100);

   window.setTimeout(function() { alert(window.parent.window[1].document.getElementById("Text1").value); }, 300);

}

      I hope it helps. Thank you.

Best Regards,

Andi Santoso

Posted: February 12, 2010 4:27 AM

Hi Douglas,

     I am so sorry for the mistaken. I have forwarded this issue to our developer. This scenario, actually. is not being prepared and, by using template cell in batch update is not supported yet. I have already submitted this as a feature request to our developer team. At this moment, the best workaround is, by using a dropdown list as an edit type. Sorry for the inconvenience.

     I hope it helps. Thank you.

Best Regards,

Andi Santoso

Posted: February 11, 2010 10:00 PM

Hi Conrad,

     Thank you for your effort and details information. I believe this workaround will help the others who have the same scenario, because from our component its self, we do not support that kind of feature. Thank you.

Best Regards,

Andi Santoso

Posted: February 10, 2010 10:58 PM

Hi Ca,

     Warm Wishes to you too.

     Sorry to tell you, but our WebGrid does not support that kind of feature. Thank you.

Best Regards,

Andi Santoso

Posted: February 10, 2010 10:45 PM

Hi Xedem,

     Yes, the height issue has been replicated and has been forwarded to our developer team. I will inform you as soon as possible if the issue is fixed. 

      On the other hand, to display the previewRow content as multiline, we will need a WebGrid1_LoadPreviewRow server side event and set the DefaultExpanded="false" and LoadOnDemand="true". So that the event will be triggered. Here are the snippet that you can use to set a multiline preview row.

 protected void WebGrid1_LoadPreviewRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
    {
        e.Row.PreviewRowValue = e.Row.Cells.GetNamedItem("ProductName").Text + "<br/>" + e.Row.        Cells.GetNamedItem("ProductID").Text;      
    }

     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 10, 2010 9:43 PM

Hi Douglas,

     Unfortunately, there are no better way in doing this scenario. It is only a workaround and it is kind of hard if we want to threat this cell as a regular cell since it is only a template. Because cell template is only attached on the WebGrid and not attached to a physical database. For instance, we have a database with 4 attributes on it, then we create another 5th column of cell template and I do not think that we can include the data to restore into our database which only has 4 attributes on it.

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

Best Regards,

Andi Santoso 

     

Hi Douglas,

    I think I will refer this to your other thread that related on each other. You can click on here to go to that particular page.

    Thank you.

Best Regards,

Andi Santoso

Posted: February 10, 2010 6:18 AM

Hi Douglas,

     Yes, it would be the same. The different is, mine is created at behind code and yours is not. Attached is a sample on how to let the WebGrid recognize the changes on TemplateCell and on how to access the child control in server side. To access the child control, on WebGrid_OnInitializeRow server side, you will need to get the specific cell and assign as a template object. Before that, on you cs file, you will need to define what are the attribute for the Template cell its self.

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

Best Regards,

Andi Santoso

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