Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
148 views
Hello,

I have a Telerik listbox which that loads via an aspx page inside an iFrame on a web form. The form is loaded and displayed using a specific application framework system (Metastorm).

The values for the Listbox are actually loaded in client side using javascript when the web form loads, from text stored in a hidden text field elsewhere on the form.

The problem I have is that I need to determine from the web form when the Listbox is fully loaded inside the iFrame.
I have a javascript function on the form that executes every 0.2 milliseconds via the javascript setTimeout function which I use to test whether the listbox is loaded yet. However I have problems determining what to test for - e.g. a specific property set when the listbox is loaded.  I'm also having problems attaching to the  Listbox in the iFrame - e.g. document.getElementById('ListBoxFrameID').contentWindow.$find("<%= RadListBox1.ClientID %>") doesn't appear to locate it.

Can someone give me some insight into resolving my problem?  I also have the same issue for a RadEditor that loads in an iFrame.

Many Thanks
Greg
Greg
Top achievements
Rank 1
 answered on 17 May 2012
2 answers
88 views
Hi there

I have a Hierarchical grid setup and it is working 100%, but now I need to apply filtering on the MasterTable. So I have changed my databinding to use the NeedDataSource event.

The problem is I need to reload the grid based on two external filters (drop downs), so to reload the dataset based on this I set the EnableViewState="false" on the MasterTable, this works fine. Now the problem is that when I do a post back in a child element of the MasterTable it resets as well and I "lose" the focus of the child item I was working on.

Is there a way I can rebind the datasource programmatically when the OnSelectedIndexChanged fires on the drop downs with EnableViewState on the MasterTable Enabled?
Jako
Top achievements
Rank 1
 answered on 17 May 2012
5 answers
327 views

I am using a radeditor in an application and we are just upgrading to a newer Telerik dll.  I believe the dll that we were using prior was from Q3 of 2010 where the NewLineBr property was still in use.  We are now trying to use the NewLineMode with the editor and then retrieve the html on the client using

radeditor.get_html(true)

The problem we are having is the text is coming back as if we were using the property NewLineMode="Br" instead of NewLineMode="P".  When we use the escape sequence of ctrl + M, then the text that is returned is formatted as if we are using NewLineMode="P", but not when we just press the Enter key.  Do we need to make additional changes to the RadEditor, or to some other setting to get the NewLineMode="P" functionality to work how we intend it to work?

Below is a simplified code snippet of the RadEditor we are using, I have removed the NewLineBr property and added the NewLineMode="P" property, but am not getting the expected results.

<
telerik:RadEditor ID="Editor1" runat="server" EditModes="Design" Height="140px" NewLineMode="P"

 

 

 

. Font-Names="Arial" Font-Size="10pt" StripFormattingOptions="AllExceptNewLines" OnClientPasteHtml="OnEditorPasteHtml"

 

 

 

ConvertToXhtml="True" ToolbarMode="Default" >

Please let me know what additional changes may be needed.

Thank you for any help that you can offer and let me know if you have any questions.

Aaron

Rumen
Telerik team
 answered on 17 May 2012
3 answers
189 views
Hi,
 I am trying to implement ASP.Net AJAX Telerik Mega drop down menu, the menu works great, but the drop down is always displayed at the leftmost side of the menu bar, is there a way to display the drop down exactly below the selected menu item?

Thanks,
Deepa 
Kate
Telerik team
 answered on 17 May 2012
1 answer
194 views
Instead of renaming the file, this code create a new file with the new name (resultat.aspx), but leaving the old file.
How rename the uploaded file, not create a new one?
I only uploaded a singel file
Public Sub uploadFile(ByVal sender As Object, ByVal e As System.EventArgs)
 
    If RadUpload1.UploadedFiles.Count > 0 Then
 
        Dim file As UploadedFile = UploadedFile.FromHttpPostedFile(Request.Files(0))
        Dim targetFolder As String = Server.MapPath(RadUpload1.TargetFolder)
        Dim targetFileName As String = System.IO.Path.Combine(targetFolder, "resultat.xlsx")
 
        file.SaveAs(targetFileName)
 
    End If
 
End Sub
Princy
Top achievements
Rank 2
 answered on 17 May 2012
3 answers
249 views
Hi,

I'm using a RadTreeView.DataNavigateUrlField to fetch not a full url from a database but a querystring value. Is it possible to set a 'base-url' instead of the RadTreeView automatically using the current location ?

For Example:
In the database the field 'CategoryId' has the value's 1,2,4,5 and 7.
In the code I'm using  
treeView.DataNavigateUrlField = "CategoryId" 

to bind the database column. Now when I click a node, it shouldn't go to 'http://www.currentlocation.currentdoc.aspx/1' but 'http://www.differentlocation/differentdoc.aspx?CId=1'

Thanks,
Jochem.
Sandeep Gupta
Top achievements
Rank 2
 answered on 17 May 2012
1 answer
101 views
In scheduler header, I want to write code for datechanged event. How can i access its events?
Ivana
Telerik team
 answered on 17 May 2012
1 answer
131 views
Hi Guys,

I seem to have come across an issue where I'm not displayed any of the paging information when setting the explorermode of a fileexplorer.

If I remove ExplorerMode then I can see the page numbers and number of items. If I add ExplorerMode then this information disappears.

Is this something you are aware of or is there something else I can do to display this information?


Thanks.
Dobromir
Telerik team
 answered on 17 May 2012
1 answer
205 views
Hi,

I have the below show MasterViewtable and NestedViewtable in my radgrid...



 STEP 1 -   I have attached textchanged event for all nestedview textboxes in OnItemCreated

 protected void rdgEmployee_OnItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridNestedViewItem)
            {
                GridNestedViewItem item = (GridNestedViewItem)e.Item;

                //MeritPerc
                RadNumericTextBox txtPropIncrease = (RadNumericTextBox)item.FindControl("txtPropIncrease");
                txtPropIncrease.TextChanged += new EventHandler(txtPropIncrease_TextChanged);
            }
        }

 STEP 2 - On the nesteview textbox textchanged event, i am getting griddataitem and manipulating my data based on that item.

protected void txtPropIncrease_TextChanged(object sender, EventArgs e)
        {
            RadNumericTextBox txtPropIncrease = sender as RadNumericTextBox;
            GridNestedViewItem Childitem = (GridNestedViewItem)txtPropIncrease.NamingContainer;
            GridDataItem parentItem = Childitem.ParentItem;

            CalculateCompensationByComponent(parentItem, GridOperationType.MeritPercent, txtPropIncrease);
        }


 PROBLEM :   When i change the first textbox value, the respected textbox extchanged event calling,  but after changing first textbox value, i am trying to change the second textbox value, its suppose to call the second textbox textchanged event, its doing as expected, but it calling first textbox textchanged event before calling the its respected ( second textbox ) textchanged event.

Could you please help on this ?  Why its calling the first textbox change event, even though i didn't change the value of it. ?
Vasil
Telerik team
 answered on 17 May 2012
1 answer
142 views
Is it possible to get a div inside the treeview control such that i get the entire tree and below that i get a link. I want it in the same control so that if there are scrollbars for the treeview the link should scroll along with the treeview, like a custom temlated control. so its structure should be something like : 
<div id="myRadTree">
<ul class="rtUL">
        <li class="rtLI rtFirst">
            <div class="rtTop">
                <span class="rtSp"></span>
                <img class="rtImg" alt="" src="Images/Add2Favs_16.png"><span class="rtIn" title="mev3\10000 Folders">10000
                    Folders (mev3)</span></div>
        </li>
        <li class="rtLI rtLast">
            <div class="rtBot">
                <span class="rtSp"></span>
                <img class="rtImg" alt="" src="Images/Add2Favs_16.png"><span class="rtIn" title="mev3\Deleted Items">Deleted
                    Items (mev3)</span></div>
        </li>
</ul>
<div>
<a href="">Link here</a>
</div>
</div>
Plamen
Telerik team
 answered on 17 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?