Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
271 views
I just installed RadControls for ASP.NET (v2009.2.701.35) and then opened the RadControlsExamples VS2008 project. However, while I see a new "Telerik" menu item, I don't see anything new in my Toolbox. Shouldn't there be at least a few new controls in there ;-).

I also tried creating a new WebApp and when I open the Default.aspx page, I get 3 "This control cannot be displayed because its TagPrefix is not registered in this Web Form. I looked in Web.config and it does have a

                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>

line so I'm not sure why I am seeing that message. I tried adding

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

but that just gave me new error messages.




This project also has nothing new in the toolbox. What's up?

-John



Mike
Top achievements
Rank 1
 answered on 22 Aug 2009
3 answers
997 views
Hi All,

I have got a business condition. Depending upon the result i have to show radwindow else do some other thing. I though of adding client side script from server side. The code is somewhat like this

if

 

(test)

 

{

 

String strscript = "<script language='javascript' type='text/javascript'>";

 

strscript +=

"var oWnd = window.radopen('Default2.aspx', 'radwindow');";

 

strscript +=

"</script>";

 

Page.RegisterStartupScript(

"test", strscript);

 

}

But it is not working beacuse of error in javascript. Can any one you help me here please. A demo example would be appreciated

Rakesh

Rahul Khinvasara
Top achievements
Rank 1
 answered on 22 Aug 2009
0 answers
95 views
Hi all,

        This is Azees from AVAcorp technologies. We are decided to devlope a software like MockupScreen
        (Use of MockupScreen :Create five screens in ten minutes without any programming knowledge or prior training.)
        We have to implements telerik controls for our software Just track and drop the all the telerik controls like MockupScreen
        Can we use this telerik control for our tool ? its possible means How to implements?
        Send me a reply soon.Becaz we have now only telerik trail  version we going to buy full version
Regards,
Abdul Ajees

 
Azees
Top achievements
Rank 1
 asked on 22 Aug 2009
7 answers
193 views

  Yes, there is a thread about how to do this, but it uses the older style for separate insert and edit forms.  My specific problem is that when mirroring the code the Javascript refuses to fire when the object is a LinkButton (a href), but has no problem when it is a regular Button.  Does this make any sense?
Alex Occhipinti
Top achievements
Rank 1
 answered on 22 Aug 2009
5 answers
560 views
Hi All,

I am using a RadGrid that including Add Item and Refresh bar on the top of Grid.  However, I only need Refresh to show and Add Item must hide/disappear.  I did try CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="" inside MasterTableView and the Text of Add Item is not show up but + sign image is still there.  So, my question is how can I remove + sign image?

Let me know if anyone has any idea.

Thanks and Appreciations

-Don
Murad Ajani
Top achievements
Rank 1
 answered on 21 Aug 2009
6 answers
270 views
With versions 2008 Q1 SP1 & SP2, the radprompt calls the callback function regardless of whether 'OK' or 'Cancel' is clicked.  In prior versions the callback would not be called if 'Cancel' was clicked.  How do I know if the user clicked 'OK' or 'Cancel'?
kd345205
Top achievements
Rank 1
 answered on 21 Aug 2009
2 answers
131 views
I need to expand a rad panel bar that is in a master page based on what page is loaded. I have this in my page load method but I get a null reference error. I'm guessing it's because the panelbar is in the master page. How do I access my panelbar in child page and expand one of the items of my choice. Here is the code I am trying
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim panel As RadPanelBar = Master.FindControl("RadPanelBar1")
        Dim item As RadPanelItem = panel.Items.FindItemByText("Entities")
        item.Expanded = True

    End Sub
Web Services
Top achievements
Rank 2
 answered on 21 Aug 2009
2 answers
111 views
Hi,

We are using the scheduler control 817 version with webservices.

But the colors seems not to be working in IE7 when we add them client side using javascript.
In IE 8 and firefox this works fine.
We are using to following code to fill the appointment client side.

/// <summary> 
      /// Occurs when a timeslot is created.  
      /// Sets the AppointmentType image, as well as the AppointmentState category color.  
      /// </summary> 
      /// <param name="sender">telerik:RadScheduler</param> 
      /// <param name="e">telerik:TimeSlot</param> 
      /// <returns>null</returns> 
      function TimeSlotCreated(sender, e) {  
        var app = e.get_appointment();  
        var element = e.get_appointment().get_element();  
        var attributeCollection = app.get_attributes();  
        var StateIconName = attributeCollection.getAttribute("StateIconName");  
        var SubStateIconName = attributeCollection.getAttribute("SubStateIconName");  
        var RsCategory = RgbStringToRadStyleString(attributeCollection.getAttribute("Color"));  
        var customerName = attributeCollection.getAttribute("CustomerName");  
        var startTime = app.get_start().format("MMM dd, yyyy HH:mm:ss");  
        attributeCollection.setAttribute("OriginalStartTime", startTime);  
 
        // Set the tooltip of the appointment  
        if (customerName == null) { customerName = "Geen klant"; }  
        app.set_toolTip("Afspraak: " + app.get_toolTip() + "\n" + "Klant:       " + customerName);  
 
        // Set the stateimage  
        var image = document.createElement("img");  
        image.setAttribute("src", '/Images/16x16/icons/' + StateIconName);  
        image.setAttribute("alt", 'IconImage');  
        image.setAttribute("ondragstart", 'javascript:return false;');  
 
        // If the appointment has a substate then show the substateimage  
        if (SubStateIconName != null) {  
          var image2 = document.createElement("img");  
          image2.setAttribute("src", '/Images/16x16/icons/' + SubStateIconName);  
          image2.setAttribute("alt", 'IconImage');  
          image2.setAttribute("ondragstart", 'javascript:return false;');  
        }  
 
        // Add the color style to the appointment    
        element.setAttribute("class", element.className + " rsCategory" + RsCategory);  
 
        // All appointments with ID 0 are script generated, they are not actually appointments within the database, thus must not be allowed to  
        // be edited/moved or resized in any way shape or form.  
        if (app.get_id() == 0) {  
          app.set_allowDelete(false);  
          app.set_allowEdit(false);  
        }  
 
        var divs = element.getElementsByTagName('div');  
        var result;  
        var innerHTML;  
        for (i = 0; i < divs.length; i++) {  
          // IE and its eternal spacing issues *sigh*  
          if ($telerik.$(divs[i]).is("div.rsAptContent")) {  
            result = divs[i];  
            innerHTML = result.innerHTML;  
            result.innerHTML = '';  
            result.appendChild(image);  
 
            // If the appointment has a substate then show the substateimage  
            if (SubStateIconName != null) { result.appendChild(image2); }  
 
            result.innerHTML = result.innerHTML + innerHTML;  
            result.innerHTML = result.innerHTML + "<br />";  
 
            if (customerName != "Geen klant") {  
              result.innerHTML = result.innerHTML + customerName;  
            }  
            return;  
          }  
        }  
 
      } 

/// <summary> 
      /// Returns the selected Css style type name for use within tsAptIn etc.  
      /// </summary> 
      /// <param name="color">hex color</param> 
      /// <returns>Named string as used by telerik rsCategory</returns> 
      function RgbStringToRadStyleString(color) {  
        switch (color) {  
          case "#BBD0EC": color = "Blue"; break;  
          case "#202B3F": color = "DarkBlue"; break;  
          case "#2B3F20": color = "DarkGreen"; break;  
          case "#3F2020": color = "DarkRed"; break;  
          case "#D0ECBB": color = "Green"; break;  
          case "#EDD5B7": color = "Orange"; break;  
          case "#F1DCFF": color = "Pink"; break;  
          case "#ECBBBB": color = "Red"; break;  
          case "#FFFBC7": color = "Yellow"; break;  
          case "#540042": color = "Violet"; break;  
          default: color = "Blue"; break;  
        }  
        return color;  
      } 

This gives me the following className :  "rsApt rsCategoryBlue"

Can you tell me what i am doing wrong?
Datamex
Top achievements
Rank 2
 answered on 21 Aug 2009
3 answers
252 views
Hi,

Can anyone please share some sample code on custom paging for RadGrid in n tier architecture.

Right now I bind grid like this:

List<User> users = User.GetAll();
myGrid.DataSource = users;

What "options" do I have to add my "GetAll" method to allow paging, sorting, filtering etc. And which events of RadGrid I have to catch for such functionality. Thanks,

Kashif
Ian
Top achievements
Rank 1
 answered on 21 Aug 2009
1 answer
148 views
I tried over the last days to make the comboBoxes working. Before upgrading to Q2 everything was working.

Then I set up a new page with different comboBoxes., because I wanted to test some features of Q2 (pictures in Grid, etc.)
and sometimes they work as they are expected and sometimes the same Boxes on the same page with the same code just stop reacting (dont show any onclientselected event, or onclientfocus event). I am using the same browser for development (Firefox).

The most strange thing is that the Telerik comboBoxes behave magic. You write your program. Everything works. You go and drink some coffee. You havent change a thing, Then they just stop working. The just freeze when you are selecting an item. Whereas a minute ago you could select something. They just not react if you are changing text in the comboBox programmatically, whereas sometimes the changes are made. Again: Everyhting without changing any code!

There are a lots of parts of the Telerik Ajax stuff which is working very fine, like the Grid, TabStrip, Window, but from my experience the comboBoxes are strange individuals ;-)

Also, the comboBoxes behave very different in the different browsers (IE vs. Firefox). I got used to it and I have accepted that either all the IE users or Firefox user wont be happy with our application.

The examples of the Telerik website are very much appreciated, but it would be great to have more complex examples which are showing more real-world examples. I havent seen an example for e.g. comboBoxes working with Masterpages. For example where to put the script content into when my aspx page has no own head (which it hasnt because its on the Masterpage)? Maybe its simply my lean knowledge about the script and masterpage stuff...


Alex Gyoshev
Telerik team
 answered on 21 Aug 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?