Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
178 views

Hi,

        Is there any possibility to customize CommandItemTable and add one more button in addition to AddNewRecord and Refresh button.

 

I would like to add one Export button in the CommandItem row or in between Add and Refresh button. So please le me know the availability of this option.

 

-Thanks

 

OverCoded
Top achievements
Rank 2
 answered on 02 Sep 2011
2 answers
53 views
I'm not able to find the Add Record bar for any RadGrids that I create. I can Edit and Delete but don't see the usual bar (bar that I see in the Telerik RadGrid demos). Is there a check box that I'm missing? The code for my currrent Grid is below.

<form id="form1" runat="server">
    <p>
        <br />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </p>
    <div>
    
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" 
            AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" CellSpacing="0" 
            DataSourceID="dsRadGrid" GridLines="None" AllowAutomaticInserts="True" 
            ShowFooter="True" Skin="Office2007">
<MasterTableView autogeneratecolumns="False" datakeynames="photoID" 
                datasourceid="dsRadGrid">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>


<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>


<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>


    <Columns>
        <telerik:GridBoundColumn DataField="photoID" DataType="System.Int16" 
            FilterControlAltText="Filter photoID column" HeaderText="ID" ReadOnly="True" 
            SortExpression="photoID" UniqueName="photoID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="photoFilename" 
            FilterControlAltText="Filter photoFilename column" HeaderText="Filename" 
            SortExpression="photoFilename" UniqueName="photoFilename">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="photoTags" 
            FilterControlAltText="Filter photoTags column" HeaderText="Tags" 
            SortExpression="photoTags" UniqueName="photoTags">
        </telerik:GridBoundColumn>
        <telerik:GridImageColumn DataImageUrlFields="photoFilename" DataImageUrlFormatString="http://fshn.ifas.ufl.edu/photos/images/thumbnails/{0}"
            FilterControlAltText="Filter column column" HeaderText="Photo" ImageHeight="" 
            ImageWidth="" 
            UniqueName="column">
        </telerik:GridImageColumn>
    </Columns>


<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>


<FilterMenu EnableImageSprites="False"></FilterMenu>


<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="dsRadGrid" runat="server" 
            ConnectionString="<%$ ConnectionStrings:FSHN_ImagesConnectionString %>" 
            DeleteCommand="DELETE FROM [department_photos] WHERE [photoID] = @photoID" 
            InsertCommand="INSERT INTO [department_photos] ([photoFilename], [photoTags]) VALUES (@photoFilename, @photoTags)" 
            SelectCommand="SELECT * FROM [department_photos] ORDER BY [photoID]" 
            UpdateCommand="UPDATE [department_photos] SET [photoFilename] = @photoFilename, [photoTags] = @photoTags WHERE [photoID] = @photoID">
            <DeleteParameters>
                <asp:Parameter Name="photoID" Type="Int16" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="photoFilename" Type="String" />
                <asp:Parameter Name="photoTags" Type="String" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="photoFilename" Type="String" />
                <asp:Parameter Name="photoTags" Type="String" />
                <asp:Parameter Name="photoID" Type="Int16" />
            </UpdateParameters>
        </asp:SqlDataSource>
    
    </div>
    </form>

thanks for any help.
Marion
Top achievements
Rank 1
 answered on 02 Sep 2011
5 answers
260 views
I found the information about accessing control inside the RadListView in this link:
http://www.telerik.com/help/aspnet-ajax/listview-accessing-controls.html

However, there is no example of using javascript, only server-side code.

Please let me know how to access control inside RadListView.

Thanks All

Lamk.
LamKhoa
Top achievements
Rank 1
 answered on 02 Sep 2011
1 answer
47 views
Hello,

Is there any news on when the Editor nl-NL localization and spellchecker files will be available for the new DNN6/6.1 release?

Regards,
Jochem Rebergen
Rumen
Telerik team
 answered on 02 Sep 2011
2 answers
152 views
Hi, 

         I have an editor(telerik:RadEditor) inside a List(telerik:RadListView), when the user clicks edit it will display the editor. I want to disable some buttons the user should not see, I tried using this code:
<script>
 function OnClientLoad(editor) {
             var oTool = editor.getToolByName("SpellCheck");
              var icon = oTool.GetIcon();
                icon.style.display = "none";
 
</script>
<telerik:RadEditor OnClientLoad="OnClientLoad" ....

But when I click edit I get this error: Object doesn't support property or method 'getToolByName' 
Felipe
Top achievements
Rank 1
 answered on 02 Sep 2011
3 answers
185 views
Hi,

I'm using RadEditor for MOSS 2007. After uploading an image through the Image Manager dialog box, I'm resizing it using the embedded Image Editor.

After resizing (I've decreased the image size) and saving the image, I can see that the target image (which Image Editor appends a _thumb in the name, by default) is much bigger than the original one.

In my case, I've uploaded and resized a 103Kb .jpg image. After resized the image size is 3.32MB and it's format is .bmp (bitmap instead of jpeg).

Is there a way to configure the Image Editor so I can set the compression method of the target image (like png, jpeg, etc)?

It does not make sense to have bitmap thumbnails because of the huge size of this type of format.

Thanks in advance.

Rodrigo.
Rumen
Telerik team
 answered on 02 Sep 2011
2 answers
80 views
Is there any java-script function to expand the detail grid on a click of hyperlink column in the radgrid.?

If not so, is there any method to trigger the expansion when based on any event of the parent grid? ( like button click event , hyperlink click event etc.,)


I don't want the expansion on the row click, but I want to expand the detail when a particular image button or hyperlink is clicked in a row of specific column.

Prasad
Top achievements
Rank 1
 answered on 02 Sep 2011
2 answers
72 views
Hi Telerik Team,

Just found an unusual piece of CSS code in one of your demos.

.userName
        {
            font-size: 18px;
            font-wight: bold;
            color: #598f97;
            vertical-align: top;
            float: right;
            margin: 30px;
        }

I am pretty sure you meant, font-weight instead of font-wight
Notification Demo

Cheers,
Navnit
Navnit
Top achievements
Rank 2
 answered on 02 Sep 2011
4 answers
86 views

In radgrid i am having a custom filter using a button. Here is my code.

protected void imSearch1_Click(object sender, EventArgs e)

{

RadTextBox txtFirstName = (RadTextBox)RadPanelBar1.FindItemByValue("QuickSearch").FindControl("txtFirstName");

RadTextBox txtLastName = (RadTextBox)RadPanelBar1.FindItemByValue("QuickSearch").FindControl("txtLastName");

DataSet ds = DhsBasePage.getProxyDataService().GetProviderListByName(txtFirstName.Text, txtLastName.Text);

RadGrid1.DataSource = ds;

RadGrid1.Rebind();

}

This works good, but this filter not applied to the next page. In other words when i click the next page, the grid lost the filter.
Need help ASAP.
Thanks in advance.
Eva

Dany
Top achievements
Rank 1
 answered on 02 Sep 2011
2 answers
86 views
Hi,

I am trying to use AJAX editor  in MVC framework. I followed these 2 link for the implementation and every thing works fine except saving the content(accessing in controller).

http://www.telerik.com/help/aspnet-ajax/mvc-using-editor.html
http://www.telerik.com/community/forums/aspnet-ajax/editor/using-rad-editor-into-mvc-page.aspx

The issue is when I assign a value to the content of the editor (say some default value) and then modify it and save it, it always saves the assigned value and not the updated value.

If I remove the default value that is assigned to the editor, then after typying the content in editor when I click save it saves empty, the form value that i get in controller is empty string.

I checked using fiddler and still the formcollection is having empty value only if there is no default value. If I have a default value it has the default value and not the updated data.

can some one help with this?

Another small issue is, I was trying to set the filter ,searchPatten and few more in the MVC view as below, but the Editor dint recognize the paths or the searchpattern or the filters. When I used it as inline it worked. And Inline doesnt allow <%= %>  for MaxUploadFileSize and for searchpatters as the Editor is a server control. So I am forced to use hardcoded value. Is there any alternative for fixing this?
<% string ImageGalleryPath = "/images/ModuleName";
            EditorID.ImageManager.ViewPaths = new string[] { ImageGalleryPath };
            EditorID.ImageManager.UploadPaths = new string[] { ImageGalleryPath };
            EditorID.ImageManager.DeletePaths = new string[] { ImageGalleryPath };
            EditorID.ImageManager.MaxUploadFileSize = ConfigurationHelper.MaxUploadFileSize;
            EditorID.ImageManager.SearchPatterns = ConfigurationHelper.SearchPatternsImages;
            EditorID.DisableFilter(Telerik.Web.UI.EditorFilters.RemoveScripts);
            EditorID.DisableFilter(Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute);
            EditorID.DisableFilter(Telerik.Web.UI.EditorFilters.FixUlBoldItalic);
            EditorID.EnableFilter(Telerik.Web.UI.EditorFilters.FixEnclosingP);
            EditorID.DisableFilter(Telerik.Web.UI.EditorFilters.IECleanAnchors);
            EditorID.DisableFilter(Telerik.Web.UI.EditorFilters.MozEmStrong);
            EditorID.EnableFilter(Telerik.Web.UI.EditorFilters.ConvertFontToSpan);
            EditorID.DisableFilter(Telerik.Web.UI.EditorFilters.ConvertToXhtml);
            EditorID.EnableFilter(Telerik.Web.UI.EditorFilters.IndentHTMLContent);
%>


Thanks,
Akila.



Akila Kumarasamy
Top achievements
Rank 1
 answered on 02 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?