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

I use showExternalDialog. This works fine but I have 2 problems.

I can't find a parameter to set "ReloadOnShow" - my dialog uses Databinding - and therefore it has to be reloaded at every call.
I can't find a paramter to set the initial position - my Window is a bit large so I want to set the initial position to 10,10 or such a value.

I'm sure you have an idea how to enable those two things.

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 04 May 2009
7 answers
170 views
Taking a look at the LoadingPanel image and behavior as described in the examples like this one:

http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultvb.aspx

is this only available in the .NET 3.5 version of the controls?  I am working on a .NET 2.0 project and all I can seem to get are the old loading images.  And the code it generates when I drag the control on to the page looks like the old style as well.

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
        Width="75px">  
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 
Todd
Telerik team
 answered on 04 May 2009
1 answer
145 views
Hi,
In the datepicker, I have added button in the footer template and when I click on it I want to populate the Todays date on the dateinput and close the datepicker.
Currently I have added OnClientClick event by which I m able to populate Todays date on the dateinput but I m unable to close it.Could any one please let me know how to do it?

Here is the code 
<asp:ImageButton ID="IBToday" runat="server" OnClientClick="SelectToday()" ImageUrl="~/Skins/Web20/Calendar/MonthYearTodayBtn.gif" />

  function SelectToday()
    {
      var currentDate = new Date()
      var picker = $find("<%= datepicker1.ClientID %>");
      picker.set_selectedDate(currentDate);                
    }


Thanks
Johnsvuk
John
Top achievements
Rank 1
 answered on 04 May 2009
1 answer
93 views

I would like to know if there is way to modify the attributes of html element in the editor without having to use the pasteHtml function. It appears that both internal dialogs (e.g. image manager, table properties) and custom dialogs insert new html to reflect the changes that occurred in the dialog (e.g. table borders, image alt text). The issue I am having is that the new html isn't always being inserted in the same location in the editor as the tag that launched the dialog. See examples below:

Example 1
Before: This is what the html looks like before modifying the table border using the Table Properties dialog.
<p>This is a paragraph<sup>1</sup>:</p>

 

 

 

 

<table >

 

 

 

 

    <tbody>

 

 

 

 

        <tr>

 

 

 

 

           <td>Cell 1</td>

 

 

 

 

           <td>Cell 2</td>

 

 

 

        </tr>

 

    </tbody>

 

 

 

 

</table>

 

 

 

 

<p>

 

 

 

 

    <sup>a</sup> Footnote for table 1.</sup>

 

 

 

 

</p>

After: Applying table border
<p>This is a paragraph<sup>1</sup>:</p>

 

 

 

 

<p>

 

 

 

 

    <sup>

 

        <table bordercolor="#000000" border="1">

 

 

 

 

            <thead/>    
            <
tbody
>

 

 

 

 

                <tr>

 

 

 

 

                   <td>Cell 1</td>

 

 

 

 

                   <td>Cell 2</td>

 

 

 

                </tr>

 

 

 

 

         </tbody>

 

 

 

 

        </table>

 

 

 

 

 

        a
    

 

</sup> Footnote for table 1.

 

 

 

 

</p>

The table is inserted in the sub tag of the second paragraph.

I also have the same problems with images being moved around after changing the alt text using the image manger.

Is there way to modify the attributes of an existing element in the editor while maintaining its exact location?

Thanks,
Alex

Rumen
Telerik team
 answered on 04 May 2009
5 answers
458 views

I have a question on horizontal scroll in drop down list.

How can I set the dropdown width automatically based on the length of the item.

Basically I want to avoid horizontal scroll bar when any item’s length is longer than input area.
i am using  " DropDownWidth " property with maximum values but still i am getting horizontal scroll bar.

i would really appreciate your help.

Thanks much , Naga

Steve
Top achievements
Rank 2
 answered on 04 May 2009
1 answer
527 views
Hi to all,
is there a Repeater control by Telerik which is more powerful and has more properties than the native Microsoft .NET Repeater ?
Thanks in advance.
Sergio
Sebastian
Telerik team
 answered on 04 May 2009
7 answers
303 views
I have RadGridView in my project. And one of GridTamplateColumns haven't HeaderText, but in a web site i see a colon in the place of HeaderText.
I'll be glad to hear any advise.

Thanks
Sebastian
Telerik team
 answered on 04 May 2009
4 answers
439 views

I'm using Q1 2009 Telerik controls and I've got a major issue with timeouts.

On my development box, my session or something seems to be timing out in 15 minutes, even though I've got the timeout set to 240 minutes, which is the value returned by session.timeout.

I was using using Return New SessionPageStatePersister(MyBase.Page) and a browser file to put the viewstate in Session and thinking that might be the issue, I switched to use Teleriks method as described in
http://www.telerik.com/support/kb/aspnet-ajax/general/saving-the-viewstate-of-radcontrols-server-side.aspx

Same issue, same results.

Multiple developers using Vista, all getting the same results, and our production box is Windows 2003, which is also timing out.

It's not always 15 mintues, it varies from just a few seconds to 15 minutes.

I enabled script debugging in my browser, and the error is a msajx.js.

I ran the application in debug mode, let it set and same restuls, I got the JS error before it hit my breakpoint in code.

Any suggestion in how to track this down even further to determine the root of this issue would be greatly appreciated.

Thanks in advance

Roger



Atanas Korchev
Telerik team
 answered on 04 May 2009
7 answers
188 views
Hi,

I'm trying to achieve the same effect as bbc.co.uk has with Telerik's RadDock. The problems I am having aside from the chaotic CSS operations are the following:
a/ When I move a RadDock and I drag it over a column (not below an actual raddock) it just jumps back to its origin. It should dock below the given column's last Raddock.
b/ When I drag the RadDock into an invalid place it should drag itself back -no transition effect- just jumps back to its origin. Is there a way to get around this?
c/ When I drag the RadDock to the right of the screen -and this may be considered as a bug- the scrollbar just expands and expands and expands....etc forever until I release it then it jumps back to its original location. Is the boundary tracking messed up in this case?

Any thoughts on the matter?

Cheers,
Miklos
Laurent
Top achievements
Rank 1
 answered on 04 May 2009
3 answers
143 views
I have a question about how I should handle context menu generation. I'm including my treeview aspx below:

 

<telerik:RadTreeView ID="RadTreeView1"   
                                Runat="server"   
                                EnableDragAndDrop="True"   
                                EnableDragAndDropBetweenNodes="True"   
                                OnNodeDrop="RadTreeView_HandleDrop"   
                                OnClientNodeDropping="onNodeDropping"   
                                MultipleSelect="True" 
                                OnClientNodeDragging="onNodeDragging"   
                                AllowNodeEditing="True" 
                                OnContextMenuItemClick="RadTreeView_ContextMenuItemClick" 
                                OnClientContextMenuItemClicking="onClientContextMenuItemClicking" 
                                OnNodeDataBound="RadTreeView_OnNodeDataBound" 
                                OnClientContextMenuShowing="onClientContextMenuShowing" 
                                OnNodeEdit="RadTreeView_NodeEdit" 
                                DataTextField="Text">  
                        <ContextMenus> 
                            <telerik:RadTreeViewContextMenu ID="PartMenu" runat="server">  
                                <Items> 
                                    <telerik:RadMenuItem Value="Copy" Text="Copy Part" /> 
                                    <telerik:RadMenuItem Value="Edit" Text="Edit Part" /> 
                                    <telerik:RadMenuItem Value="Delete" Text="Delete Part" /> 
                                    <telerik:RadMenuItem Value="Properties" Text="Properties" /> 
                                </Items> 
                            </telerik:RadTreeViewContextMenu> 
                            <telerik:RadTreeViewContextMenu ID="SectionMenu" runat="server">  
                                <Items> 
                                    <telerik:RadMenuItem Value="Add" Text="Add Category" /> 
                                </Items> 
                            </telerik:RadTreeViewContextMenu> 
                            <telerik:RadTreeViewContextMenu ID="CategoryMenu" runat="server">  
                                <Items> 
                                    <telerik:RadMenuItem Value="Add" Text="Add Subcategory" /> 
                                    <telerik:RadMenuItem Value="Delete" Text="Delete Subcategory" /> 
                                    <telerik:RadMenuItem Value="Properties" Text="Properties" /> 
                                </Items> 
                            </telerik:RadTreeViewContextMenu> 
                            <telerik:RadTreeViewContextMenu ID="SubCategoryMenu" runat="server">  
                                <Items> 
                                    <telerik:RadMenuItem Value="Delete" Text="Delete Subcategory" /> 
                                    <telerik:RadMenuItem Value="Properties" Text="Properties" /> 
                                </Items> 
                            </telerik:RadTreeViewContextMenu> 
                        </ContextMenus>     
                    </telerik:RadTreeView> 

 



What I am trying to do is use those seperate context menus based on the level of the selected node. Basically limiting options on certain level nodes. I have tried numerous ways to get this to work and nothing has so far. It just displays the first context menu all the time.


I'm trying to handle the changes in this javascript method:

function

 

onClientContextMenuShowing(sender, args)

 



Is that even the correct event to handle it in? I don't really see any other choices.

Essentially I am just trying to do a switch on the selectedNode.LevelID which is an attribute that is 1-4 depending on the depth of the node.

Are there any examples anywhere? I have spent all day searching and trying to get this to work to no avail.
Atanas Korchev
Telerik team
 answered on 04 May 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?