If I use "InsertImage" and insert a logo image (png) into the loaded image, it is not possible to save.
Nothing happens when I click the save button...
<telerik:ImageEditorTool CommandName="InsertImage" IsToggleButton="true" />
Hi ,
I am using <telerik:GridDropDownColumn> inside radgrid of aspnetAjax. I need to disable one column based on selection of item in GridDropDownColumn.
Is there a way to trigger event on selection change in GridDropDownColumn
I couldnt find right answer. can this be achieved? disabling one column inside radgrid based on selection of item inside dropdowncolumn in radgrid?
Regards,
Kiran
How do I save the image after I have made changes using asp:button OnClick="xxx" (post back) to the database?
I have several controls (asp:Panel, asp:Label....) that I need to update after I change the image....
I'm reading my picture using OnImageLoading
Protected Sub RadImageEditor1_ImageLoading(sender As Object, args As ImageEditorLoadingEventArgs)
Dim MyConnection As New SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings("MyConn").ConnectionString)
Dim MyCommand As New SqlCommand("select ID, imagedata from bildbank_data where ID = @ID;", MyConnection)
MyCommand.Parameters.Add(New SqlParameter("@ID", SqlDbType.Int, 4))
MyCommand.Parameters("@ID").Value = lblPickUpId.Text
If MyConnection.State = ConnectionState.Closed Then
MyConnection.Open()
End If
Dim dr1 As SqlDataReader = MyCommand.ExecuteReader
If dr1.Read Then
If Not dr1("imagedata") Is DBNull.Value Then
Dim imagedata As Byte() = dr1("imagedata")
Dim s As New MemoryStream(imagedata.ToArray())
Dim img As New Telerik.Web.UI.ImageEditor.EditableImage(s)
args.Image = img
args.Cancel = True
End If
End If
dr1.Close()
MyCommand.Dispose()
MyConnection.Close()
End Sub
Iam using telerik grid of asp.net
I want to disable column "telerik:GridNumericColumn " in below code snippet on changing "telerik:GridDropDownColumn" I am not aware of how to handle selection change event of GridDropDownColumn on server side and make one column disabled.
Please help in this regard.
Regards, Kiran
Below is the radgrid declaration
<telerik:RadGrid ID="rg" runat="server"
AllowSorting="False"
AutoGenerateColumns="False" Width="730px" Height="263px"
OnUpdateCommand="rg_Update"
OnInsertCommand="rg_Insert"
OnDeleteCommand="rg_Delete"
OnItemCreated="rg_ItemCreated"
OnItemCommand="rg_ItemCommand"
OnSelectedIndexChanged="rg_SelectedIndexChanged"
OnNeedDataSource="rg_NeedDataSource"
OnDataBound="rg_DataBound"
GridLines="None"
CellSpacing="0"
MasterTableView-Caption="Routing Rules">
<ClientSettings AllowKeyboardNavigation="true" EnablePostBackOnRowClick="true">
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView CommandItemDisplay="Top" DataKeyNames="Id,IndexId">
<CommandItemSettings AddNewRecordText="Add New Routing Rule" />
<Columns>
<telerik:GridButtonColumn UniqueName="editButton" ButtonType="ImageButton" CommandName="Edit" FilterControlAltText="Filter editButton column"
HeaderText="Edit" HeaderStyle-Width="34px" ItemStyle-HorizontalAlign="Left" Resizable="false"
ImageUrl="~\Images\pencil.png">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn UniqueName="deleteButton" ButtonType="ImageButton" CommandName="Delete" FilterControlAltText="Filter deleteButton column"
HeaderText="Delete" HeaderStyle-Width="47px" ItemStyle-HorizontalAlign="Left" Resizable="false"
ImageUrl="~\Images\delete.png"
ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this record?">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn Visible="false" DataField="Id" UniqueName="RoutingRuleRuleId" ReadOnly="True" />
<telerik:GridNumericColumn DataField="Priority" UniqueName="RoutingRulePriority" HeaderText="Priority" DataType="System.Int32" MaxLength="3" />
<telerik:GridDropDownColumn
HeaderText="Rule Type" DataField="RoutingRuleDefinitionId" SortExpression="uRuleType" UniqueName="uRuleType"
ColumnEditorID="myRuleTypeDropDownEditor"
ListTextField="Name" ListValueField="Id" EnableEmptyListItem="True"
EmptyListItemValue="0" Visible="False">
</telerik:GridDropDownColumn>
</MasterTableView>
</telerik:RadGrid>
radgrdcount.ExportSettings.FileName = filename radgrdcount.ExportSettings.IgnorePaging = True radgrdcount.ExportSettings.ExportOnlyData = True radgrdcount.ExportSettings.OpenInNewWindow = True radgrdcount.MasterTableView.ExportToExcel()
Hello telerik,
This is my first time using the telerik. I want to know how to add the following judgments in JavaScript or events. And also remove the image which does not fit the criteria at the same time.
For example, I need type in a text box '123' and upload an image called '123.jpg', then it is allowed to upload, because '123'='123'.But if I type in a text box '123' and upload an image called 'abc.jpg', it is not allowed to upload, because '123'<>'abc', then auto remove the image and reselect. how can I do it, please help me.
the following is my code.
<telerik:RadTextBox ID="txtContainer" runat="server" OnTextChanged ="txtContainer_TextChanged" AutoPostBack ="true" ></telerik:RadTextBox>
<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="AsyncUpload1" AllowedFileExtensions="jpeg,jpg,gif,png,bmp" OnFileUploaded="RadAsyncUpload1_FileUploaded1" OnClientValidationFailed="onClientValidationFailed" MaxFileInputsCount="1" > </telerik:RadAsyncUpload>
<script type="text/javascript">
function onClientValidationFailed(sender, args) {
$telerik.$(".ruCancel").parent().remove();
alert("Allowed files extension is jpeg,jpg,gif,png,bmp");
sender.addFileInput();
}
</script>