Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Hi guys

I try to combine RadFileExplorer with jQuery Dialog Modal but something happened.
when i wanted to create a new folder, I was not able to type any character into the input element nor delete the default name.
It still creates a new folder but with the name 'NewFolder' if I click the OK button. 

It works OK if i don't use jQuery Dialog Modal.

Please see the attachment file.

Here are the codes:

HTML script :
<div id="fSaveCroppedImage" title="Save Image">           
            <telerik:RadFileExplorer ID="RadFileExplorer1"  Width="90%" Height="200px"   runat="server" 
                ExplorerMode="Default" OnClientFolderChange="OnClientFolderChange" 
                EnableOpenFile="False" 
                VisibleControls="TreeView,ContextMenus,Toolbar" 
                onclientfolderloaded="OnClientFolderLoaded" >
            <Configuration ViewPaths="~/pubimages" UploadPaths="~/pubimages"
                                DeletePaths="~/pubimages" 
                           />
            </telerik:RadFileExplorer>
  </div>


jQuery script:

$("#fSaveCroppedImage").dialog({
        bgiframe: false,
        autoOpen: false,
        dialogClass: '',
        height: 'auto',
        width: 'auto',
        modal: true,
        open:function(){{
          $(this).parent().appendTo($("form:first")); 
        }},
        buttons: {
            Cancel: function() {
                $(this).dialog('close');
            },
            Save: function() {
                //do something    
$(this).dialog('close');
                }
            }
        },
        close: function() {
        }
    });

Anyone can help?

Im using jQuery 1.7.2 and Telerik 2010.1.415.20.

Thanks.
Oki
Dobromir
Telerik team
 answered on 14 May 2012
5 answers
2.0K+ views
Good Day all

In a ASP.NET Gridview we use the event PageIndexChanging to do the custom paging. i use RadGrid i want to implement Paging.  i enabled paging in the Radgrid and i have selected the option for Custom Paging. i looked for the event PageIndexChanging but i found the PageIndexChanged that was the only thing that is close to the one i know. i have added the following code to do custom paging.

 
    protected void RadReplies_PageIndexChanged(object source, GridPageChangedEventArgs e) 
    { 
        RadReplies.PageIndexChanged = e.NewPageIndex; 
 
        Bind_Posts(); 
    } 

i don't get any Error. When i run my page it show the first 5 records and when i move to the next page it shows nothing. The method Bind_Posts() it rebind the grid.

Can you tell me if there is anything that am doing wrong

Thanks

Pavlina
Telerik team
 answered on 14 May 2012
2 answers
116 views
I have a bit of a more complicated setup:

A usercontrol loading more usercontrols into a RadMultiPage. One of these usercontrols contains a Grid with Editors on there. Everything works fine, but when adding a RadAjaxManager + Loading Panel to the outer usercontrol (containing the RadMultiPage) - saving of the Grid doesn't have any effect, i.e. the value returned from the databound control is the same as the initial value - other columns in the grid do save, only the Editor doesn't.
When I change the Editor column to a regular TextBox column I can save again - but when trying to save some HTML code e.g. ">" "<" I get an exception in the Telerik Javascript.

I am assuming this behavior is due to the RadAjaxManager not liking the output of the Editor column (containing HTML) or something like that.

The outer containing usercontrol:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadMultiPage">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadTabStrip">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
<div class="right">
</div>
<div class="left">
            <telerik:RadTabStrip ID="RadTabStrip" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage"
                CssClass="NoBg">
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage" runat="server" SelectedIndex="0" OnPageViewCreated="RadMultiPage_PageViewCreated" />
</div>

The usercontrols for the RadMultiPage are loaded as shown here: http://demos.telerik.com/aspnet-classic/TabStrip/Examples/Application/AddDynamicUserControls/DefaultCS.aspx.

Lastly the usercontrol with the problem:
<telerik:RadGrid ID="radGrid1" runat="server" DataSourceID="dsMatrix" AutoGenerateColumns="False" Width="100%">
    <ClientSettings>
        <Selecting CellSelectionMode="None"></Selecting>
    </ClientSettings>
    <MasterTableView Width="100%" EditMode="InPlace" AllowAutomaticDeletes="True" AllowAutomaticUpdates="true" AllowAutomaticInserts="True" DataKeyNames="ID, RowVersion">
        <Columns>
            <telerik:GridBoundColumn DataField="ID" Visible="false" />
            <telerik:GridTemplateColumn DataField="Richtext" HeaderText="Richtext" HeaderStyle-Width="100%">
                <ItemTemplate>
                    <telerik:RadEditor ID="txtRichtext" Runat="server" EditModes="Design" ToolsFile="RadEditorBasic.xml" EnableResize="False" Content='<%# Bind("Richtext") %>' AutoResizeHeight="True" Height="100px" Width="100%" Enabled="False" ReadOnly="True" />
                </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadEditor ID="txtRichtext" Runat="server" EditModes="Design" ToolsFile="RadEditorBasic.xml" EnableResize="False" Content='<%# Bind("Richtext") %>' AutoResizeHeight="True" Height="100px" Width="100%" />
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" />
        </Columns>
        <EditFormSettings>
            <EditColumn ButtonType="ImageButton" ItemStyle-HorizontalAlign="Center"/>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

So again: When removing the RadAjaxManager from the container, the "Richtext" field is properly saved. When RadAjaxManager is present as shown above, the field is not saved at all. Any other type of field I add is saved properly.

Any suggestions to get this to work with still having the fancy "loading" animation instead of the full page postback?
Dennis
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
109 views
Hi,

  I entered the text and the below code is working to get the range
    editor.getSelectedElement().createTextRange()
 If I delete the text in editor and enter some other text and the above code throw the error as below,
   Object doesn't support this property or method  

Please let me know why this error throwing at next time. Do we need to refresh the editor or something, if yes how to do?
Rumen
Telerik team
 answered on 14 May 2012
8 answers
691 views
Hi Telerik,

I have a RadAsyncUpload control in my page.  When users upload documents, the progress bar and a Cancel button for the uploading item are showing. Users can either wait until the file is totally uploaded or hit the cancel button to cancel the upload. When users hit the Cancel button, the progress bar disappears and the red light and Remove button show up.  The red light item is very confusing for my users.  Is there any way I can get rid of the entire item(red light, document name and "Remove button") when users click "Cancel" button?

Thanks!
joan780
Plamen
Telerik team
 answered on 14 May 2012
2 answers
174 views
Hello,

I use the Grid with EditFormType = Template. When the user clicks the edit button on an item which is at the bottom of the browser window, only the top of the editform is visible and the user has to scroll down to see the whole control. Is it possible to automatically scroll down so the form is completely visible?
Is there any built-in mechanism in the RadGrid?

Thanks!
JP
Top achievements
Rank 1
 answered on 14 May 2012
2 answers
143 views
Hi everyone,
i'd like to use the Google-like filtering for Radgrid as shown in one of the examples:
Grid / Google-like Filtering
It uses a self created Custom-ControllColumn for that which is inheriting from GritTemplatecolumn.
The control is declared in code-behind and therefore also the grid is created in code-behind.
I've already a grid and its columns are defined in the aspx file.
As far as I know you shouldn't mix up the column-definition; either code-behind or static in the aspx.
I'd like to know if it is possible to define this control in a way that i can use it in the aspx.

How can I realize that?
What steps must be done to make the in CS written control available in the aspx-file?

Greetings,
Marcel
Marcel
Top achievements
Rank 1
 answered on 14 May 2012
2 answers
90 views
I have a telerik grid with lots of rows. i have a delete button:
<telerik:GridButtonColumn ButtonType="ImageButton"
FilterControlAltText="Filter column column" UniqueName="GridButtonDelete" CommandName="Delete">

I initially had code in the postbackurl and after the delete button was clicked I successfuly went to another page and did what i had to do. But I decided to add a client side confirmation
(item["GridButtonDelete"].Controls[0] as ImageButton).OnClientClick = "return confirm ('OK to Delete?');";
Once the confirmation was added the postbackurl of the delete button does not fire.
what am i doing wrong?
Saro
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
93 views
It would appear that in 2012.1.215.40, OnClientSelectedIndexChanging does not hit when the selection is changed via keyboard rather than mouse. I have not rolled back to the previous version to test the previous behavior--but all of a sudden we have an application in which data which should not be edited can be edited. I'm thinking this is a SERIOUS BREAKING BUG. (Note, we have AllowCustomText=false.) Please advise of any workaround. Meantime I'm going to try to block all characters using onKeyDown per this sample:
http://www.telerik.com/help/aspnet-ajax/combobox-prevent-typing-particular-characters.html 
However, it has to be set in code for every single RadCombo--so a very ugly solution if it works.

I'll put this in a support ticket as well.
Ivana
Telerik team
 answered on 14 May 2012
16 answers
2.4K+ views

Hi

I have 2 questions that I need some help with if possible.

1)

I have implemented the RadAsyncUpload conrol in my web application to allow a user to upload files to the server. I would like to clear the uplaoded file list above the select button and this uploaded files in Javascript. Is this possible?

2)

How do a person code for when a file already exists using the RadAsyncUpload conrol?

Thank you
Fred

Kartar
Top achievements
Rank 1
 answered on 14 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?