Hi Telerik Team,
I am having issue, regarding this i have described like below please go-through once.
First Screenshot: This represents given all details with Signature.
Second Screenshot: This represents after Generating required popup the Selected Signature Erased, this is the issue.
please suggest me if there is any solution.
Here is my Code Snippet:
-------------------------------------
.Aspx:
=====
<asp:UpdatePanel ID="upnl1" runat="server">
<ContentTemplate>
<table width="613">
<tr>
<td>
<telerik:RadFilter runat="server" ID="RadFilter1" FilterContainerID="RadGrid1" ShowApplyButton="true"
ApplyButtonText="Apply Filter">
</telerik:RadFilter>
</td>
</tr>
</table>
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" AllowFilteringByColumn="false"
AllowSorting="true" PageSize="10" OnNeedDataSource="RadGrid1_NeedDataSource"
AllowPaging="true" Width="600px" ValidationSettings-ValidationGroup="A" CssClass="grid1"
EnableHeaderContextMenu="true" OnInsertCommand="RadGrid1_InsertCommand" OnUpdateCommand="RadGrid1_UpdateCommand"
OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound">
<EditItemStyle BackColor="Gray" />
<GroupingSettings CaseSensitive="false" ShowUnGroupButton="true" />
<MasterTableView runat="server" AutoGenerateColumns="false" AllowSorting="true" AllowCustomSorting="true"
AllowFilteringByColumn="false" CommandItemDisplay="Top" TableLayout="Auto" DataKeyNames="id">
<CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="true" />
<PagerStyle Mode="NextPrevNumericAndAdvanced" />
<CommandItemStyle CssClass="lnkNormal" />
<AlternatingItemStyle Height="10px" BackColor="#EAEAEA" ForeColor="#424242" Font-Size="12px" />
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" FooterText="EditCommand footer"
EditImageUrl="images/Edit.gif" UniqueName="id" HeaderStyle-Width="40px" />
<telerik:GridTemplateColumn DataField="Signature1" HeaderText="Signature" AllowFiltering="false"
UniqueName="Signature1" FilterControlWidth="35px" HeaderStyle-Width="100px">
<ItemTemplate>
<asp:ImageButton OnClick="img_Click" Height="30" Width="80" runat="server" ImageUrl='<%#"ImageHttpHandler.ashx?ProductID="+Eval("id")%>' />
<%--<telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%#Eval("Signature1") %>'
AutoAdjustImageControlSize="false" Height="30px" Width="70px" ToolTip="signature"
AlternateText="image" ImageUrl="~/images/emptysignature.png"></telerik:RadBinaryImage>--%>
</ItemTemplate>
<InsertItemTemplate>
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" AllowedFileExtensions=".jpg,.jpeg,.png,.gif"
MaxFileInputsCount="1" Width="200px" onclick="shouldConfirm = true;" PostbackTriggers="PerformInsertButton"
Localization-Select="..." />
<asp:Label ID="lblupload1" runat="server" Visible="false" CssClass="error"></asp:Label>
</InsertItemTemplate>
<EditItemTemplate>
<telerik:RadAsyncUpload ID="RadAsyncUpload2" runat="server" AllowedFileExtensions=".jpg,.jpeg,.png,.gif"
MaxFileInputsCount="1" Width="200px" onclick="shouldConfirm=true;"
Localization-Select="...">
</telerik:RadAsyncUpload>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<EditFormSettings InsertCaption="Create Impound Signatures" CaptionDataField="ServiceID"
CaptionFormatString="Edit Impound Signatures">
<FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
<FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
<FormStyle Width="150%" BackColor="WhiteSmoke" />
<EditColumn UniqueName="GridID" ButtonType="ImageButton" CancelImageUrl="images/Cancel.gif"
UpdateImageUrl="images/update.gif" InsertImageUrl="images/update.gif">
</EditColumn>
<FormTableButtonRowStyle HorizontalAlign="Center" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
</EditFormSettings>
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" EnableRowHoverStyle="true">
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" ScrollHeight="250px"
FrozenColumnsCount="1"></Scrolling>
<Selecting AllowRowSelect="true" />
<Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="true"
ClipCellContentOnResize="true" EnableRealTimeResize="false" AllowResizeToFit="false" />
</ClientSettings>
<SelectedItemStyle CssClass="rgSelectedRow"></SelectedItemStyle>
</telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
.Aspx.cs:
======
RadAsyncUpload RadAsyncUpload1 = (RadAsyncUpload)item.FindControl("RadAsyncUpload1") as RadAsyncUpload;
if (local_dts.Tables[0].Rows[i]["DefaultSign"].ToString()=="Yes")
{
count = 1;
RadWindowManager1.RadAlert("Default sign Already Selected.If u want to choose another please uncheck this", 330, 100, "TaxImpound", "");
}
I am having issue, regarding this i have described like below please go-through once.
First Screenshot: This represents given all details with Signature.
Second Screenshot: This represents after Generating required popup the Selected Signature Erased, this is the issue.
please suggest me if there is any solution.
Here is my Code Snippet:
-------------------------------------
.Aspx:
=====
<asp:UpdatePanel ID="upnl1" runat="server">
<ContentTemplate>
<table width="613">
<tr>
<td>
<telerik:RadFilter runat="server" ID="RadFilter1" FilterContainerID="RadGrid1" ShowApplyButton="true"
ApplyButtonText="Apply Filter">
</telerik:RadFilter>
</td>
</tr>
</table>
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" AllowFilteringByColumn="false"
AllowSorting="true" PageSize="10" OnNeedDataSource="RadGrid1_NeedDataSource"
AllowPaging="true" Width="600px" ValidationSettings-ValidationGroup="A" CssClass="grid1"
EnableHeaderContextMenu="true" OnInsertCommand="RadGrid1_InsertCommand" OnUpdateCommand="RadGrid1_UpdateCommand"
OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound">
<EditItemStyle BackColor="Gray" />
<GroupingSettings CaseSensitive="false" ShowUnGroupButton="true" />
<MasterTableView runat="server" AutoGenerateColumns="false" AllowSorting="true" AllowCustomSorting="true"
AllowFilteringByColumn="false" CommandItemDisplay="Top" TableLayout="Auto" DataKeyNames="id">
<CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="true" />
<PagerStyle Mode="NextPrevNumericAndAdvanced" />
<CommandItemStyle CssClass="lnkNormal" />
<AlternatingItemStyle Height="10px" BackColor="#EAEAEA" ForeColor="#424242" Font-Size="12px" />
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" FooterText="EditCommand footer"
EditImageUrl="images/Edit.gif" UniqueName="id" HeaderStyle-Width="40px" />
<telerik:GridTemplateColumn DataField="Signature1" HeaderText="Signature" AllowFiltering="false"
UniqueName="Signature1" FilterControlWidth="35px" HeaderStyle-Width="100px">
<ItemTemplate>
<asp:ImageButton OnClick="img_Click" Height="30" Width="80" runat="server" ImageUrl='<%#"ImageHttpHandler.ashx?ProductID="+Eval("id")%>' />
<%--<telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%#Eval("Signature1") %>'
AutoAdjustImageControlSize="false" Height="30px" Width="70px" ToolTip="signature"
AlternateText="image" ImageUrl="~/images/emptysignature.png"></telerik:RadBinaryImage>--%>
</ItemTemplate>
<InsertItemTemplate>
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" AllowedFileExtensions=".jpg,.jpeg,.png,.gif"
MaxFileInputsCount="1" Width="200px" onclick="shouldConfirm = true;" PostbackTriggers="PerformInsertButton"
Localization-Select="..." />
<asp:Label ID="lblupload1" runat="server" Visible="false" CssClass="error"></asp:Label>
</InsertItemTemplate>
<EditItemTemplate>
<telerik:RadAsyncUpload ID="RadAsyncUpload2" runat="server" AllowedFileExtensions=".jpg,.jpeg,.png,.gif"
MaxFileInputsCount="1" Width="200px" onclick="shouldConfirm=true;"
Localization-Select="...">
</telerik:RadAsyncUpload>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<EditFormSettings InsertCaption="Create Impound Signatures" CaptionDataField="ServiceID"
CaptionFormatString="Edit Impound Signatures">
<FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
<FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
<FormStyle Width="150%" BackColor="WhiteSmoke" />
<EditColumn UniqueName="GridID" ButtonType="ImageButton" CancelImageUrl="images/Cancel.gif"
UpdateImageUrl="images/update.gif" InsertImageUrl="images/update.gif">
</EditColumn>
<FormTableButtonRowStyle HorizontalAlign="Center" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
</EditFormSettings>
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" EnableRowHoverStyle="true">
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" ScrollHeight="250px"
FrozenColumnsCount="1"></Scrolling>
<Selecting AllowRowSelect="true" />
<Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="true"
ClipCellContentOnResize="true" EnableRealTimeResize="false" AllowResizeToFit="false" />
</ClientSettings>
<SelectedItemStyle CssClass="rgSelectedRow"></SelectedItemStyle>
</telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
.Aspx.cs:
======
RadAsyncUpload RadAsyncUpload1 = (RadAsyncUpload)item.FindControl("RadAsyncUpload1") as RadAsyncUpload;
if (local_dts.Tables[0].Rows[i]["DefaultSign"].ToString()=="Yes")
{
count = 1;
RadWindowManager1.RadAlert("Default sign Already Selected.If u want to choose another please uncheck this", 330, 100, "TaxImpound", "");
}