Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views
Hi there,

I have a panel that polls a web service regularly for updates. If there is some sort of communication error to the server I get a javascript error message saying that the method could not be called. Is there a way to supress this at all or capture it in some way and handle the exception manually?

Thanks v much, Carl
Svetlina Anati
Telerik team
 answered on 18 Sep 2009
1 answer
132 views
This RadGrid is very new to me, having just begun my evaluation of the product yesterday. I may be way off in everything you see below... :-)

I have a RadGrid with a NestedViewTemplate. Inside of that, I have a RadTabStrip that deep inside it has three RadPageViews. No problem there. One of them looks like this:

<telerik:RadPageView runat="server" ID="pvGraph" > 
    <chart:WebChartViewer ID="myChartControl" runat="server" Width="400px" Height="300px" /> 
</telerik:RadPageView> 

Using a different charting component is not an option at the moment. If I use the charting-component in a "bare-bones" asp.net page, i would then generate and display the graph using this code:

Dim myChartHelper As chartHelper = New chartHelper(dbConnectionString) 
myChartHelper.GetChartWeb(myChartControl, gridView1.SelectedValue) 

But.... when using Rad controls, how do I get a reference to the "myChartControl" control, and how do I pass the selected value from my RadGrid to the code, so I can use the SelectedValue as a parameter for my chartHelper.GetChartWeb method?

And how do I "delay" invokation of the GetChartWeb method, so the chart is generated on demand when a user clicks the "chart" tab of my tabstrip?

So far very impressed by what's possible with the RadGrid, but growing DEpressed with still being exactly where I was 24hrs ago. Stuck. :-(

Hoping all of this makes sense to someone :-))

J.Jespersen

Sebastian
Telerik team
 answered on 18 Sep 2009
3 answers
76 views
Hi - how do I programmatically add a header template and item template to a combo box?

Thanks
Yana
Telerik team
 answered on 18 Sep 2009
2 answers
118 views
Help!
I have a radgrid built that uses a custom editform.  In the updatecommand sub I follow all the Telerik standards... cast e.item to grideditableItem (id="eitem"); then search out controls by using trycast(eitem.findcontrol("object"), radtextbox).text.  This is how all the documentation is setup... but it will NOT work for me!  I have been working on this for 2 days now-- I have a note into Telerik support as well, but figured it couldn't hurt to ask the group...

I should add that I am using EditMode="popups" and EditFormType="templates".
JEFF KINSEY
Top achievements
Rank 1
 answered on 18 Sep 2009
2 answers
126 views
Hi all,

I have a radTreeView that generates itself on the page load event. Then, when the NodeExpand event is triggered, the node's child are added dynamically to the parent node. From there, everything works well.

Also, just after the page load event, a javascript method is called to add a click event on each icon of the tree. Here how I do this (I picked up the code from another thread in this forum) :

<script type="text/javascript"
 
      //This function must not be between tags with runat="server" 
      //It adds the click event to every icon in the tree 
      function pageLoad() { 
         
        var tree = $find("<%=oTreeUsers.ClientID %>"); 
        var i;       
        for (i = 0; i < tree.get_allNodes().length; i++) { 
          var value = tree.get_allNodes()[i].get_value(); 
          var imageElement = tree.get_allNodes()[i].get_imageElement(); 
          var textElement = tree.get_allNodes()[i].get_textElement(); 
 
          imageElement.id = tree.get_allNodes()[i].get_value(); 
          textElement.id = tree.get_allNodes()[i].get_value(); 
           
          if (imageElement.addEventListener) { 
            //FireFox 
            imageElement.onclick = function(e) { clickHandler(this, e); }; 
            imageElement.oncontextmenu = function(e) { clickHandler(this, e); }; 
            textElement.oncontextmenu = function(e) { clickHandler(this, e); }; 
          } 
          else { 
            //IE 
            imageElement.onclick = function() { clickHandler(this, window.event); }; 
            imageElement.oncontextmenu = function() { clickHandler(this, window.event); return false; }; 
            textElement.oncontextmenu = function() { clickHandler(this, window.event); return false; }; 
          } 
        } 
 
        function clickHandler(imageElement, e) { 
          ShowRadMenu(imageElement.id, e); 
        } 
 
 
      }       
  </script>  

When a user expand a node and all the sub nodes are created with the property oChildLeaf.ExpandMode = TreeNodeExpandMode.ServerSide, everything works well because the javascript method catch the new created nodes. The click event is then added to the icon of the nodes.

But when I set the oChildLeaf.ExpandMode = TreeNodeExpandMode.ServerSideCallBack to the created nodes, the javascript won't catch the new nodes because only a partial postback is sent to the server.

My problem is that I need to set the nodes of my tree to ServerSideCallBack for optimizing performance but the javascript click event won't follow. I tried using the ScriptManager.RegisterStartupScript method to call my javascript on the NodeExpand server-side event but it doesn't seem to work.

Can anyone help me on this?

 
Dominic Feron
Top achievements
Rank 1
 answered on 18 Sep 2009
1 answer
108 views
Is there a way to set min and max date of the DateInputSetting on the RadInputManager from the server-side? We have are building an application that requires these settings to be dynamic. Or is this entirely on the client-side? Or should I just stick with RadDateInputs to make this work? Can you link some sample codes? Thanks.
Dimo
Telerik team
 answered on 18 Sep 2009
1 answer
68 views
On

http://www.telerik.com/help/aspnet-ajax/window_overviewwindowstructure.html

it says TitleBarVisible instead of VisibleTitleBar

:-)
Marc



Svetlina Anati
Telerik team
 answered on 18 Sep 2009
1 answer
104 views

On my web page i have a telerik calendar and also an create appointment button. when user clicks on insert appointment button, i want to show the insert appointment dialog directly. i know that you have a method showInsertFormAt() with timeslot parameter. However from my client side button click event, i cannot seem to create timeslot object. i tried using

 

 

<script type="text/javascript">

 

function

 

btn_click()

 

{

 

var schedulerPopupCalendar = $find('<%= radScheduler1.ClientID %>');

 

 

var

 

timeslot = new Telerik.Web.UI.TimeSlot(); \\ i get error here.

 

schedulerPopupCalendar.showInsertFormAt(timeslot); 

 

}

but this Telerik.Web.UI.TimeSlot() object does not exist.

I will appreciate the help.

Peter
Telerik team
 answered on 18 Sep 2009
2 answers
63 views

Posted 18 hours ago (permalink)

Hi;

We are using Tabstrip control (Sitefinity 3.7) with full images (no text). This approach works fine with All browsers but IE7 and IE6. i have searched Rad Controls forum but couldnt find any similar issue.Any suggestion?

P.S. :Html code which is rendered by "tabstrip" generates Span within Anchor tag  doesnt work in IE 7 & and IE 6
Gokhan
Top achievements
Rank 2
 answered on 18 Sep 2009
1 answer
84 views
I am looking for a feature that is very similar to what we experience when we do a Google search.  As we type, it appears that what we have typed is sent to the server in the background via Ajax and used with wild cards in a select query to return filtered results to the client. So the filtering is done on the server and not on the client.

If I understand the ComboBox correctly, its filter is applied against data that already exists on the client. I need the filtered data to come from an Ajax call to the server and not get all the data and then filter it on the client.

If I am correct that this feature is not currently available, it sure would be nice if it was.

If this feature is not available, I would appreciate how best to solve the problem using what capabilities currently exist.
Atanas Korchev
Telerik team
 answered on 18 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?