Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
460 views
Hi,

I have an ImageEditor which I would one to allow user to draw on the image and save it as a new image.
But with my below code, once I click on the pencil, it seems like the pencil is not working as I am unable to draw.
I only have code on the aspx page as I do not know what code to put in aspx.cs page as the demo did not put any code.
Can anyone help and let me know how can I do the above using ImageEditor?

Thank you

--ASPX--
<telerik:RadImageEditor ID="RadImageEditor1" runat="server" ImageUrl="..\image\canvas.png"
CanvasMode="Yes" >
<Tools>
<telerik:ImageEditorToolGroup>
<telerik:ImageEditorTool CommandName="Save" />
<telerik:ImageEditorTool CommandName="Undo" />
<telerik:ImageEditorTool CommandName="Pencil" IsToggleButton="true" />
</telerik:ImageEditorToolGroup>
</Tools>
</telerik:RadImageEditor>
Marin Bratanov
Telerik team
 answered on 22 Jun 2016
8 answers
481 views
Hy fellas,

I need to add a button to a gridview like an insert or delete button. This button will be called "Copy and Paste" and whenever I click this button the same line of the gridview (with the same data) will be added as a new record to the gridview. How can I achive this?

Thanks a lot
Eyup
Telerik team
 answered on 22 Jun 2016
2 answers
133 views

Hi, I have a RadFilter that I am trying to add an expression to on the form load. The idea is that when someone clicks a hyperlink on a different page, they are redirected to a different page and the radfilter is set up for them with the data they clicked (in this specific case, it would Select Amends and put in the appropriate value.

I just want to mention that this code works exactly how I need it to when It is inside of a button click event on the page that gets redirected to.

The following is called in my page_load:

        pnlSearch.Visible = False
        pnlAdvanced.Visible = True

        Dim amendsByExpression = New RadFilterContainsFilterExpression("Amends")
        amendsByExpression.Value = Session("Search_Text")
        rfAdvancedSearch.RootGroup.AddExpression(amendsByExpression)
        rfAdvancedSearch.FireApplyCommand()

 

Why does the code above work when its encapsulated inside of a linkbutton click event, but not in the page load? How can I make it work in the Page Load?

Eyup
Telerik team
 answered on 22 Jun 2016
1 answer
274 views

Hello,

I would like to use the RadNumericTextBox as a way to change the quantity of items in a cart.

How can pass the OrderItemId to the back-end C# for logic to happen?

 

<telerik:RadNumericTextBox OnTextChanged="QuantityChanged"  runat="server" Width="30" MinValue="1"
                                 Visible='<%# AllowEditQuantity(Eval("Item.ProdType"), Eval("Show.EventType")) %>'
                                 Value='<%# decimal.Parse(Eval("Item.Quantity").ToString())%>'
                                 CommandArgument='<%#Eval("Item.OrderItemId") %>'>
                                 <ClientEvents OnValueChanged="squareValue"/>
                                <NumberFormat DecimalDigits="0" />
                             </telerik:RadNumericTextBox>

 

Viktor Tachev
Telerik team
 answered on 22 Jun 2016
1 answer
169 views

Is there a way to move the drop down arrow in a RadGrid GridBoundColumn from the first position to the last position in the row? I don't even see where that is generated in the RadGrid code.

Here is the code

<telerik:RadGrid Skin="CustomSkin" EnableEmbeddedSkins="False" ID="dgSearchUsers"
runat="server" EnableAJAX="True" AllowFilteringByColumn="False" AllowSorting="True"
OnNeedDataSource="dgSearchUsers_NeedDataSource" AutoGenerateColumns="False">
<MasterTableView DataKeyNames="UserId" HierarchyLoadMode="Client" AllowPaging="True" PageSize="25">
<PagerStyle HorizontalAlign="Center" CssClass="grdPagerStyle" Mode="NextPrevAndNumeric" >
</PagerStyle>
<DetailTables>
<telerik:GridTableView AutoGenerateColumns="false" DataKeyNames="PlayerId" Name="PlayerDetails"
Width="96%" AllowPaging="False" AllowFilteringByColumn="false">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="UserId" MasterKeyField="UserId"></telerik:GridRelationFields>
</ParentTableRelation>
<Columns>
<telerik:GridBoundColumn HeaderText="Player First Name" DataField="PlayerFirstName"
UniqueName="PlayerFirstName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Player Last Name" DataField="PlayerLastName"
UniqueName="PlayerLastName">
</telerik:GridBoundColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridTemplateColumn HeaderText="" UniqueName="Select" AllowFiltering="False">
<ItemTemplate>
<asp:CheckBox ID="chkSelect" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"IsSelected")%>'>
</asp:CheckBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn HeaderText="User First Name" DataField="UserFirstName" UniqueName="UserFirstName">
<ItemStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="User Last Name" DataField="UserLastName" UniqueName="UserLastName">
<ItemStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="User Name" DataField="UserName" UniqueName="UserName">
<ItemStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Email" DataField="Email" UniqueName="Email">
<ItemStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn Display="false" HeaderText="UserId" DataField="UserId" UniqueName="UserId">

</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<HeaderStyle Width="200px" />
<GroupingSettings CaseSensitive="false" />
<ClientSettings AllowExpandCollapse="True">
<Resizing EnableRealTimeResize="false" AllowColumnResize="false"></Resizing>
</ClientSettings>
</telerik:RadGrid>

 

Eyup
Telerik team
 answered on 22 Jun 2016
1 answer
213 views
I am making an SVG map with mouseover on provinces showing reports and visualized data. One of it was a Donut Chart, this is not a big deal of data we're loading so I think this is not the cause and the overall experience is not laggy so I think it is by design by Telerik for it to have 1 sec delay before load transition animation. I need to display the donut chart faster without delay because of the nature of my project without turning off the transition animation. Is it possible?
Stamo Gochev
Telerik team
 answered on 22 Jun 2016
2 answers
705 views
Greetings,

I have a problem in the following code:

<telerik:GridTemplateColumn>
    <ItemTemplate>
        <asp:HiddenField ID="HiddenFieldIdParticipant" runat="server" Value='<%#Eval("idUtilisateur")%>' />
    </ItemTemplate>
</telerik:GridTemplateColumn>


code behind:

HiddenField HiddenFieldIdParticipant = GridDisplayOldRDV.FindControl("HiddenFieldIdParticipant") as HiddenField;


This is not working i don't get anything in my hiddenfield
Does anyone know why ?
Thx in advance!
ali haririan
Top achievements
Rank 1
 answered on 21 Jun 2016
1 answer
139 views

Hi,

We've used default skin, we've requirement to change its default arrow image with search image. Currently same classes are applied on all comboboxes when we change arrow image class than these changes are affected on all comboboxes. We need to change arrow image only in one combobox by using its default skin. How we change that like showing in attached snapshot? Any example would be appreciated.

 

Thanks

Peter Milchev
Telerik team
 answered on 21 Jun 2016
1 answer
196 views
How could I hide RadEditor toolbar by custom button clicked and show RadEditor toolbar by RadEditor clicked, when EditType is set to "Inline".
Ianko
Telerik team
 answered on 21 Jun 2016
1 answer
83 views

Hi, I'm trying to highlight a week on mouse over (and not a single day, as it is now), and I would do it with javascript.

But it seems that RadDatePicker and Calendar does not provide the OnMouseOver method. Suggestions?

 

 

Konstantin Dikov
Telerik team
 answered on 21 Jun 2016
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?