Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
151 views
I have the following javascript code for my custom save button in the toolbar. The ID 'editBody1555365' is a div that gets populated inside the content area of the editor.

<

 

asp:Button ID="btnSubmit" runat="server" Text="Save"/>

<

 

asp:Label ID="body1" runat="server" ></asp:Label>

 


<

 

script type="text/javascript">

 

Telerik.Web.UI.Editor.CommandList[

"Save"] = function(commandName, editor, args) {

 

 

var sBody1 = editor.get_document().getElementById("editBody1555365").innerHTML;

 

document.getElementById(

"body1").text = sBody1;

 

alert(

"Body1: " + document.getElementById("body1").text);

 

 

var btnSubmit = $get("<%=btnSubmit.ClientID%>"); //get a reference to the Asp:Button

 

btnSubmit.click();

//click it programmatically

 

};

 

</script>

 

<

 

telerik:RadEditor showSubmitCancelButtons="False" editable="true" SaveInFile="False" ID="RadEditor" runat="server" ></telerik:RadEditor>

 

 

 

When I alert the label I am receiving the content as expected. The problem is when I get inside the code behind for my asp.net button when it gets programmatically clicked it doesnt seem to be able to find any content inside my label 'body1' which it should seeing as it alerted the content just before. It is if the content gets erased when the page does a post back before going inside the save button code behind.

Does anyone know how I can get the content for the ID 'editBody1555365' through the code behind?

Dobromir
Telerik team
 answered on 17 Feb 2010
5 answers
139 views
hi,
Can we create a shortcuts of directory using fileExplorer??e.g if i create a folder named folder1 and then create another folder name folder2 and i want to create a shortcut of folder1 in folder2..is it possible??another thing is that would it be possible for ctrl+shift whilst dragging to create a shortcut in fileExplorer like the keyboard shortcut for windows explorer??


regards
Saad Javaid
Fiko
Telerik team
 answered on 17 Feb 2010
3 answers
152 views

Hi,

I have a horizontal bar chart. X-axis (the vertial one) shows 1, 2, 3, 4. And the Y-axis (the horizontal one) shows 0, 0.1, 0.2, 0.3

I tried to format the Y-axis labels as percentage with 1 decimal, as following:

myChart.PlotArea.YAxis.Appearance.CustomFormat = "#.0%"
It didn't work. Actually, I've tried in several ways, it kept showing 0.00%  10.00% ... Always gave me 2 decimals. However, when I tried it on the X-axis, it worked (gave me 100.0%  200.% ... 400.0%)
Anybody knows what's wrong?

Second, could anyone please tell me how to hide the axis labels? I don't want to show 1, 2, 3, 4 along the X-axis.

Thanks,
Vivian

Vivian Hu
Top achievements
Rank 1
 answered on 17 Feb 2010
1 answer
146 views
Y'all have a nice example of using the FileExplorer as a custom dialog here, but I was wondering if it could also be used for a Save As dialog? I have an app that's pulling html from a RadEditor, converting it to PDF (using a third party library) and then I want to display a save as dialog. I know I could build a custom dialog totally from scratch, but the RadFileExplorer already has so many nice features, I was just wondering if it could be adapted and if so, if anyone had a nice example.

Thanks and take care.


Fiko
Telerik team
 answered on 17 Feb 2010
1 answer
133 views
Hey guys, I am using the ExchangeSchedulerProvider class to connect to an Exchange 2007 server... I am able to authenticate using my credentials, however, the model in this class will bind a RadScheduler control directly to my own calendar items... I am trying to connect to a conference room mailbox to which I have full rights and would like to display all calendar items within it. I am not sure how to override the credentials in order to get there. Thanks!
T. Tsonev
Telerik team
 answered on 17 Feb 2010
1 answer
100 views
Hi,

We're using Radcontrols Q3 SP2. We're using the radeditor default skin .
Pls find the attached jpg which shows how our radeditor find&replace dialog gets rendered on the screen. we're missing the tabs for find and replace and we're getting find options and replace options in the same dialog.

We're using the default skin.

I copied the editor.css and editor folder and editor.myskin.css file to the appropraite place.

In our myskin.skin file, we've the foll settings:

<

 

telerik:RadEditor runat="server" Skin="myskin" EnableEmbeddedSkins="false">

 

 

<Tools>

 

 

<telerik:EditorToolGroup>

 

 

<telerik:EditorTool Name="Print" Enabled="true" ShowIcon="true" Visible="true" ShowText="false" />

 

 

<telerik:EditorSeparator Visible="true" />

 

 

<telerik:EditorTool Name="FindAndReplace" Enabled="true" ShowIcon="true" Visible="true" ShortCut="CTRL+F" ShowText="false" />

 


Pls tell us what're we missing to copy or download. Pls help us with code to solve the rendering issue.



Rumen
Telerik team
 answered on 17 Feb 2010
2 answers
154 views
Hi, I have a NestedViewTemplate with a RadGrid in a RadGrid. Now I can't disable ContextMenu in the NestedViewTemplate. Please help

        <cc3:RadGrid ID="RadGrid1" runat="server" OnItemCommand="RadGrid1_ItemCommand" OnInit="RadGrid1_OnInit" 
            OnItemCreated="RadGrid1_ItemCreated" OnPreRender="RadGrid1_OnPreRender" OnItemDataBound="RadGrid1_ItemDataBound"> 
            <MasterTableView DataKeyNames="Group_ID"> 
                <NestedViewTemplate> 
                    <asp:Panel runat="server" ID="InnerContainer" Visible="false"> 
                        <asp:Label ID="Label1" Font-Bold="true" Font-Italic="true" Text='<%# Eval("Group_ID") %>' 
                            Visible="false" runat="server" /> 
                        <asp:Label ID="Label2" Font-Bold="true" Font-Italic="true" Text='<%# Eval("Portal_ID") %>' 
                            Visible="false" runat="server" /> 
                        <asp:Label ID="Label3" Font-Bold="true" Font-Italic="true" Text='<%# Eval("Language") %>' 
                            Visible="false" runat="server" /> 
                        <cc3:RadGrid ID="RadGrid2" runat="server" DataSourceID="SqlDataSource2" OnInit="RadGrid2_OnInit" 
                            OnItemCommand="RadGrid2_ItemCommand"> 
                            <MasterTableView> 
                                <Columns> 
                                    <telerik:GridNumericColumn DataField="Nick_Index" UniqueName="Nick_Index" HeaderText=""> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridBoundColumn DataField="Nick_Name" UniqueName="Nick_Name" HeaderText=""> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="Nick_Title" UniqueName="Nick_Title" HeaderText=""> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridCheckBoxColumn DataField="Nick_Status" UniqueName="Nick_Status" HeaderText=""> 
                                    </telerik:GridCheckBoxColumn> 
                                    <telerik:GridTemplateColumn UniqueName="Functions" AllowFiltering="false" Groupable="false" 
                                        HeaderStyle-Font-Bold="True" HeaderText=""> 
                                        <ItemTemplate> 
                                            <cc5:LinkButtonEdit ID="btnEditNick" runat="server" CommandArgument='<%# Eval("Nick_ID") %>' /> 
                                            | 
                                            <cc5:LinkButtonDelete ID="btnDeleteNick" runat="server" CommandArgument='<%# Eval("Nick_ID") %>' /> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                            </MasterTableView> 
                            <ClientSettings> 
                                <Selecting AllowRowSelect="false"/> 
                            </ClientSettings> 
                        </cc3:RadGrid> 
                        <asp:SqlDataSource ID="SqlDataSource2" ConnectionString='<%$ ConnectionStrings:Portal_ConnectionString %>' 
                            ProviderName="System.Data.SqlClient" SelectCommand="EXEC [OnlineSupport_Nicks_GetNicksByGroup] @Portal_ID, @Group_ID, @Language" 
                            runat="server"> 
                            <SelectParameters> 
                                <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="int32" Name="Group_ID" /> 
                                <asp:ControlParameter ControlID="Label2" PropertyName="Text" Type="int32" Name="Portal_ID" /> 
                                <asp:ControlParameter ControlID="Label3" PropertyName="Text" Type="String" Name="Language" /> 
                            </SelectParameters> 
                        </asp:SqlDataSource> 
                    </asp:Panel> 
                </NestedViewTemplate> 
                <Columns> 
                    <telerik:GridNumericColumn DataField="Group_Index" UniqueName="Group_Index" HeaderText=""> 
                    </telerik:GridNumericColumn> 
                    <telerik:GridBoundColumn DataField="Group_Name" UniqueName="Group_Name" HeaderText=""> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridCheckBoxColumn DataField="Group_Enable" UniqueName="Group_Enable" HeaderText=""> 
                    </telerik:GridCheckBoxColumn> 
                    <telerik:GridTemplateColumn UniqueName="Functions" AllowFiltering="false" Groupable="false" 
                        HeaderStyle-Font-Bold="True" HeaderText=""> 
                        <ItemTemplate> 
                            <cc5:LinkButtonEdit ID="btnEdit" runat="server" CommandArgument='<%# Eval("Group_ID") %>' /> 
                            | 
                            <cc5:LinkButtonDelete ID="btnDelete" runat="server" CommandArgument='<%# Eval("Group_ID") %>' /> 
                            | 
                            <cc5:LinkButton ID="btnAddNick" runat="server" CommandArgument='<%# Eval("Group_ID") %>' 
                                CommandName="AddNick"></cc5:LinkButton> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings> 
                <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents> 
                <Selecting AllowRowSelect="true" /> 
            </ClientSettings> 
        </cc3:RadGrid> 
        <cc3:RadContextMenu ID="RadContextMenu1" runat="server" OnClientItemClicking="onClientContextMenuItemClicking" OnItemClick="RadContextMenu1_ItemClick" 
            OnInit="RadContextMenu1_OnInit"> 
            <Items> 
                <telerik:RadMenuItem Value="AddNick" Text="" /> 
                <telerik:RadMenuItem Value="Edit" Text="" /> 
                <telerik:RadMenuItem Value="Delete" Text="" Font-Bold="true"/> 
            </Items> 
        </cc3:RadContextMenu> 

VnDevil
Top achievements
Rank 2
 answered on 17 Feb 2010
6 answers
211 views
Hello,

I am using a Radgrid which I am setting the ScrollArea on the OnGridCreated Client Event.

The issue I am running into is when the user puts the grid into edit mode.  I have a user control as the Edit form for the grid. 

The javascript I have does not seem to be calculating the height correctly when the grid is in edit mode.

Is there a way that I can get the height of the user control in Javascript so that I can adjust the ScrollArea accordingly? 

Here is my Javascript (works fine if grid not in Edit Mode):

function

 

rgUsers_Client_OnGridCreated(sender, args)

 

{

 

 

 

 

var scrollArea = sender.GridDataDiv;

 

 

if (scrollArea)

 

{

 

var masterTable = sender.get_masterTableView();

 

 

if (masterTable)

 

{

 

var element = masterTable.get_element();

 

 

if (element)

 

{

 

var dataHeight = element.clientHeight;

 

 

if (dataHeight < 350)

 

{

scrollArea.style.height = dataHeight + 17 +

"px";

 

}

}

}

}

}

Thanks!
Dave

Dimo
Telerik team
 answered on 17 Feb 2010
1 answer
97 views
Hi all,

I need to design a RadComboBox Control without an image at the right hand side corner. Is there any option to remove that inverted triangle Image???

Thanks & Regards
Priya.
Yana
Telerik team
 answered on 17 Feb 2010
3 answers
148 views
Hello,
  I'm trying to write and app where I have a list of available columns for a grid, and i can click and drag those column names onto the grid to show those columns.  This works fine, however I am having problems trying to remove the column by clicking and dragging it off.  I would like to have a lot of the logic of what columns are visible and it what order all done server side, as I will be doing some server side work with the columns they've selected.  I was going to attach what I have so far but it's not letting me (since it's not a jpeg)
Ryan Caskey
Top achievements
Rank 1
 answered on 17 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?