Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
97 views
I have put this in my ascx file and I already have a ImageEditorTool with
the command name CustomPrint. But it seems that it isn't firing in the codebehind.
 I tried it using breakpoint and still it isn't firing. Any help?

The other tools(not custom) are working. I am also making this under vb.net coding
      <telerik:RadImageEditor ID="CurrentPageImage" runat="server" Height="100%" Width="100%" OnImageEditing="CurrentPageImage_ImageEditing">
        
                    <Tools>
                    
                     <telerik:ImageEditorToolGroup>
                      <telerik:ImageEditorTool CommandName="Rotate" ToolTip="Rotate Image" IsToggleButton="true">
                     </telerik:ImageEditorTool>
                       
                    <telerik:ImageEditorTool CommandName="RotateRight" ToolTip="Rotate Right by 90 degrees">
                 </telerik:ImageEditorTool>
                    <telerik:ImageEditorTool CommandName="RotateLeft" ToolTip="Rotate Left by 90 degrees">
                    </telerik:ImageEditorTool>
                    <telerik:ImageEditorTool CommandName="Flip" ToolTip="Flip Image" IsToggleButton="true">
                </telerik:ImageEditorTool>
 
                <telerik:ImageEditorTool CommandName="FlipVertical" ToolTip="Flip Image Vertically">
                </telerik:ImageEditorTool>
                <telerik:ImageEditorTool CommandName="FlipHorizontal" ToolTip="Flip Image Horizontally">
                </telerik:ImageEditorTool>
                   <telerik:ImageEditorTool CommandName="Zoom" ToolTip="Zoom Image" IsToggleButton="true">
                </telerik:ImageEditorTool>
        <telerik:ImageEditorTool CommandName="ZoomIn" ToolTip="Zoom In">
                </telerik:ImageEditorTool>
                      <telerik:ImageEditorTool CommandName="ZoomOut" ToolTip="Zoom Out">
                </telerik:ImageEditorTool>
                  <telerik:ImageEditorTool CommandName="CustomPrint" ToolTip="Print" ImageUrl="~/Images/PDFViewer/pdf-view-12-print.png" >
                </telerik:ImageEditorTool>
        </telerik:ImageEditorToolGroup>
    </Tools>
                        </telerik:RadImageEditor>
<
script type="text/javascript">
                              Telerik.Web.UI.ImageEditor.CommandList.CustomPrint = function (imageEditor, commandName, args) {
 
                                  var commandText = "CustomPrint";
                                  var commandArgument = "Additional Argument Sent to the Server";
                                  
                                  imageEditor.editImageOnServer(commandName, commandText, commandArgument, callbackFunction)
                               
                              }
 
                              function callbackFunction(clientData, serveData) {
                              }
    </script>
Vessy
Telerik team
 answered on 19 Aug 2013
3 answers
296 views
Hi,

Currently I use the following to ajaxify my RadGrid

<telerik:RadAjaxManagerProxy runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Grid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="LoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

This obviously ajaxifies everything. Is it possible to exclude postback within the FormTemplate of the RadGrid from this?

Within my FormTemplate I have questions which may trigger other questions to be displayed dynamically so I want them to be ajaxified directly (eg answer Yes to one question will postback and create another question).

Basically, I just want the CommandItem and GridButtonColumn's of my RadGrid to use Ajax, is that possible?
Princy
Top achievements
Rank 2
 answered on 19 Aug 2013
2 answers
298 views
Hi dear telerik team
I bought your source code and hardly tried to change the code of CalendarEngines.js file to change the Gregorian calendar to Jalali(Persian) calendar but I failed because I can't understand some of your variable in this code(like num1,num2 and etc in GetDatePart function). So if you have a JavaScript code for Persian calendar can I ask you to send it for me. I really need it.
with great thanks.
Ali
Top achievements
Rank 1
 answered on 19 Aug 2013
2 answers
62 views
Hi Im trying to implement this demo. When I was about to save changes I clicked "Add new record" instead "Save changes" and because of RequireFieldValidator in Unit Price I cant save changes. Now I am forced to add information to new record in order to save changes and not losing the rows I already added. I attached an image with the scenario.

Thanks. 

Julio
Top achievements
Rank 1
 answered on 16 Aug 2013
1 answer
105 views
I can't sort the query so is there a way to sort the list on page load?

The column name is "CYTD".

Sorry if dumb question, I'm a beginner with grid, and couldn't find an answer in search.
Hogen
Top achievements
Rank 1
 answered on 16 Aug 2013
1 answer
101 views
I am trying to build a grid that self-references orders on a Guid ID. Ultimately I want the user to be able to click on a button and turn the self-referencing on and off, but currently I am just working on the self-referencing part. The grid data source is a nettiers TList<order>. The grid shows a hierarchical structure, but the single related order in my test data is shown only as a top level item. The order it should be related to only shows "No child records to display." The search function returns the correct results, and the grid displays the correct results, but the parent and child are not linked. I have double checked that the data IDs are correct.

From the .aspx file
<telerik:RadGrid ID="uxOrderListControl" runat="server"
    OnNeedDataSource="uxOrderListControl_NeedDataSource"
    OnItemCreated="uxOrderListControl_ItemCreated"
    OnColumnCreated="uxOrderListControl_ColumnCreated"
    Width="100%"
    OnItemDataBound="uxOrderListControl_ItemDataBound"
    AutoGenerateColumns="False"
    ClientSettings-Selecting-AllowRowSelect="true"
    AllowMultiRowSelection="true"
    ParentDataKeyNames="ReferralInvoiceId"
    DataKeyNames="OrderId"
    EnableLinqExpressions="false"
    MasterTableView-HierarchyDefaultExpanded="true"
    MasterTableView-HierarchyLoadMode="ServerBind">
    <MasterTableView AllowSorting="true" DataKeyNames="OrderId, ReferralInvoiceId">
        <SelfHierarchySettings ParentKeyName="ReferralInvoiceId" KeyName="OrderId" />
    </MasterTableView>
    <ClientSettings AllowExpandCollapse="true">
        <Selecting AllowRowSelect="True"></Selecting>
        <ClientEvents OnDataBound="uxOrderListControl_OnDataBound" />
    </ClientSettings>
</telerik:RadGrid>
From the code behind file. (run on a Search button click event)
... code to fill parameters and call a search method
 
uxOrderListControl.DataSource = orderList;
uxOrderListControl.DataBind();
Bruce
Top achievements
Rank 1
 answered on 16 Aug 2013
6 answers
200 views
How do I limit users to Check only 8 items in a CheckBox inside  GridTemplateColumn/ItemTemplate either by Client side or server side


<telerik:GridTemplateColumn DataField ="ID" UniqueName="CheckBoxColumn">
                                            <ItemTemplate>     
                                                 <asp:CheckBox ID="CheckBoxStatus" runat="server"  />                                                                                                                                                      
                                                                                                
                                           </ItemTemplate>
                                       </telerik:GridTemplateColumn>

Ebenezer
Top achievements
Rank 1
 answered on 16 Aug 2013
4 answers
139 views
I am putting RadCaptcha in a usercontrol .ascx so I can re-use it in several pages on "my" website.   I put the .ascx with the RadCaptcha on 3 pages.  RadCaptcha image is displayed OK on the first page, but it blanks out after a "refresh", a click on a button, or after a "redirect" from other pages.  The RadCaptcha image does not display at all from the remaining 2 pages.

A work-around is to enable the "Generate New Image" lnk button, but this is kind of strange, making the users generate a new image everytime.

Can I put RadCaptcha in an .ascx and re-use it?  I do not want to put 3 separate RadCaptcha on 3 separate pages, this would make maintenance a pain.  Is this a correct approach to using RadCaptcha?

Here my snippet:

 

 

 

<telerik:RadCaptcha ID="RadCaptcha1" runat="server" ErrorMessage="Enter code below" EnableRefreshImage="true" RegisterWithScriptManager="true"

 

 

 

ValidationGroup="Group" CaptchaTextBoxLabel="" Font-Size="8pt">

 

 

 

</telerik:RadCaptcha>

 

 

 

Thanks for responding.

An
Top achievements
Rank 1
 answered on 16 Aug 2013
8 answers
276 views
I am using Radcaptcha on my Login page and it is showing the image ok.  However, when I clicked on any button on my page, the image no longer appear.  I enabled the refresh linkbutton but this is not very user-friendly.  Is it possible that I programmatically refresh the image on OnLoad event so the image will be displayed every time?

Thanks for responding.
An
Top achievements
Rank 1
 answered on 16 Aug 2013
1 answer
104 views
How do I attaqch the source code - seems like this form will only accept image files?
  
1. I have what amounts to a simple demo online 'excel spreadsheet'
2. table with fixed 7 cols, 7 rows
3. 2 cols are editable, and as a result of editing them, a calculation is performed on 2 other colums
  
I've set up the 'updater' fields and the 'updatEE' fields propertly I believe. 
  
1. It's not even firing for one of the colums. 
2. For the column that's firing, it's firing MULTIPLE RANDOM events, including it's own, 
    and including for the colun that won't fire. 
3. If I've set up my 'updater' and 'updatee' controls correctly, then why is the ENTIRE table flashing each TextChange?
  
This is a very very simple application. I'm intersted in what I"m doing wrong because I think I've
Followed all the fules. 
  
I don't want to post all the code, would rather include a zip - but how do I do that? It seems to only accept images?
Kostadin
Telerik team
 answered on 16 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?