Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
167 views
I'm using a RadTabStrip with RadPageView that brings up pages via the ContentUrl.  I have a javascript function on the pages which does a resize of the page.  I use the window events of load and onload within those pages to trigger my resize javascript function.  It works the first time each time tab is clicked, but not when you go back and click a tab that was already clicked once.  I was able to get it to work by using AutoPostBack=True in the RadTabStrip, but I do a lookup to a database for each page so I don't want to keep doing the same lookups over and over.  Any suggestions?  I realize using the ContentUrl it creates an iFrame, so it gets a tad interesting.
Dwight
Top achievements
Rank 1
 asked on 30 Nov 2012
2 answers
81 views
Hi
usign MetroTouch skin the scheduler header becomes black instead of blue.
Is there a easy way to fix this?

Best Regards
Lorenzo Margola
Top achievements
Rank 1
 answered on 30 Nov 2012
1 answer
270 views
Good afternoon I have a problem when selecting multiple files in Radasyncupload, everything works perfectly, plus the selection of multiple files with CTRL not working since I enabled MultipleFileSelection = "Automatic" more still does not work when the dialogue continues I'm using the code
<telerik:RadAsyncUpload runat="server" AllowedFileExtensions=".jpg,.png" MultipleFileSelection="Automatic"
                                                    ID="rupImagens" TemporaryFolder="~/Maquinas/Dealer/Anexos/Foto/Tradin" Width="210px"
                                                    Culture="Portuguese (Brazil)" Skin="Default" MaxFileInputsCount="50" OverwriteExistingFiles="true"
                                                    OnFileUploaded="OnFileUploaded" OnClientFilesUploaded="OnFileUploaded" OnClientFileUploading="DesabilitaIbtInserir">
                                                    <Localization Remove="Remover" Select="Procurar..." Add="Adicionar" Clear="Limpar"
                                                        Delete="Deletar" />
                                                </telerik:RadAsyncUpload>

Att..
Plamen
Telerik team
 answered on 30 Nov 2012
1 answer
66 views
Hi,

I've been using the Upload contol for some time to add attachments to knowledgebase articles. Much of the page is ajaxified, and the I've been using (successfully in the past), the OnClientFileSelected event to force a postback which then does something serverside with the uploaded file.

I am now using Q1 2012 controls and this functionality no longer works. I've read the articles explaining that a full postback is required.. and this is happening, yet serverside there never appears to be anything in the UploadedFiles collection.

Clientside code calls a JS function which performs a manual postback using a hidden control ID as the argument.

Serverside RaisePostBackEvent correctly responds to this postback, at which point the UploadedFiles collection is still empty. previously this was working.

Any pointers?
Thanks.
Plamen
Telerik team
 answered on 30 Nov 2012
5 answers
85 views
Hi,
I have modified ToolsFile.xml to enable a custom tool.
Any advice on how to localize the text of the tool?
Seems you have localized texts and unlocalized texts (or am I simply unable to find the localization of e.g. SPTemplateManager)

Best,
Nils
Rumen
Telerik team
 answered on 30 Nov 2012
1 answer
82 views
I am using the latest version of your ASP.Net RadTreeView control.  I have a 5-level hierarchy that looks like this: http://mwtech.com/downloads/public/PassesEditor.jpg

The top 4 levels are uneditable in this editor.  Its sole purpose is to allow the addition of one or more bottom-level nodes (highlighted in blue).

So I added such a node - "Orepass #1", left the module, and returned to it.  My code preserves the data.  I then started opening successive levels in the treeview.  Each of the top 4 levels is added on-the-fly via server-side code.  Each of the nodes on these top 4 levels has its ExpandMode = TreeNodeExpandMode.ServerSideCallBack.

The bottom-level nodes do not define ExpandMode in any way.

What happens is that the first time I enter any particular branch and click on a bottom-level node, its parent unexpectedly collapses.  I've searched my code and don't believe it is causing this to happen.  Furthermore, when you click on a bottom-level node in the same branch a 2nd or 3rd or Nth time, this strange behavior no longer occurs.

I'm convinced I've seen this problem before but have examined all of my past postings on your forum and can't find any specific mention of it.

Any ideas what might be causing this?

Robert

P.S. I *think* my problem may be similar to this: http://www.telerik.com/community/forums/aspnet-ajax/treeview/when-nodeclick-parentnode-has-collapsed.aspx
Boyan Dimitrov
Telerik team
 answered on 30 Nov 2012
5 answers
135 views
Hi,

I´m building a master/content page with a treeview for navigation to the left and then clicking on nodes, different usercontrols are loaded (visible true/false) in the content pane. When data has been updated in the content user control, the treeview nodes text should be changed. For example when I click a "department" node, the different textboxes for the department is loaded to the right. If the name was changed, the treeview node text should be updated.

Today I do this with events from the UserControl but it seems like a lot of overhead (using AJAX) for just updating the text-property of the treenode. So Im tryiing to achieve this using Client-Side code. The problem is that I dont know how to reach the selected node from javascript inside the UserControl. If I when the save button is clicked calls a method (javascript) in the main page. But that method cannot reach the textbox in the user control instead.

Help is much appreciated.

Nencho
Telerik team
 answered on 30 Nov 2012
1 answer
262 views
Has anyone found the best way, when using a radgrid, to have the "add new record" page popup in a lightbox type screen overlay?  Perhaps the asp popupmodal?

I found a tutorial that is dead on, but way outdated here: here


Ok, so after working all day on getting the window popup to work when the user clicks the edit/double click/add new record, I ran into another problem.  I can't seem to get the ID from the dataitem of the e argument.

So here's the code (from the tutorial above.  The tutorial works, but not my project)

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
 
         
            HyperLink editLink = (HyperLink)e.Item.FindControl("EditLink");
            editLink.Attributes["href"] = "#";
            editLink.Attributes["onclick"] = String.Format("return ShowEditForm('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["jobID"], e.Item.ItemIndex);
        }
    }

When I use the path  e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["jobID"] there is nothing there.  I can see that the jobID is 
at the path  e.Item.DataItem, all the columns are listed there, but I can't access them.  e.Item.DataItem.jobID doesn't work like I think it should.  The only thing is I am using a sql database, and the tutorial is using access.  That must be the difference.  I changed the access database in their tutorial, and it doesn't work.


Eyup
Telerik team
 answered on 30 Nov 2012
2 answers
50 views
Is it possible when using a multi-level hierarchy grid to apply a different skin to the Deail Tables defined in the <DetailTables> section so they stand out more and are styled differently than the master table?  I have been working with a custom skin but I am not having a lot of luck finding a way to apply style only to the Detail Tables and not the Master Table - is this possible?
Brian
Top achievements
Rank 1
 answered on 30 Nov 2012
7 answers
85 views
Hello,

I am having an issue with items that have too long of names to fit on one line of the RadPanelBar.  If you hover over one of these items, the first problem is only the first line is highlited.  The second problem is after clicking the item, the second line disappears all together.  I have included an example of code that will cause this problem below.  Expand the "Items" item, then the "Child Item" and the next item will have the issue.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
            <telerik:RadPanelBar ID="RadPanelBar1" runat="server"
                <Items> 
                    <telerik:RadPanelItem runat="server" Text="Items"
                        <Items> 
                            <telerik:RadPanelItem runat="server" Text="Child Item"
                                <Items> 
                                    <telerik:RadPanelItem runat="server" Text="An Item with a long enough name to need 2 lines"
                                    </telerik:RadPanelItem> 
                                </Items> 
                            </telerik:RadPanelItem> 
                        </Items> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelBar> 
        </div> 
    </form> 
</body> 
</html> 
 


Thank you in advance,
Ben
Kate
Telerik team
 answered on 30 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?