or
private void LoadFramework() { try { // SETUP SEND MESSAGE // Create sender of string messages. IStringMessagesFactory aStringMessageReceiverFactory = new StringMessagesFactory(); myStringMessageSender = aStringMessageReceiverFactory.CreateStringMessageSender(); // Create output channel sending via Tcp. // Note1: Silverlight supports only ports of range 4502 - 4532 // Note: Set the timeout (miliseconds) for opening the connection and for sending messages. IMessagingSystemFactory aTcpMessagingFactory = new TcpMessagingSystemFactory(1000); IOutputChannel anOutputChannel = aTcpMessagingFactory.CreateOutputChannel("127.0.0.1:4502"); // Attach the output channel to the string message sender // to be able to send messages via Tcp. myStringMessageSender.AttachOutputChannel(anOutputChannel); // SETUP RECEIVE MESSAGE // Create the BrokerClient to subscribe and receive notifications. IDuplexBrokerFactory aBrokerFactory = new DuplexBrokerFactory(); myBrokerClient = aBrokerFactory.CreateBrokerClient(); // Handle received notifications. myBrokerClient.BrokerMessageReceived += OnBrokerMessageReceived; // TCP messaging for the communication with the desktop application. IMessagingSystemFactory aTcpMessaging = new TcpMessagingSystemFactory(1000); // Create the TCP output channel and attach it to the BrokerClient. IDuplexOutputChannel aTcpOutputChannel = aTcpMessaging.CreateDuplexOutputChannel("tcp://127.0.0.1:4510"); myBrokerClient.AttachDuplexOutputChannel(aTcpOutputChannel); blChannelLoaded = true; } catch (Exception ex) { blChannelLoaded = false; var x = ex; //RadWindow.Alert("Please load app1"); HtmlPage.Window.Invoke("TestSLCall", "Please Load SkypeLink"); } }
return kendo.toString(new Date(2010,04,17), "MM/dd/yyyy");<BR>Hello,
I have a gauge that has values that are retrieved via a web service. The gauge is initially created successfully, but when my timer runs, the object that the series are bound to get updated, but the UI doesn't change.
Is there something I can do to get the UI to refresh that doesn't involve the flickering that I get when I call redraw or I recreate the gauge?
Here is my code:
The first code only updates the pointer value, but I also might want the range values to change.
function ServiceSucceeded(result) { //alert('Service call succeeded'); // = result.d.Pointer; Current = result.d; $("#radial-gauge1").data("kendoRadialGauge").value(Current.Pointer); }function createGauge() { $("#radial-gauge1").kendoRadialGauge({ pointer: { value: Current.Pointer }, scale: { majorUnit: 10, minorUnit: 3.5, min: Current.Start, max: Current.Size, ranges: [ { from: Current.Start, to: Current.RedWidth, color: "red" }, { from: Current.RedWidth, to: Current.RedWidth + Current.YellowWidth, color: "yellow" }, { from: Current.RedWidth + Current.YellowWidth, to: Current.GreenWidth + Current.YellowWidth + Current.RedWidth, color: "green" }] } }); }