User Profile & Activity

Andi Santoso Support
Page
of 53
Posted: December 1, 2009 10:53 PM

Hi Sunym,

 

      I have tried to create a Hierarchical WebGrid like you did without MasterPageFile, and it seems alright. I have attached a screenshot and a sample code of the WebGrid that I made. If I may know, what browser are you using? and Have you ensured that you have already downloaded the latest HotFix from us?

 

Thank you,
Andi Santoso

Hi Madhavan,

 

      I have replicated your issue and having a same one. I have send this issue to our developer to investigate it. I am so sorry, but if there is a new news from our developer, I will inform you as soon as possible.

 

Thank you,

Andi Santoso.

Hi Throstur,

 

          I am having a problem to replicate your issue. Is it possible to attach me your sample?

 

Thank you,

Andi Santoso

 

Posted: November 30, 2009 2:05 AM

Hi Michal,

    To make a template column programmatically, first, you will need a class file that Instantiate the type of column that you wanted and add it to the container. After that,at prepare databinding on server side, you will need to add a new column and call that specific class.

    Here are the sample code that I make to create a template column with label in it. Remember to put the class CellTemplate.cs file into your App_Code.

 

Hi Madhavan,

     In order to do so, first, you will need to get the index row of the selected object, then, from that, if the current row index is on the total loaded rows, we need to load more data by "wgLoadMore('WebGrid1') to retrieve the next selected data. After we load more data then we can go to the 7th or next record of database.

     There are attached codes that I made in Java Script using 2 buttons to go on the next and previous selected data.


Thank you,
Andi Santoso

Posted: November 29, 2009 10:06 PM

Hi Mino,

    Actually there is no such property to change or set the text-color of the resources in the Web Scheduler. But there is a way to do so, by go to each element of its resources and change its text-color, which I strongly do not recommend, because, to achieve this you will need to find each elemet and change it one by one and as the result, you might have a messy code and find it hard when you want to add more resources.

   That is why, I strongly suggest for you to change the text-color from your database. In your data base, you can go to resources table and change/set its text-color. If you do so, when you retreive that database, it will automatically follow its attributes.

 

Thank you,

Andi Santoso

Hi Duane,


   I have replicated your issues and I have already sent it to developer team. I will inform you in advance if this issues has been solved.


Thank you
Andi Santoso

Posted: November 26, 2009 2:54 AM

Hi Adrian,

 

    The WebGrid1_BatchUpdate behavior from server side is to Update the data in server but not for the layout. I am sorry for the inconvenince, but I have sent this issue to the development team and they will enhance this feature in next hotfix.

 

Thank you,
Andi Santoso

Posted: November 25, 2009 4:57 AM

Hi Adrian,

   Those are the PerformBatchUpdate’s behavior, as you might notice that, if you try to debug the code, the grdFactors_BatchUpdate is called after grdFactors.PerformBatchUpdate invoked. So, actually the batchupdate is run already and its behavior to leave the highlight on the WebGrid.

  But here is the other way to remove the highlight on the WebGrid from the server side. But, no matter how, we still need to use a script to accept all changes in WebGrid and display it, that is why we need to call a java script in the server side.

Here are the sample code that I modify from your sample:

<<HTML>>

<script language="javascript" type="text/javascript">

// <!CDATA[

function update() {

 

            var grid = ISGetObject("grdFactors");

            

            window.setTimeout(function() {grid.AcceptAllChanges()},50);

                      

            return true;

        }

 

// ]]>

    </script>

 

 

<<C#>>

 

protected void btnSave_Click(object sender, EventArgs e)

{

             grdFactors.PerformBatchUpdate(true);

             this.ClientScript.RegisterStartupScript(this.GetType(), "a", "<script  	  	language=\"javascript\" type=\"text/javascript\">update();</script>");

 

 

}

 

Thank you,

 

 

Andi Santoso

Posted: November 24, 2009 3:32 AM

Hi Adrian,

                I have succeed replicate your issue, and I also encounter a same issue as well. I believe we cannot perform the BatchUpdate on the server side, but we can perform the BatchUpdate from the client side using the AcceptAllChanges() method. That is why, instead of server side button, we need to use a client-side input button and perform a java-script to update the WebGrid.

Here is the sample code that I made on the HTML:

 <script language="javascript" type="text/javascript">

// <!CDATA[

 

        function Button1_onclick() 

        {

            var grid = ISGetObject("grdFactors");

            grid.AcceptAllChanges();

        }

 

// ]]>

    </script>

 

Thank you,

Andi Santoso

All times are GMT -5. The time now is 8:32 AM.
Previous Next