Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
I have a RadGrid with pagesize of 5 that is bound to a datatable. If my datatable only has 6 rows, the second page of the grid resizes to only display 1 row. I don't like the control resizing and would prefer that it alwas shows 5 rows per page (padding blank rows on the last page where necessary). Is this possible?
Vasil
Telerik team
 answered on 29 Dec 2010
19 answers
1.3K+ views
Hello,

I have a radgrid on a page.  On pageload I would like to open the form template of the radgrid in insert mode so that a user can insert without having to click the "Add new record" link.  Is this possible?  If so, how can it be done?  Below is the radgrid code:

<

rad:RadGrid ID="grd" runat="server" AutoGenerateColumns="false" AllowSorting="true" Skin="None"

CssClass="" GridLines="Horizontal" OnNeedDataSource="NeedDataSource" OnItemCommand="ItemCommand"

OnUpdateCommand="UpdateCommand" OnDeleteCommand="DeleteCommand" OnInsertCommand="InsertCommand"

EnableAJAX="true">

<MasterTableView DataKeyNames="ID" CommandItemDisplay="Bottom" >

<HeaderStyle CssClass="" />

<AlternatingItemStyle CssClass="" />

<Columns>

<rad:GridTemplateColumn UniqueName="ID"  SortExpression="ID" >

<ItemStyle CssClass="" />

<ItemTemplate>

<%

#  %>

</ItemTemplate>

</rad:GridTemplateColumn>

<rad:GridTemplateColumn UniqueName="" HeaderText="" SortExpression="">

<ItemStyle CssClass="" />

<ItemTemplate>

<%

#  %>

</ItemTemplate>

</rad:GridTemplateColumn>

<rad:GridTemplateColumn UniqueName=n" >

<ItemStyle CssClass="" />

<ItemTemplate>

<%

# %>

</ItemTemplate>

</rad:GridTemplateColumn>

<rad:GridTemplateColumn UniqueName=""  SortExpression="">

<ItemStyle CssClass="" />

<ItemTemplate>

<%

# Eval("")%>

</ItemTemplate>

</rad:GridTemplateColumn>

<rad:GridTemplateColumn UniqueName="">

<ItemStyle CssClass=""/>

<ItemTemplate>

<asp:ImageButton runat="server" ID="btnEdit"  CommandName="Edit"/>

<asp:ImageButton runat="server" ID="btnDelete"  CommandName="Delete"

OnClientClick="" CommandArgument='<%# Eval("")%>'/>

</ItemTemplate>

</rad:GridTemplateColumn>

</Columns>

<EditFormSettings EditFormType="Template">

<FormTemplate>

<div class="">

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

</div>

<div class="editRow">

<div class="editTitleColumn">

 

</div>

<div class="editColumn">

<asp:DropDownList runat="server" ID=""></asp:DropDownList>

</div>

<div class="editTitleColumn">

 

</div>

<div class="editColumn">

<asp:TextBox runat="server" ID="" CssClass="" Text=''></asp:TextBox>

</div>

</div>

<div class="editRow">

<div class="editTitleColumn">

 

</div>

<div class="editColumn">

<asp:DropDownList runat="server" ID=""></asp:DropDownList>

</div>

<div class="editTitleColumn">

 

</div>

<div class="editColumn">

<asp:TextBox runat="server" ID="" TextMode="MultiLine" Rows="3" CssClass=""></asp:TextBox>

</div>

</div>

<div class="row">

<div class="column">

<asp:ImageButton runat="server" ID="btnUpdate"

CommandName='' />&nbsp;

</div>

<div class="column">

<asp:ImageButton runat="server" ID="btnCancel"  CommandName="Cancel" />

</div>

</div>

</FormTemplate>

</EditFormSettings>

<CommandItemTemplate>

<div class="commandItem">

<asp:LinkButton runat="server" ID="btnAddEntry" Text="Add New Entry" CommandName="InitInsert"></asp:LinkButton>

</div>

</CommandItemTemplate>

</MasterTableView>

</rad:RadGrid>

Thank you,

Jennifer

Marin
Telerik team
 answered on 29 Dec 2010
3 answers
639 views
I have a FileExplorer control that displays a directory structure in a tree/grid combination.  I have successfully changed the style of the grid so that the selected rows are the color that I want, but I cannot figure out how to change the color of the selected node in the tree.

Can anyone help me out?
Bozhidar
Telerik team
 answered on 29 Dec 2010
10 answers
179 views
Probably a bug, but i heard that telerik is on holiday :)

"Image (in image browser) is not selected after upload":
It all works well unti you already have 100+ files. Thats when image manager turns on paging (100 files per page) and when newly uploaded image isnt sorted out to the first page, you have to manually browse pages until you get to the page where the file is, then the file gets auto selected by Image manager.

So i'm guessing it was in plan to select the newly uploaded file, but the part where the correct page is selected isnt working?

Thanks for any help/workaround

re, Žiga
Rumen
Telerik team
 answered on 29 Dec 2010
4 answers
151 views

Hi

In my application we are using v2 telerik dll and following is the code used:
<rad:RadEditor ID="notificationDescriptionTextBox" runat="server" Width="89%" Height="150px" ToolsFile="~/library/RADControls/BasicTools.xml" RadControlsDir="~/RadControls/" ShowSubmitCancelButtons="false" StripFormattingOnPaste="Font,Span,MSWordRemoveAll,Css"></rad:RadEditor>

If I have some existing text in the RadEditor with some styles applied on it and thereafter if I copy any text from an alternate application i.e. word/onenote/etc., the copied text inherits the existing styles.My requirement is that the copied text should not inherit the existing text's styles and it should retain the bold.Please suggest me a solution to accomplish the requirement. 

Rumen
Telerik team
 answered on 29 Dec 2010
9 answers
324 views
how can I have GridBoundColumn called password and have this password show in TextMode = "password" that no one can see what is the password is for security reason..

I have RadGrid that has edit, insert, delete, update events...
Kannan
Top achievements
Rank 1
 answered on 29 Dec 2010
4 answers
559 views
I want to create a listbox dynamically and I want to put radiobuttons and Checkboxes in the listbox.
I want the listbox to be something like this:

<telerik:RadListBox runat="server" ID="RadListBox">
  <ItemTemplate>
     <table>
        <tr>
           <td>
              <asp:CheckBox ID="CheckBox1" runat="server" onclick="stopPropagation(event, this);" />
           </td>
           <td>
               <asp:RadioButton ID="RadioButton1" runat="server" GroupName="Type" onclick="SetUniqueRadioButton();" />
           </td>
           <td>
                <%# DataBinder.Eval(Container.DataItem,"FullName") %>
           </td>
         </tr>
       </table>
    </ItemTemplate>
 </telerik:RadListBox>

I was having trouble creating a listbox dynamically with the item template as desired. Could you tell me how to create the control in the required manner from the code.
Genady Sergeev
Telerik team
 answered on 29 Dec 2010
1 answer
74 views

Hi all,

I have a radscheduler with an inline template with a disabled textbox:

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataSourceID="ObjectDataSource1"

DataEndField="EndDateTime" DataKeyField="Id" DataStartField="StartDateTime" DataSubjectField="Subject"

OverflowBehavior="Expand" StartEditingInAdvancedForm="False">

<InlineEditTemplate>

<div class="rsAdvancedEdit">

<div class="rsAdvContentWrapper">

<telerik:RadTextBox ID="SubjectTextBox" runat="server" Text='<%# Bind("Subject") %>'

Enabled="False" />

</div>

</div>

</InlineEditTemplate>

</telerik:RadScheduler>

If I click on the disabled textbox I get an error: "Microsoft JScript runtime error: 'undefined' is null or not an object"

in line

var b=h.split(" ");

Is this a bug or am I missing something...

regards,

Johan

 

Peter
Telerik team
 answered on 29 Dec 2010
4 answers
91 views
Hi,
I have a web form with RadEditor and input text,I want to put the cursor in the text input, so i use this code from http://www.telerik.com/help/aspnet-ajax/editor_setfocus.html
<body onload="SetFocusOnTextBox();">
   <form id="form1" runat="server">
   <asp:ScriptManager id="ScriptManager" runat="server"/>                             
   <telerik:radeditor runat="server" ID="RadEditor1">
       <Content>
           Here is sample content!
       </Content>
   </telerik:radeditor>
   <input type="text" id="text"/>
   <input type="button" value="Set Focus On RadEditor" onclick="SetFocusOnRadEditor()" />
   <script type="text/javascript">
   function SetFocusOnRadEditor()
   {
       var editor = $find("<%=RadEditor1.ClientID%>"); //get a reference to RadEditor client object
       editor.setFocus(); //set the focus on the the editor
   }
   function SetFocusOnTextBox()
   {
       var editor = $get("text"); //get a reference to the input textbox with id text
       editor.focus(); //set the focus on the the textbox
   }
   </script>
   </form>
</body>

It's OK with Forefox or chrome , but not work with IE 8

dali
Top achievements
Rank 1
 answered on 29 Dec 2010
1 answer
76 views
Hi,

I want to filter templategridcolumn same way as google filtering .iI found example of google filtering for griddatabound column and it work perfectly fine.In same way ,I want to filter template column.

Thanks
Swarnlata
Princy
Top achievements
Rank 2
 answered on 29 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?