User Profile & Activity

Handy Surya Support
Page
of 223
Posted: January 12, 2011 10:28 PM

Hello,

Thank you Martin to remind me. :-)
To disable a command in the toolbar, you will need to know what type of the toolbar.
We have several type of toolbar such as:

1. ToolBar which is toolbar at design
2. HTMLToolBar which is in html mode
3. PreviewToolBar which is in preview mode
4. FloatingToolBar which is in floating mode

e.g I disable bold command. Bold command is one of ToolBar command.
Here is the following codes:

var rte = ISGetObject("WebTextEditor1");
rte.ClientToolBar[0].Disable("cmdBold");

Regards,
Handy

Posted: January 12, 2011 4:42 AM

Hello Kenny,

Unfortunately, we don't have any feature to customize the review pending changes dialog box.
However, there is a workaround to modify it. Fyi, we haven't expose this in public but you might want to try.
Please see my modified sample. In my sample, I add a field into the review changes dialog box.
Here are some steps that you will need to know:
1.Create your own dialog box review changes
2.Set the review changes url into your own dialog box review changes
3.Validate all your scripts in order to load the information in your dialog box review changes.

For further information, please run the attached sample.

Regards,
Handy

Posted: January 12, 2011 4:26 AM

Hello Fung,

You can disable the command button by using SetISEnabled(false).

e.g

var tb = ISGetObject("WebToolBar1");
tb.Commands.GetNamedItem("Menu1").SetIsEnabled(false);

Regards,
Handy

Posted: January 12, 2011 2:32 AM

Hello Frank you can set NodeStyle for Normal and Over properties. 

E.g In normal state, please try to apply below style.

 <NodeStyle>
 <Normal ForeColor="Blue">
 </Normal>
 <Over ForeColor="Red">
 </Over>
 </NodeStyle>

Regards,
Handy

Hello Eric,

Here, I modified your sample by using my apporoach. Hope this helps.
Please let me know if I am missing something.

Regards,
Handy

Posted: January 11, 2011 9:16 PM

Hello,

Please read my previous post. Please ensure that you use the latest hotfixes. You can see in my attachment video. All the fields show alert in format dd-MMM-yyyy. There are nothing wrong with the sample when I ran it unless I am missing something. 

Regards,
Handy

Hello Eric,

I modified the sample. However, there are several things that I need your confirmation.

  • dropdown for a filter selection for 1-2 webgrids below, aside with a Refresh button, which updates the content of the webgrids below
  • When changing the dropdown selection, the webgrids should immediately dissappear or be optically visible as invalid, even when the usual refresh takes much longer. Loading the data for the second (or the only) grid takes about 30 seconds from the database.

You can Hide it when change the dropdown and refresh the Grid with timeout.

  • When the Webgrid contains no rows, it should be displayed somehow. Preferably by inserting a single row, expanding the first column to the whole screen width (and all other columns hidden). As soon as there is data in the grid, the width should be reset to default width.
  • In case of two WebGrids, when selecting a row in the first grid, the second grid should update its content. This grid should also show the functionality mentioned above with the "no data"
  • When changing the filter dropdown, the header (caption) values of the columns must change, depending on the selected dropdown value (in case of two grids for both).
  • For the two-grid scenario selecting the "no data" row in the first grid must not update the second grid. And if nothing is selected in the first grid, the second grid must display "no data".

In your previous sample, WebGrid2 can load data when click on single row (no data) from WebGrid1.
So, do you want WebGrid2 show no data as well when click single row (no data) from WebGrid1?
If yes, I already add some validation.

About change caption and width, I am a little confuse about this.

When you change a dropdown value, shouldn't WebGrids become invisible?
So, what change caption need for? Also, didn't WebGrid1 Column show as well the value of dropdown?
I know that maybe I am missing the point for WebGrid2, but can you help me?
If you have a working sample that shows this scenario, can you send me a recording video?
Fyi, your previous sample did not reflect this scenario.


About the slider issue, I haven't received any news from our developer teams. I will contact them and let you know asap.

Regards,
Handy  




Posted: January 10, 2011 10:40 PM

Hello Ross,

If you put direct value as I mentioned before, do you also get the same error as well?
Define the value directly is also using a string. So, I think it should be the same. 

It would be better if you can send us a simple project that replicates this issue.

Regards,
Handy

Posted: January 10, 2011 10:04 PM

Hello Shawn,

You can set the culture in IntializeLayout or in PageLoad event. Please see the attached sample.
In my test, I am using WebGrid 7 build 416 and WebUIFramework build 767. However, I could not replicate the issue. So, would you mind to send us a simple runable sample that replicates the issue?

Regards,
Handy

Posted: January 10, 2011 9:21 PM

Hello Ross,

Unfortunately, I could not replicate the issue. I tried to use your following structure. However, In my test, I set the Value diretcly.

Value="5555551212"

Or

tbxHomePhone.Value = "5555551212";

I can see (555) 555-1212 when load the page without click it. So. would you mind to let us know what datatype in your viewmodel. Or, you can also send us a simple working project that replicates this issue.

Regards,
Handy

All times are GMT -5. The time now is 6:54 AM.
Previous Next