Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
268 views
I've successfully populated your Treeview using this statement for every node:
  node.ExpandMode = TreeNodeExpandMode.ServerSide;
For each node I'd also added an "id" attribute with some special data in it.

Configured this way, everything works fine.

But now I've started investigating using this statement instead for every node:
  node.ExpandMode = TreeNodeExpandMode.ServerSideCallback;

After doing this I noticed that when a node is click, the "id" attribute appears not to exist.  In fact, in Debug mode I detected that the attribute count for each node was 0.

Any idea why?

Robert



Veronica
Telerik team
 answered on 04 May 2010
13 answers
174 views
Hi,
I'm using RadWindow with a custom skin, and I don't want to use gif's for the background's , but colors and gradients instead.
my only problem is that I can't seem to control the height of the titlebar (and it's conrners) and the height of the footer (and it's corners). no matter what value I set in height in the css , it stays the same (looks like it's 16 px or something like that).

here's a little sample from the css :
div.radwindow_ReformaSkin table td.footercenter  
{  
    background-color: #d4d0c8;  
     border-bottom:solid 1px #808080;  
     border-top:solid 1px;  
    height: 2px !important;  
}  
 
div.radwindow_ReformaSkin table td.titlebar  
{  
    filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#00A246A,endColorStr=#A5C9EF);  
    height: 5px;  
    border-bottom:solid 1px;  
    border-top:solid 1px;  
} 
can you please point me out to the correct css class to change, or any other change I should make.

thanx,
Revital

 by the way, I am using version 2008.3.1314.35 of telerik's controls.

Yavor
Telerik team
 answered on 04 May 2010
6 answers
341 views

Greetings,
I'm trying to figure out a quirk I see with RadEditor. I've declared a RadEditor instance in the .aspx page, and when the page loads initially the editor content area is rendered as a single line ( although I have declared the width=680px and the height=500px ). When I hit F5 to refresh the page, the editor's content area is displayed as I would expect.

Any ideas on what could cause this? I have attached two screen shots so you can see how the editor content area is being rendered ( "screen_1.jpg" and "screen_2.jpg" ). The markup declaring the Editor is as follows, and is contained within an UpdatePanel.

Regards,
Tom

                                                       <telerik:RadEditor   
                                                             ID="EmailBodyEditor" runat="server" 
                                                             Width="680px" 
                                                             Height="500px"   
                                                             AutoResizeHeight="true" 
                                                             NewLineBr="true" 
                                                             ToolBarMode="Default" 
                                                             EnableResize="False"   
                                                             ExternalDialogsPath="~/EditorDialogs/"   
                                                             EditModes="Design, Preview, HTML" 
                                                             OnClientCommandExecuting="OnClientCommandExecuting"   > 
                                                        <CssFiles> 
                                                            <telerik:EditorCssFile Value="fakeCssfile.css" /> 
                                                        </CssFiles>                                                                     
                                                        <Tools> 
                                                           <telerik:EditorToolGroup> 
                                                               <telerik:EditorTool Name="Bold" /> 
                                                               <telerik:EditorTool Name="Italic" /> 
                                                               <telerik:EditorTool Name="Underline" /> 
                                                               <telerik:EditorTool Name="StrikeThrough" /> 
                                                               <telerik:EditorTool Name="ForeColor" /> 
                                                               <telerik:EditorTool Name="BackColor" /> 
                                                               <telerik:EditorTool Name="InsertOrderedList" /> 
                                                               <telerik:EditorTool Name="InsertUnorderedList" /> 
                                                               <telerik:EditorTool Name="Indent" /> 
                                                               <telerik:EditorTool Name="Outdent" /> 
                                                               <telerik:EditorTool Name="JustifyLeft" /> 
                                                               <telerik:EditorTool Name="JustifyCenter" /> 
                                                               <telerik:EditorTool Name="JustifyRight" /> 
                                                               <telerik:EditorTool Name="JustifyFull" /> 
                                                            </telerik:EditorToolGroup> 
                                                            <telerik:EditorToolGroup> 
                                                               <telerik:EditorTool Name="FindAndReplace" /> 
                                                               <telerik:EditorTool Name="ToggleScreenMode" /> 
                                                               <telerik:EditorTool Name="InsertTable" /> 
                                                               <telerik:EditorSeparator /> 
                                                               <telerik:EditorTool Name="FontName" /> 
                                                               <telerik:EditorTool Name="FontSize" /> 
                                                               <telerik:EditorTool Name="LinkManager" /> 
                                                               <telerik:EditorTool Name="ImageManager" /> 
                                                               <telerik:EditorTool Name="AjaxSpellCheck" /> 
                                                           </telerik:EditorToolGroup> 
                                                        </Tools> 
                                                        <ContextMenus> 
                                                            <telerik:EditorContextMenu TagName="IMG">  
                                                              <telerik:EditorTool Name="SetImageProperties" /> 
                                                              <telerik:EditorTool Name="ImageMapDialog" /> 
                                                            </telerik:EditorContextMenu> 
                                                            <telerik:EditorContextMenu TagName="TABLE">  
                                                              <telerik:EditorTool Name="ToggleTableBorder" /> 
                                                              <telerik:EditorTool Name="SetTableProperties" /> 
                                                              <telerik:EditorTool Name="DeleteTable" /> 
                                                            </telerik:EditorContextMenu> 
                                                            <telerik:EditorContextMenu TagName="TD">  
                                                              <telerik:EditorTool Name="InsertRowAbove" /> 
                                                              <telerik:EditorTool Name="InsertRowBelow" /> 
                                                              <telerik:EditorTool Name="DeleteRow" /> 
                                                              <telerik:EditorTool Name="InsertColumnLeft" /> 
                                                              <telerik:EditorTool Name="InsertColumnRight" /> 
                                                              <telerik:EditorTool Name="MergeColumns" /> 
                                                              <telerik:EditorTool Name="MergeRows" /> 
                                                              <telerik:EditorTool Name="SplitCell" /> 
                                                              <telerik:EditorTool Name="DeleteCell" /> 
                                                              <telerik:EditorTool Name="SetCellProperties" /> 
                                                            </telerik:EditorContextMenu> 
                                                            <telerik:EditorContextMenu TagName="A">  
                                                              <telerik:EditorTool Name="SetLinkProperties" /> 
                                                              <telerik:EditorTool Name="Unlink" /> 
                                                            </telerik:EditorContextMenu> 
                                                            <telerik:EditorContextMenu TagName="BODY">  
                                                              <telerik:EditorTool Name="Cut" /> 
                                                              <telerik:EditorTool Name="Copy" /> 
                                                              <telerik:EditorTool Name="Paste" /> 
                                                              <telerik:EditorTool Name="PasteFromWord" /> 
                                                              <telerik:EditorTool Name="PastePlainText" /> 
                                                              <telerik:EditorTool Name="PasteAsHtml" /> 
                                                            </telerik:EditorContextMenu> 
                                                        </ContextMenus> 
                                                        <ImageManager ViewPaths="~/Documents/Images"   
                                                                      UploadPaths="~/Documents/Images"   
                                                                      DeletePaths="~/Documents/Images"   
                                                                      MaxUploadFileSize="2097152" SearchPatterns="*.jpg, *.gif, *.jpeg, *.bmp" /> 
                                                       </telerik:RadEditor> 
Rumen
Telerik team
 answered on 04 May 2010
1 answer
87 views
If you go to the following URL, the datepickers cannot be used in IE 6. Works fine in other browsers, but in IE 6, the date selections cannot be used. The behavior is also happening with radcombobox on another page. But you have to login and register to see that page. I figure the problems are likely similar, so if you have any thoughts, it would be greatly appreciated.

https://www.lin-mark.com/calendar.aspx?#
Pavel
Telerik team
 answered on 04 May 2010
1 answer
59 views
Hai this my codebehind code for the homepage.aspx
      While i am loading the page i couldn't view the controls which are inside the contentpane.so anyone  review the below code and give me the solution for that problem.
Reply immediately....
--------------------------------------------------------------------------------------------------------------------------------------------------------------
<telerik:RadPane runat="server" ID="contentPane" BorderStyle="None">
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Height="25px" 
             MultiPageID="mpLogin" SelectedIndex="0" Width="100%">
             <Tabs>
                 <telerik:RadTab runat="server" Text="Member" Selected="True">
                 </telerik:RadTab>
                 <telerik:RadTab runat="server" Text="Employee">
                 </telerik:RadTab>
             </Tabs>
         </telerik:RadTabStrip>
         <telerik:RadMultiPage ID="mpLogin" Runat="server" SelectedIndex="0">
             <telerik:RadPageView ID="pvMember" runat="server">
                 <table>
                     <tr>
                         <td align="left" style="width: 125px">
                             <asp:Label ID="lblName" runat="server" Text="User Name"></asp:Label>
                         </td>
                         <td>
                             <telerik:RadTextBox ID="txtUserName" Runat="server" AutoCompleteType="Search" 
                                 SelectionOnFocus="SelectAll" TabIndex="1" Width="125px">
                             </telerik:RadTextBox>
                         </td>
                     </tr>
                     <tr>
                         <td align="left" style="width: 125px">
                             <asp:Label ID="lblPassword" runat="server" Text="Password"></asp:Label>
                         </td>
                         <td>
                             <telerik:RadTextBox ID="txtPassword" Runat="server" 
                                 SelectionOnFocus="SelectAll" TabIndex="2" TextMode="Password">
                             </telerik:RadTextBox>
                         </td>
                     </tr>
                     <tr>
                         <td align="left" colspan="2">
                             <asp:CheckBox ID="chkStay" runat="server" TabIndex="4" Text="Stay Signed In" />
                         </td>
                     </tr>
                     <tr>
                         <td align="left" style="width: 125px">
                             &nbsp;</td>
                         <td>
                             <asp:Button ID="btnOk" runat="server" onclick="btnOk_Click" 
                                 OnClientClick="return FormValidateM();" TabIndex="5" Text="Ok" Width="58px" />
                         </td>
                     </tr>
                 </table>
             </telerik:RadPageView>
             <telerik:RadPageView ID="pvEmployee" runat="server">
                 <table>
                     <tr>
                         <td align="left" style="width: 125px">
                             <asp:Label ID="Label1" runat="server" Text="User Name"></asp:Label>
                         </td>
                         <td>
                             <telerik:RadTextBox ID="txtUserName_E" Runat="server" AutoCompleteType="Search" 
                                 SelectionOnFocus="SelectAll" TabIndex="1" Width="125px">
                             </telerik:RadTextBox>
                         </td>
                     </tr>
                     <tr>
                         <td align="left" style="width: 125px">
                             <asp:Label ID="Label2" runat="server" Text="Password"></asp:Label>
                         </td>
                         <td>
                             <telerik:RadTextBox ID="txtPassword_E" Runat="server" 
                                 SelectionOnFocus="SelectAll" TabIndex="2" TextMode="Password">
                             </telerik:RadTextBox>
                         </td>
                     </tr>
                     <tr>
                         <td align="left" colspan="2">
                             <asp:CheckBox ID="chkStay_E" runat="server" TabIndex="4" 
                                 Text="Stay Signed In" />
                         </td>
                     </tr>
                     <tr>
                         <td align="left" style="width: 125px">
                             &nbsp;</td>
                         <td>
                             <asp:Button ID="btnOk_E" runat="server" onclick="e_btnOK_Click" 
                                 OnClientClick="return FormValidateE();" TabIndex="5" Text="Ok" Width="58px" />
                         </td>
                     </tr>
                 </table>
             </telerik:RadPageView>
         </telerik:RadMultiPage>
</telerik:RadPane>
Svetlina Anati
Telerik team
 answered on 04 May 2010
2 answers
189 views
Hello.

I would like to use this example:
http://www.telerik.com/community/code-library/aspnet-ajax/general/drag-and-drop-between-radgrid-and-radtreeview.aspx

but, I have a customized Master Page, with no TreeView like the sample, so, I tryed to put the code of Default.aspx (that is the TreeView and GridView together) in a page with my Master Page linked, and the code behind in Default.aspx.cs. But, I got this error:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)


Anyone knows why?

Regards.





Princy
Top achievements
Rank 2
 answered on 04 May 2010
1 answer
115 views
This should be easy but I just can't figure it out, how do I control the width of the lables in radgrid edit form so that they don't wrap?
Shinu
Top achievements
Rank 2
 answered on 04 May 2010
1 answer
95 views
hi...

i used the following coding in my grid to use the edit option but if i click the edit button nothing  is happening ,, what i want to do..

<telerik:radgrid ID="grdManagediscount" runat="server" Width="700px"  Skin="Web20"
                AllowSorting="True" AllowPaging="True" TabIndex="1"  
               AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes ="true"
                GridLines="None" AutoGenerateColumns="False" PageSize="5"
             AutoGenerateDeleteColumn="True"
             onneeddatasource="grdManagediscount_NeedDataSource" >
<MasterTableView TabIndex="62" Width="698px"  EditMode="EditForms" CommandItemDisplay="Top"  
                       NoMasterRecordsText="No records to display" >
                    <CommandItemSettings AddNewRecordText="Add a Coupon" />
             <Columns>
                
                 <telerik:GridEditCommandColumn  UniqueName="EditCommandColumn1" HeaderText="Edit"
                  ButtonType="ImageButton" HeaderStyle-Width="3%">
                    <HeaderStyle Width="10%"></HeaderStyle>
                  </telerik:GridEditCommandColumn>
                  <telerik:GridBoundColumn HeaderText="S.No" HeaderButtonType="TextButton"
                        DataField="Couponid" UniqueName="SNo"  HeaderStyle-Width="5%">
                    <HeaderStyle Width="5%"></HeaderStyle>
                  </telerik:GridBoundColumn>
                
                  <telerik:GridBoundColumn HeaderText="Coupon Number" HeaderButtonType="TextButton"
                        DataField="Couponnumber" UniqueName="number" HeaderStyle-Width="20%" >
                        <HeaderStyle Width="20%"></HeaderStyle>
                   </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Discount Percentage" HeaderButtonType="TextButton"
                        DataField="Discountpersentage" UniqueName="percentage" HeaderStyle-Width="20%" >
                        <HeaderStyle Width="20%"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Expedite Days" HeaderButtonType="TextButton"
                        DataField="Expeditedate" UniqueName="expdate" HeaderStyle-Width="20%" >
                                <HeaderStyle Width="20%"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn HeaderText="Issued" DataField="Status" UniqueName="Issue"  >
                    </telerik:GridCheckBoxColumn>
                                        
                    <telerik:GridButtonColumn ConfirmText="Delete this Item?" HeaderText="Delete" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn" HeaderStyle-Width="3%">
                        <HeaderStyle Width="10%"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridButtonColumn>
              </Columns>
                <PagerStyle Mode="NumericPages" Font-Bold="True" HorizontalAlign="Justify"></PagerStyle>
         </MasterTableView>

    </telerik:radgrid>
Shinu
Top achievements
Rank 2
 answered on 04 May 2010
2 answers
185 views
Hi,

I am facing a problem while setting a multi line title for chart control.
I have two line chart title and i set the alignment as :

(

radChart.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

AlignedPositions.Top;

 

)

By using this code snippet, the title is aligned top center. Now the problem is as the title is multiline, the first line
is aligned properly but the second line is not. It starts from where the first line starts besides that it contains less
text then the first line. Now i want to align the lines separately.

Please provide any solution as soon as possible.

Thanks in advance...

Vipul
vipul saini
Top achievements
Rank 1
 answered on 04 May 2010
13 answers
393 views
I did a clean install of VS2010 Beta2 n a new computer. I installed RadControls Ajax and OpenAccess. Using the latest internal builds (RadControls build 1007 and OA build 1031) installed the teleik extensions in CS2010 properly. The regular 2009 Q2 SP1 version did not install the VS extensions.

ALl seems to work fine at runtime, however, when I edit aspx pages containing RadControls in VS2010 Beta2, the tagPrefix telerik is not recognized altough the proper referebces have been made (and all was working fine in VS2008). The telerik tag prefixes are underlined in code view, no control properties are being shown for radControls and in design view it shows a rendering error because the telerik assembly could not be loaded.

These seem to be all VS20210 related errors. The project still runs fine both on the VS development server and in IIS. Is trhere a way to get around this, it is hard to code the RadControls without any help from VS (intellisense, property pages etc.)

Regards, Mikael
Eliza Sahoo
Top achievements
Rank 1
 answered on 04 May 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?