Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
152 views

Hi,

I'm wondering if it's possible to insert a new dynamically created dock into a specific zone at a specific index?

The reason I ask is that I am developing a page layout editor and so have a "toolbox" of controls that a user can drag and drop on to their page layout, however because when a dock is moved it (obviously) gets removed from the "toolbox", thus I create a replacement control and put in the toolbox so the user can have multiple controls of the same type. The problem is I have a specific order for the controls in the toolbox and when I create the replacement control it just places that control at the bottom of the toolbox.

e.g. If I have a toolbox containing "text", "image" and "link" controls (in that order) and a user drags the "text" control on to their page then during the DockPositionChanged event I create another "text" control and place that in the toolbox, that way the user can drag another "text" control on to their page (if need be). But when I do so the "text" control is placed at the bottom of the toolbox and so the toolbox order is then "image", "link" and then "text" rather than "text", "image" and then "link".

So, is there a way to create a dock during the DockPositionChanged event and place it at a specific index?

I've tried the following and they've all failed:
1. Toolboxzone.Controls.AddAt(3, dock);
2. DockLayout.Controls.Add(dock);
    Toolboxzone.Controls.AddAt(3, dock);
3. Using ScriptManager.RegisterClientScriptBlock to register some js that moves the dock
4. Putting a literal in the same update panel and setting it's Text property to be some js that moves the dock
5. Placing some js that moves the dock into the update panel with calls to properties to get new dock and it's index "<%= NewDock %>"

The Javascript I tried was:
<script language="javascript" type="text/javascript">
    var dock = $find('<%= NewDock %>');
    var zone = $find('<%= ToolboxDockZone.ClientID %>');

    if (dock && zone) {
        dock.undock();
        zone.dock(dock, <%= MovedDockIndex %>);
    }
</script>
(note: for attempts 3 and 4 I used a string builder and just put in the control id's instead of "<%= NewDock %>", etc)

Has anyone got any ideas?

Thanks,
Pete

Pero
Telerik team
 answered on 09 Jul 2009
3 answers
84 views
Hi,

I've a custom skin and it worked fine until yesterday. I'm not sure but it might depending on the update of the controls with a new version.

In the page_load i set the custom skin like this:
 RadSkinManager1.ShowChooser = false;  
            string color = "protelskin";  
            RadFormDecorator1.EnableEmbeddedSkins = false;  
            RadFormDecorator1.Skin = color;  
            RadWindowManager1.EnableEmbeddedSkins = false;  
            RadWindowManager1.Skin = color;  
            Ordpos_GRID.EnableEmbeddedSkins = false;  
            Ordpos_GRID.Skin = color;  
            RadTabStrip1.SelectedIndex = 0;  
            RadTabStrip1.EnableEmbeddedSkins = false;  
            RadTabStrip1.Skin = color; 

If i take a look at the styles, I can see, that the formdecorator doesn't use my customskin:

(Firefox View)

<form id="form1" runat="server">  
         
<telerik:RadScriptManager Runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server">          
        </telerik:RadSkinManager> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server"  DecoratedControls="All"/>   
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
    </telerik:RadWindowManager> 
      
      
      
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="45px" 
        Width="16px" style="margin-bottom: 0px">  
    </telerik:RadAjaxLoadingPanel> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel4" runat="server" Height="400px" Width="500px">  
      
    ........ 


Thanks
Martin
Telerik team
 answered on 09 Jul 2009
6 answers
164 views
Hello,

I'm trying to upgrade from version 5.2.2.0 dev to 5.4.1.0 trial, to test if some problems with our customer were solved,

I followed the step-by-step upgrade instructions, but it throws me an "Unexpected error",

The exception message is:
Could not find any resources appropiate for the specified culture or the neutral culture. Make sure "Resources.RadEditor.Main.resources" was correctly embedded or linked into assembly "AppGlobalResources.bs2dj_-a" at compile time, or that all the satellite assemblies required are loadable and fully signed.   

I am doing something wrong?

thanks in advance.
Oscar.
Oscar
Top achievements
Rank 1
 answered on 09 Jul 2009
2 answers
351 views
hi,

i searched through demos, forum and codesection, but i don't know how to implement to show an image in a grid column if the datafield is true and keep it invisible if its false. (Or 0 for false and 1 for true..)

thanks mario
Mario
Top achievements
Rank 2
 answered on 09 Jul 2009
1 answer
88 views
Hello, I'm creating a grid on a sharepoint webpart witha gridClientSelectColumn, when I try to click the checkbox on the header I'm getting an error "null is null or not an object" at the following line's onclick event. Looks like it doesn't find the Grid.
<th scope="col" class="rgHeader"><input id="RadGrid1_ctl00_ctl02_ctl00_CheckBoxColumnSelectCheckBox" type="checkbox" name="RadGrid1$ctl00$ctl02$ctl00$CheckBoxColumnSelectCheckBox" onclick="$find(&quot;RadGrid1&quot;)._selectAllRows(&quot;RadGrid1_ctl00&quot;, &quot;&quot;, event);" class="rgCheck" /></th> 

I'm creating the grid in CreateChildControls Method.

Any help please?

thank you,
Phani
Georgi Krustev
Telerik team
 answered on 09 Jul 2009
3 answers
129 views
How can I best implement inplace editing with Telerik RadTextBox?

What I want is something like these:
Easy AJAX inline text edit  (see example)
Edit-in-place with jQuery

I've done this before with Prototype and other Javascript... but what is the best way with Telerik controls?

I have not seen any examples of this functionality in Telerik samples or docs.

Thanks,
Glen






Sebastian
Telerik team
 answered on 09 Jul 2009
2 answers
100 views
not even sure I want to actually cancel the nodepopulating event yet, but I'll explain what I'm attempting:

I have a radtreeview, with it's nodes being populated by a webservice when expanded.  As it turns out, one of the nodes has a LOT of children, and even taking into consideration an extra level of nodes, to perhaps break the subnodes down by alphabetical order, it doesn't look like the most usable way of selecting nodes under that category, not to mention very slow to return so many nodes.

So, what was considered is something along the lines of canceling the particular nodePopulating event (although I guess the better approach is to change the TreeNodeExpandMode for that node in the first place - I think I just answered my own question), and instead of loading the nodes instantly, display a textbox, where the user can start typing the first letters of the required child node, at which point the nodes under that category will filter based on the user's text entry.  I can imagine this being an ajax style predictive text box, but perhaps this isn't that important - the key thing is not actually populating children for this node until the user has entered some text into a textbox to filter the list.

Sound possible?
Atanas Korchev
Telerik team
 answered on 09 Jul 2009
2 answers
136 views
Hi,
I want to use the fileexplorer to list directories and files.
But I need to have 2 initial paths (because of user role management), do I need to build a custom provider for that or is it possible to add 2 different root paths?
I have checked the custom file content provider demo:
http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/dbfilebrowsercontentprovider/defaultcs.aspx
but it feels complicated to build!

It would be great if there were a way to add multiple paths to the explorer like:
RadFileExplorer1.InitialPaths.Add("~/Folder1"); 
RadFileExplorer1.InitialPaths.Add("~/Folder2"); 
 

Regards,
Mattias
Mattias
Top achievements
Rank 1
 answered on 09 Jul 2009
3 answers
93 views
Hello,
The application we are developing is using a custom skin.  However, the RadEditor is not displaying correctly with this custom skin.  The RadEditor doesn't display correctly when assigning it with a default skin either (e.g., Vista or Web20).  Is there a setting to override the custom skin and display a default skin?  

Thank you.
Rome 
Martin
Telerik team
 answered on 09 Jul 2009
1 answer
127 views
Hi -

 i have a radtreeview with checkboxes. I want to make sure that when the user checks all the child nodes manually, parent node should NOT get checked by itself, it should only have indeterminate state. Only if user manually checks the parent node, it should be checked. Thanks in advance.

Princy
Top achievements
Rank 2
 answered on 09 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?