This is a migrated thread and some comments may be shown as answers.

[Solved] Different window skin than grid's

2 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
aykut
Top achievements
Rank 1
aykut asked on 05 Apr 2013, 05:24 PM
Hi friends,

I want my grid to use Skin="Transparent" but my popup edit form's window to use  Skin="Glow".

how can I achieve this ? thanks...

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Apr 2013, 04:31 AM
Hi,

Try the following code.
aspx:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource2" AutoGenerateColumns="false" Skin="Transparent">
 <MasterTableView>
 <EditFormSettings EditFormType="Template">
   <FormTemplate>
         <telerik:RadWindow VisibleOnPageLoad="true" ID="RadWindow1" runat="server" Skin="Glow" EnableEmbeddedSkins="false"></telerik:RadWindow>
   </FormTemplate>
 </EditFormSettings>
</MasterTableView>
</telerik:RadGrid>

Thanks,
Shinu
0
aykut
Top achievements
Rank 1
answered on 08 Apr 2013, 10:15 AM
thanks for answer but:
1- radgrid already open edit form window
2- when I insert your code in form template it opens additional window, which is expected behaviour
3- when I inser "my form template" inside your window code message says:
Expression of type 'Telerik.Web.UI.SingleTemplateContainer' can never be of type 'Telerik.Web.UI.GridEditFormInsertItem'.
which is meaningful.

still could not find solution, sorry.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
      AllowAutomaticUpdates="True" DataSourceID="SqlDataSource1" GridLines="None" Width="1280px"
      AllowSorting="True" AutoGenerateColumns="False" Skin="Transparent"
      CellSpacing="0">
      <ClientSettings>
          <Selecting CellSelectionMode="None"></Selecting>
      </ClientSettings>
      <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ID" DataSourceID="SqlDataSource1" EditMode="PopUp" 
          HorizontalAlign="NotSet">
          <CommandItemSettings AddNewRecordText="  Add new" RefreshText="  Refresh" />
          <RowIndicatorColumn Visible="False">
              <HeaderStyle Width="20px"></HeaderStyle>
          </RowIndicatorColumn>
          <ExpandCollapseColumn Visible="False" Resizable="False">
              <HeaderStyle Width="20px"></HeaderStyle>
          </ExpandCollapseColumn>
          <Columns>
........ colums are here
   </Columns>
          <EditFormSettings EditFormType="Template" PopUpSettings-Width="400px" PopUpSettings-Height="300px" >
              <EditColumn UniqueName="EditCommandColumn1" CancelText="Cancel" EditText="Update"
                  InsertText="Add" UpdateText="Save" CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif"
                  InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif">
              </EditColumn>
 
 
<table cellpadding="2" cellspacing="3">
                      <tr>
                          <td>Name</td>
                          <td><asp:TextBox ID="txtad" runat="server" Text='<%# bind("ad") %>'></asp:TextBox></td>
                          <td></td>
                          <td></td>
                          <td></td>
                      </tr>
                      <tr>
                          <td valign="middle">
                              <asp:Button ID="Button1" runat="server" Height="26px" Width="81px" CommandName='<%# Iif (TypeOf  Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'
                                  Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Add", "Save") %>' />
                          </td>
                          <td>
                              <asp:Button ID="Button2" runat="server" CausesValidation="False" Text="Cancel" CommandName="Cancel"
                                  Height="26px" Width="81px" />
                          </td>
                          <td></td>
                          <td></td>
                      </tr>
</table>
              <FormTemplate>
</ContentTemplate>
                  </telerik:RadWindow>
              </FormTemplate>
              <PopUpSettings Modal="True" ScrollBars="None" ></PopUpSettings>
          </EditFormSettings>
      </MasterTableView>
      <FilterMenu EnableTheming="True">
          <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
      </FilterMenu>
      <HeaderContextMenu EnableEmbeddedSkins="False" CssClass="GridContextMenu GridContextMenu_MyRedSkin">
      </HeaderContextMenu>
  </telerik:RadGrid>

 
Tags
Grid
Asked by
aykut
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
aykut
Top achievements
Rank 1
Share this question
or