Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
111 views
I have a PanelBar that has many controls embedded into the templates.  I'm having trouble getting to the databound events of the templated controls.

As an example, I have the following Panel Bar item with a treeview that has an onNodeDataBoundEvent
<telerik:RadPanelBar ID="RadPanelBar1" runat="server">  
    <Items> 
        <telerik:RadPanelItem runat="server" Text="OUTPUT COLUMNS">  
            <Items> 
                <telerik:RadPanelItem Value="OutputColumns" runat="server">  
                    <ItemTemplate> 
                        <telerik:RadTreeView ID="OutputColumnsRadTreeView" runat="server" CheckBoxes="True" 
                            Height="280px" TriStateCheckBoxes="True" CheckChildNodes="True" Skin="Vista" OnNodeDataBound="OutputColumnsRadTreeView_NodeDataBound">  
                        </telerik:RadTreeView> 
                    </ItemTemplate> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
    </Items> 
</telerik:RadPanelBar> 

However, when I bind:
 protected void Page_Load(object sender, EventArgs e)  
 {  
        RadTreeView OutputColumnsRadTreeView = (RadTreeView)QueryPanelBar.FindItemByValue("OutputColumns").FindControl("OutputColumnsRadTreeView")  
 
        OutputColumnsRadTreeView.LoadContentFile("~/App_Data/QueryOutputColumns.xml");  
        OutputColumnsRadTreeView.DataBind();  

The event is never fired:
protected void SortColumnsRadTreeView_NodeDataBound(object sender, RadTreeNodeEventArgs e)  
{  
        //do something here  

thanks in advance.
Gene.
Yana
Telerik team
 answered on 01 Jun 2009
1 answer
78 views
When in Chrome if you place a table into the editor, then try to select it to manually resize, you are unable to do so.  NOTE - right click + properties does still work.  We have a couple of questions on this;

1.  Is this normal browser behavior for Chrome?
2.  Has anyone else run into this issue?

If this is a duplicate post, i apoligize, i searched the forums for this topic and was unable to locate a thread on it.  Any help would be greatly appreciated.
Tervel
Telerik team
 answered on 01 Jun 2009
10 answers
160 views
We are working with the Schedule control in our MVC project as a Service and need to do some AppointmentTemplate work.  Does this work?  Where would you put the AppointmentTemplate definition for the service to be able to use it?
T. Tsonev
Telerik team
 answered on 01 Jun 2009
10 answers
232 views
Good morning,

I'am a TabStrip inside of other TabStrip both with Usercontrols

I would like to know how I can advance to the following  Tab of the "external" TabStrip from the "internal" TabStrip.

Thanks for your help
Regards
Alex Lawson
Top achievements
Rank 1
 answered on 01 Jun 2009
1 answer
188 views
HI,

i want to show radtooltip on targetcontrol id focus and radtooltip get hide on targetcontrolid lost focus.
but its getting hide after some duration of time.

please reply soon
Princy
Top achievements
Rank 2
 answered on 01 Jun 2009
1 answer
116 views
The only way to apply styles to Telerik components is by using Skins. We cannot directly apply a CSS to it. Creating skins takes a lot of effort [ 3 times the CSS effort ].  Is there an easier way of applying styles to the Telerik components, perhaps using CSS's directly?
Sebastian
Telerik team
 answered on 01 Jun 2009
1 answer
153 views
how do i force the drop down menu to always drop underneath the combo box.  sometimes if the combo box is so far down a page, the menu will drop above the combo

also, how do I change the z index, sometimes the drop down is appearing behind images on a page (I assume its a z-index probelm)
The default value is set to 6000, what does this mean ?
Paul
Telerik team
 answered on 01 Jun 2009
1 answer
177 views
Hey,

I have very recently started to use RAD Controls. I have been trying to implement the RADScheduler control since the past week. After overcoming a variety of errors, I've been stuck on this particular error for the past 2 days. I'm pasting the code where this error is coming.

private

 

IEnumerable<Resource> GetTeachers()

 

{

 

List<Resource> resources = new List<Resource>();

 

 

using (DbConnection conn = OpenConnection())

 

{

 

DbCommand cmd = DbFactory.CreateCommand();

 

cmd.Connection = conn;

cmd.CommandText =

"SELECT [TeacherID], [Name], [Phone] FROM [DbProvider_Teachers]";

 

 

using (DbDataReader reader = cmd.ExecuteReader())

 

{

 

while (reader.Read())

 

{

 

Resource res = new Resource();

 

res.Type =

"Teacher";

 

res.Key = reader[

"TeacherID"];

 

res.Text =

Convert.ToString(reader["Name"]);

 

res.Attributes[

"Phone"] = Convert.ToString(reader["Phone"]);

 

resources.Add(res);

}

}

}

 

return resources;

 

}

The error disappears when I comment and run the program but obviously i am not able to use this functionality then. Please help asap.

Thank you,

Manan Podar

Atanas Korchev
Telerik team
 answered on 01 Jun 2009
1 answer
271 views
Hi,

I have a RadFileExplorer on a page that loads up pdf's and images(jpgs). Ideally the functionality that I want is that the end-user can double click on an image file and and it should open up a modal popup with the image as well as 2 buttons that will allow them to rotate the image by 90 degrees, saves the image file and using the RadAjaxManager I could do a postback and show them the newly rotated image. If the file they click on is a pdf file, it just opens up modal window with the pdf.

How I went about trying to create this functionality is to create a RadToolTip which would display the image (using just the normal HTML img tag) and i can put the buttons on it along with event handlers for the buttons. So on the OnClientFileOpen function, I would check to see if the clicked file is an image then i would show the tooptip through javascript.
I'm stumped on how to get this accomplished. Here is the code that I have tried.

Javascript code
<script type="text/javascript"
        function OnClientFileOpen(sender, args) { 
            var pvwImage = $get("pvwImage"); 
            var imageSrc = args.get_path(); 
 
            if (imageSrc.match(/\.(gif|jpg)$/gi)) { 
                pvwImage.src = imageSrc; 
                pvwImage.style.display = ""
                var tooltip = $find("RadToolTip1"); 
                tooltip.show(); 
            } 
        } 
             
    </script> 

FIle Explorer  code
<telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server"  
        Skin="Vista" TreePaneWidth="200px" VisibleControls="Grid, AddressBox" Height=""  
                Width="" OnClientFileOpen="OnClientFileOpen" > 
<Configuration SearchPatterns="*.*"></Configuration> 
</telerik:RadFileExplorer> 

Tooltip code:
<telerik:RadToolTip ID="RadToolTip1" runat="server" Animation="Fade" HideEvent="ManualClose"  
              ManualClose="True" Modal="True" Position="Center"  
            RelativeTo="BrowserWindow" Skin="Web20" Width="700px"
            <div align="center" > 
                <br />                 
                <br /> 
                <img id="pvwImage" src="#" alt="" style="display: none;vertical-align: middle;" /> 
                <br /> 
            </div> 
        </telerik:RadToolTip> 

I have tried to run this and when I click on the image file, it just says "tooltip is null" in the JS debugger. Could someone please help with this issue. Or if this approach is not the right one, I'm open to other suggestions on how to get this accomplished as well.

Thanks in advance!
Fiko
Telerik team
 answered on 01 Jun 2009
1 answer
51 views
I'm building some complex forms that use custom data access code so I'm trying to keep other parts of my plumbing and inheritance as generic and simple as possible. I also want to use a common header on a number of pages, and I want that header to include a RadMenu with common items.

I was scared away from using Master Pages when I saw the example at http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/masterpage/defaultcs.aspx. I won't have time to troubleshoot something like that if and when I break it down the road. So I've been looking at creating a header as a user control. I'm not sure how a RadMenu will function in a user control. Ultimately, for this project I would rather copy-and-paste a header that I'm sure will work rather than create something reusable that adds complexity.

For the first time in years I'm missing my old ASP "include" statement!

Any suggestions on the best way to re-use a RadMenu accross pages?
Atanas Korchev
Telerik team
 answered on 01 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?