Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
305 views
I am creating a simple pivot grid but the header alignment has glitch. Anyone can help? Please also see attachments.

Update: my code will refresh the pivot grid data each time the user chooses a user information by a rad combo box. For the first selection, the layout displays incorrectly. Afterward, everything is good. First time rendering does not work properly,

Code:
<telerik:RadPivotGrid runat="server" ID="RadPivotGrid1" Visible="false" ShowDataHeaderZone="false" ShowRowHeaderZone="false" ShowColumnHeaderZone="false" AllowFiltering="false"
            ShowFilterHeaderZone="false" AllowSorting="false" Skin="Outlook" AggregatesPosition="Rows" OnCellDataBound="RadPivotGrid1_CellDataBound">
            <Fields>
                <telerik:PivotGridRowField DataField="CodeGroup1" CellStyle-Font-Bold="true" ZoneIndex="0">
                </telerik:PivotGridRowField>
                <telerik:PivotGridRowField DataField="CodeGroup2" CellStyle-BackColor="AliceBlue" ZoneIndex="1">
                </telerik:PivotGridRowField>
                <telerik:PivotGridColumnField DataField="Status"></telerik:PivotGridColumnField>
                <telerik:PivotGridColumnField DataField="OnOffSite"></telerik:PivotGridColumnField>
                <telerik:PivotGridAggregateField DataField="DataSource" Aggregate="Count">
                </telerik:PivotGridAggregateField>
            </Fields>
        </telerik:RadPivotGrid>

CS:
RadPivotGrid1.DataSource = from cpd in context.CDM_ProcedureDatas<br>
                                   where cpd.StudentID.Equals(studentId) && cpd.Status.Equals("Completed") && cpd.Date != null && cpd.CodeGroup1 != null<br>
                                   select cpd;
Venelin
Telerik team
 answered on 06 Jun 2014
1 answer
150 views


 I have two combo box on my page one as pagination combo box and another one is for filtering results in rad grid both are resides in same rad grid.

radcombobox not working inside radgrid for first time.

But it starts working as expected after post back
Shinu
Top achievements
Rank 2
 answered on 06 Jun 2014
1 answer
129 views
When I add fitering to my grid then the popup edit form stops working. It looks like OnPopUpShowing is now longer getting called. Anyone seen this happening?

001.<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LocationTerms.ascx.cs" Inherits="UnderwritingPlatform.Ui.Products.OnshoreEnergyCommon.Controls.LocationTerms" %>
002.<%@ Import Namespace="UnderwritingPlatform.Ui.Logic.OnshoreEnergyCommon.Models.Pricing" %>
003. 
004.<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
005. 
006.<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
007.    <script type="text/javascript">
008.        function RowDblClick(sender, eventArgs) {
009.            sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
010.        }
011.        var popUp;
012.        function PopUpShowing(sender, eventArgs) {
013.            popUp = eventArgs.get_popUp();
014.            var gridWidth = sender.get_element().offsetWidth;
015.            var gridHeight = sender.get_element().offsetHeight;
016.            var popUpWidth = popUp.style.width.substr(0, popUp.style.width.indexOf("px"));
017.            var popUpHeight = popUp.style.height.substr(0, popUp.style.height.indexOf("px"));
018.            popUp.style.left = ((gridWidth - popUpWidth) / 2 + sender.get_element().offsetLeft).toString() + "px";
019.            popUp.style.top = ((gridHeight - popUpHeight) / 2 + sender.get_element().offsetTop).toString() + "px";
020.            ApplyUiStyles();
021.        }
022.    </script>
023.</telerik:RadCodeBlock>
024. 
025.<telerik:RadAjaxManagerProxy ID="RadAjaxManager" runat="server">
026.    <AjaxSettings>
027.        <telerik:AjaxSetting AjaxControlID="RadGrid1">
028.            <UpdatedControls>
029.                <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl>
030.            </UpdatedControls>
031.        </telerik:AjaxSetting>
032.    </AjaxSettings>
033.</telerik:RadAjaxManagerProxy>
034. 
035.<telerik:RadGrid ID="RadGrid1"
036.    runat="server"
037.    CssClass="RadGrid"
038.    GridLines="None"
039.    AllowPaging="True"
040.    PageSize="20"
041.    AllowSorting="True"
042.    AutoGenerateColumns="False"
043.    ShowStatusBar="true"
044.    AllowAutomaticDeletes="True"
045.    AllowAutomaticInserts="True"
046.    AllowAutomaticUpdates="True"
047.    OnNeedDataSource="GetLocations"
048.    OnItemUpdated="RadGrid1_ItemUpdated"
049.    OnItemCommand="RadGrid1_ItemCommand"
050.    OnPreRender="RadGrid1_PreRender" AllowFilteringByColumn="True" >
051.    <MasterTableView CommandItemDisplay="None" EditMode="PopUp" DataKeyNames="Id" >
052. 
053.         <ColumnGroups>
054.            <telerik:GridColumnGroup HeaderText="Location Information" Name="LocationInformation" HeaderStyle-HorizontalAlign="Center" />
055.            <telerik:GridColumnGroup HeaderText="Insured Values" Name="InsuredValues" HeaderStyle-HorizontalAlign="Center" />
056.            <telerik:GridColumnGroup HeaderText="Loss Distribution Estimates" Name="LossDistributionEstimates" HeaderStyle-HorizontalAlign="Center" />
057.            <telerik:GridColumnGroup HeaderText="RA Rating" Name="RaRating" HeaderStyle-HorizontalAlign="Center" />
058.        </ColumnGroups>
059. 
060.        <Columns>
061.            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"  ColumnGroupName="LocationInformation" >
062.            </telerik:GridEditCommandColumn>
063.            <telerik:GridBoundColumn UniqueName="ID" HeaderText="ID" DataField="Id" ColumnGroupName="LocationInformation" AllowFiltering="False">
064.                <HeaderStyle Width="20px"></HeaderStyle>
065.            </telerik:GridBoundColumn>
066.            <telerik:GridBoundColumn UniqueName="LocationName" HeaderText="Location Name" DataField="LocationName" ColumnGroupName="LocationInformation" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
067.            </telerik:GridBoundColumn>
068.            <telerik:GridBoundColumn  UniqueName="RatingSegment" HeaderText="" DataField="RatingSegment" ColumnGroupName="LocationInformation" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
069.            </telerik:GridBoundColumn>
070.            <telerik:GridBoundColumn UniqueName="Occupancy" HeaderText="" DataField="Occupancy" ColumnGroupName="LocationInformation" FilterControlWidth="30px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
071.            </telerik:GridBoundColumn>
072.            <telerik:GridBoundColumn UniqueName="PdTivRounded" HeaderText="PD TIV" DataField="PdTivRounded" DataFormatString="{0:N1}" ColumnGroupName="InsuredValues" FilterControlWidth="30px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
073.            </telerik:GridBoundColumn>
074.            <telerik:GridBoundColumn UniqueName="BiRateableValueRounded" HeaderText="BI Rateable Value" DataField="BiRateableValueRounded" DataFormatString="{0:N1}" FilterControlWidth="30px" ColumnGroupName="InsuredValues" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="False">
075.            </telerik:GridBoundColumn>
076.            <telerik:GridBoundColumn UniqueName="TotalTivRounded" HeaderText="Total TIV" DataField="TotalTivRounded" DataFormatString="{0:N1}" FilterControlWidth="40px" ColumnGroupName="InsuredValues" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="False">
077.            </telerik:GridBoundColumn>
078.            <telerik:GridBoundColumn UniqueName="PmlPd" HeaderText="PML PD" DataField="PmlPd" DataFormatString="{0:N0}" ColumnGroupName="LossDistributionEstimates" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
079.            </telerik:GridBoundColumn>
080.            <telerik:GridBoundColumn UniqueName="PmlBi" HeaderText="PML BI" DataField="PmlBi" DataFormatString="{0:N0}" ColumnGroupName="LossDistributionEstimates" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
081.            </telerik:GridBoundColumn>
082.            <telerik:GridBoundColumn UniqueName="EmlPd" HeaderText="EML PD" DataField="EmlPd" DataFormatString="{0:N0}" ColumnGroupName="LossDistributionEstimates" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
083.            </telerik:GridBoundColumn>
084.            <telerik:GridBoundColumn UniqueName="EmlBi" HeaderText="EML BI" DataField="EmlBi" DataFormatString="{0:N0}" ColumnGroupName="LossDistributionEstimates" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
085.            </telerik:GridBoundColumn>
086.            <telerik:GridBoundColumn UniqueName="RmProcRaRating" HeaderText="PD" DataField="RmProcRaRating" DataFormatString="{0:N0}" FilterControlWidth="30px" ColumnGroupName="RaRating" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
087.            </telerik:GridBoundColumn>
088.            <telerik:GridBoundColumn UniqueName="DesignConstrRaRating" HeaderText="BI" DataField="DesignConstrRaRating" FilterControlWidth="30px" DataFormatString="{0:N0}" ColumnGroupName="RaRating" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
089.            </telerik:GridBoundColumn>
090.            <telerik:GridButtonColumn ButtonType="LinkButton" HeaderText="Total" DataTextField="TotalRaRating"  DataTextFormatString="{0:N0}" ColumnGroupName="RaRating"  AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false"/>
091.        </Columns>
092.        <EditFormSettings EditFormType="Template" CaptionFormatString="Location Terms Detail">
093.            <PopUpSettings Modal="True" Width="800px" Height="800px" ShowCaptionInEditForm="true"></PopUpSettings>
094.            <FormTemplate>
095. 
096.                <div style="padding: 20px;">
097. 
098.                    <label class="popUpLabelTitle">Location Information</label>
099.                    <div class="twoColumnLeft">
100.                        <div>
101.                            <asp:Label ID="lblLocationName" runat="server" CssClass="standardLabel200" Text="Location name: "></asp:Label>
102.                            <asp:Label ID="lblLocationNameValue" runat="server" Text='<%# Bind("LocationName") %>'></asp:Label>
103.                        </div>
104. 
105.                        <div>
106.                            <asp:Label ID="lblRatingSegment" runat="server" CssClass="standardLabel200" Text="Generator Type: "></asp:Label>
107.                            <asp:Label ID="lblRatingSegmentValue" runat="server" Text='<%# Bind("RatingSegment") %>'></asp:Label>
108.                        </div>
109.                    </div>
110.                    <div style="float: left;">
111.                        <div>
112.                            <asp:Label ID="lblOccupancy" runat="server" CssClass="standardLabel200" Text="Generator Detail: "></asp:Label>
113.                            <asp:Label ID="lblOccupancyValue" runat="server" Text='<%# Bind("Occupancy") %>'></asp:Label>
114.                        </div>
115.                    </div>
116. 
117.                    <label class="popUpLabelTitle">Insured Values</label>
118.                    <div class="twoColumnLeft">
119.                        <div>
120.                            <asp:Label ID="lblPdTiv" runat="server" CssClass="standardLabel200" Text="PD TIV: "></asp:Label>
121.                            <asp:Label ID="lblPdTivValue" runat="server" CssClass="autoFormat" Text='<%# Bind("PdTiv") %>'></asp:Label>
122.                        </div>
123. 
124.                        <div>
125.                            <asp:Label ID="lblBiRateableValue" runat="server" CssClass="standardLabel200" Text="Bi Rateable Value: "></asp:Label>
126.                            <asp:Label ID="lblBiRateableValueValue" runat="server" CssClass="autoFormat" Text='<%# Bind("BiRateableValue") %>'></asp:Label>
127.                        </div>
128.                    </div>
129.                    <div style="float: left;">
130.                        <div>
131.                            <asp:Label ID="lblTotalTiv" runat="server" CssClass="standardLabel200" Text="Total TIV: "></asp:Label>
132.                            <asp:Label ID="lblTotalTivValue" runat="server" CssClass="autoFormat" Text='<%# Bind("TotalTiv") %>'></asp:Label>
133.                        </div>
134.                    </div>
135. 
136.                    <label class="popUpLabelTitle">RA Rating</label>
137.                    <div class="twoColumnLeft">
138.                        <div>
139.                            <asp:Label ID="lblRmProcRaRating" runat="server" CssClass="standardLabel200" Text="RM & Proc: "></asp:Label>
140.                            <asp:TextBox ID="txtRmProcRaRating" CssClass="autoFormat" runat="server" Text='<%# Bind("RmProcRaRating") %>'></asp:TextBox>
141.                        </div>
142. 
143.                        <div>
144.                            <asp:Label ID="lblDesignConstrRaRating" runat="server" CssClass="standardLabel200" Text="Design & Constr: "></asp:Label>
145.                            <asp:TextBox ID="txtDesignConstrRaRating" CssClass="autoFormat" runat="server" Text='<%# Bind("DesignConstrRaRating") %>'></asp:TextBox>
146.                        </div>
147.                    </div>
148.                    <div style="float: left;">
149.                         
150.                         <div>
151.                            <asp:Label ID="lblCorporateResilience" runat="server" CssClass="standardLabel200" Text="Corporate Resilience: "></asp:Label>
152.                            <asp:TextBox ID="lblCorporateResilienceValue" CssClass="autoFormat" runat="server" Text='<%# Bind("CorporateResilience") %>'></asp:TextBox>
153.                        </div>
154.                        <div>
155.                            <asp:Label ID="lblTotalRaRating" runat="server" CssClass="standardLabel200" Text="Total: "></asp:Label>
156.                            <asp:TextBox ID="txtTotalRaRating" CssClass="autoFormat" runat="server" Text='<%# Bind("TotalRaRating") %>'></asp:TextBox>
157.                        </div>
158.                    </div>
159. 
160.                    <label class="popUpLabelTitle">Loss Distribution Estimates</label>
161. 
162.                    <div class="twoColumnLeft">
163.                        <div>
164.                            <asp:Label ID="lblSelectedPmlPd" runat="server" CssClass="standardLabel200" Text="Selected  PMLs PD: "></asp:Label>
165.                            <asp:TextBox ID="txtSelectedPmlPd" CssClass="autoFormat" runat="server" Text='<%# Bind("PmlPd") %>'></asp:TextBox>
166.                        </div>
167. 
168.                        <div>
169.                            <asp:Label ID="lblSelectedPmlBi" runat="server" CssClass="standardLabel200" Text="Selected  PMLs BI: "></asp:Label>
170.                            <asp:TextBox ID="txtSelectedPmlBi" CssClass="autoFormat" runat="server" Text='<%# Bind("PmlBi") %>'></asp:TextBox>
171.                        </div>
172.                    </div>
173.                    <div style="float: left;">
174.                        <div>
175.                            <asp:Label ID="lblSelectedEMLPd" runat="server" CssClass="standardLabel200" Text="Selected  EMLs PD: "></asp:Label>
176.                            <asp:TextBox ID="txtSelectedEMLPd" CssClass="autoFormat" runat="server" Text='<%# Bind("EmlPd") %>'></asp:TextBox>
177.                        </div>
178. 
179.                        <div>
180.                            <asp:Label ID="lblSelectedEMLBi" runat="server" CssClass="standardLabel200" Text="Selected  EMLs BI: "></asp:Label>
181.                            <asp:TextBox ID="txtSelectedEMLBi" CssClass="autoFormat" runat="server" Text='<%# Bind("EmlBi") %>'></asp:TextBox>
182.                        </div>
183.                    </div>
184. 
185.                    <label class="popUpLabelTitle">Location Coverage</label>
186. 
187.                    <div class="twoColumnLeft">
188.                        <div>
189.                            <asp:Label ID="Label3" runat="server" CssClass="standardLabel200" Text="BI Indemnity Basis "></asp:Label>
190.                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("BiIndemnityBasis") %>'></asp:TextBox>
191.                        </div>
192.                        <div>
193.                            <asp:Label ID="Label4" runat="server" CssClass="standardLabel200" Text="BI Indemnity Period (Mths): "></asp:Label>
194.                            <asp:TextBox ID="TextBox2" Text='<%# Bind("BiIndemnityPeriod") %>' runat="server"></asp:TextBox>
195.                        </div>
196.                        <div>
197.                            <asp:Label ID="Label5" runat="server" CssClass="standardLabel200" Text="BI Indemnity Value Basis: "></asp:Label>
198.                            <asp:TextBox ID="TextBox3" Text='<%# Bind("BiIndemnityValueBasis") %>' runat="server"></asp:TextBox>
199.                        </div>
200.                    </div>
201.                    <div style="float: left">
202.                        <div>
203.                            <asp:Label ID="Label6" runat="server" CssClass="standardLabel200" Text="BI Sub-limit: "></asp:Label>
204.                            <asp:TextBox ID="TextBox4" CssClass="autoFormat" runat="server" Text='<%# Bind("BiSubLimit") %>'></asp:TextBox>
205.                        </div>
206.                        <div>
207.                            <asp:Label ID="Label7" runat="server" CssClass="standardLabel200" Text="MB Sub-limit: "></asp:Label>
208.                            <asp:TextBox ID="TextBox5" CssClass="autoFormat" runat="server" Text='<%# Bind("MbSubLimit") %>'></asp:TextBox>
209.                        </div>
210.                        <div>
211.                            <asp:Label ID="Label8" runat="server" CssClass="standardLabel200" Text="CBI/DEE Sub-limit: "></asp:Label>
212.                            <asp:TextBox ID="TextBox6" CssClass="autoFormat" runat="server" Text='<%# Bind("CbiSubLimit") %>'></asp:TextBox>
213.                        </div>
214.                        <div>
215.                            <asp:Label ID="Label9" runat="server" CssClass="standardLabel200" Text="Power Extra Expense: "></asp:Label>
216.                            <asp:TextBox ID="TextBox7" CssClass="autoFormat" runat="server" Text='<%# Bind("PowerExtraSubLimit") %>'></asp:TextBox>
217.                        </div>
218.                        <div>
219.                            <asp:Label ID="Label10" runat="server" CssClass="standardLabel200" Text='Replacement Power Included:'></asp:Label>
220.                            <asp:RadioButtonList runat="server" ID="radiotbutton1" RepeatLayout="Flow" RepeatDirection="Horizontal">
221.                                <asp:ListItem Text="Yes" Value="Yes" />
222.                                <asp:ListItem Text="No" Value="No" />
223.                            </asp:RadioButtonList>
224.                        </div>
225.                    </div>
226. 
227.                    <label class="popUpLabelTitle">Machine Component Deductibles</label>
228. 
229.                    <asp:Repeater ID="rptDeductibles" runat="server" DataSource='<%# (List<LocationTermsComponentDeductibleViewModel>)DataBinder.Eval( Container, "DataItem.ComponentDeductibles" ) %>'>
230. 
231.                        <HeaderTemplate>
232.                            <table class="popupTable">
233.                                <tr>
234.                                    <th></th>
235.                                    <th> PD</th>
236.                                    <th> BI (Days)</th>
237.                                    <th> MB PD</th>
238.                                    <th> MB BI (Days)</th>
239.                                    <th> CBI (Days)</th>
240.                                </tr>
241.                        </HeaderTemplate>
242. 
243. 
244.                        <ItemTemplate>
245.                            <tr>
246.                                <th><%# Eval("Name") %></th>
247.                                <td>
248.                                    <asp:TextBox ID="TextBox8" runat="server" CssClass="autoFormat" Text='<%# Bind("Pd") %>'></asp:TextBox></td>
249.                                <td>
250.                                    <asp:TextBox ID="TextBox9" runat="server" CssClass="autoFormat" Text='<%# Bind("Bi") %>'></asp:TextBox></td>
251.                                <td>
252.                                    <asp:TextBox ID="TextBox10" runat="server" CssClass="autoFormat" Text='<%# Bind("MbPd") %>'></asp:TextBox></td>
253.                                <td>
254.                                    <asp:TextBox ID="TextBox11" runat="server" CssClass="autoFormat" Text='<%# Bind("MbBi") %>'></asp:TextBox></td>
255.                                <td>
256.                                    <asp:TextBox ID="TextBox12" runat="server" CssClass="autoFormat" Text='<%# Bind("Cbi") %>'></asp:TextBox></td>
257.                            </tr>
258.                        </ItemTemplate>
259. 
260.                        <FooterTemplate>
261.                            </table>
262.                        </FooterTemplate>
263. 
264.                    </asp:Repeater>
265.                     
266.                     
267.                    <label class="popUpLabelTitle">Discretionary Premium Adjustments</label>
268. 
269.                    <asp:Repeater ID="rptDiscretionary" OnItemDataBound="rptDiscretionary_ItemDataBound" runat="server" DataSource='<%# (List<LocationTermsDiscretionaryViewModel>)DataBinder.Eval( Container, "DataItem.Discretionary" ) %>'>
270. 
271.                        <HeaderTemplate>
272.                            <table class="popupTable">
273.                                <tr>
274.                                    <th> Type</th>
275.                                    <th> Cover</th>
276.                                    <th> Reason</th>
277.                                    <th> Description</th>
278.                                    <th> Value</th>
279.                                </tr>
280.                        </HeaderTemplate>
281. 
282. 
283.                        <ItemTemplate>
284.                            <tr>
285.                                <td>
286.                                    <asp:DropDownList runat="server" ID="ddlDiscretionaryType" >
287.                                        <asp:ListItem>Test Item</asp:ListItem>
288.                                        </asp:DropDownList>
289. 
290.                                </td>
291.                                <td>
292.                                    <asp:DropDownList runat="server" ID="DropDownList1" >
293.                                        <asp:ListItem>Test Item</asp:ListItem>
294.                                        </asp:DropDownList>
295.                                <td>
296.                                    <asp:TextBox ID="TextBox10" runat="server" CssClass="autoFormat" Text='<%# Bind("Reason") %>'></asp:TextBox></td>
297.                                <td>
298.                                    <asp:TextBox ID="TextBox11" runat="server" CssClass="autoFormat" Text='<%# Bind("Description") %>'></asp:TextBox></td>
299.                                <td>
300.                                    <asp:TextBox ID="TextBox12" runat="server" CssClass="autoFormat" Text='<%# Bind("Value") %>'></asp:TextBox></td>
301.                            </tr>
302.                        </ItemTemplate>
303. 
304.                        <FooterTemplate>
305.                            </table>
306.                        </FooterTemplate>
307. 
308.                    </asp:Repeater>
309. 
310.                    <hr style="width: 100%;" class="hrBlue">
311. 
312.                    <div class="buttonContainer">
313.                        <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" /> 
314.                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" />
315.                    </div>
316. 
317.                </div>
318.            </FormTemplate>
319.        </EditFormSettings>
320.    </MasterTableView>
321. 
322.    <PagerStyle AlwaysVisible="True" Mode="NextPrevAndNumeric"></PagerStyle>
323. 
324.    <FilterMenu OnClientShown="MenuShowing" />
325. 
326.    <ClientSettings>
327.        <ClientEvents OnRowDblClick="RowDblClick" OnPopUpShowing="PopUpShowing"></ClientEvents>
328.    </ClientSettings>
329.</telerik:RadGrid>
Venelin
Telerik team
 answered on 06 Jun 2014
1 answer
95 views
This is confirmed in your online Demo Also

Attempting to paste into one of the cells makes the cursor jump to the top of the edito

Here is the code I'm using. I go to design mode after and then paste more text to add to the customize your text paragraph.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>
        <table style="background-color:#ffffff" align="center" border="0" cellpadding="0" cellspacing="0" width="640">
            <tbody>
                <tr>
                    <td style="padding:5px 25px;background-color:#ffffff" align="left" valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" width="590">
                        <tbody>
                            <tr>
                                <td style="padding:0px;border-top:2px solid #ff9f00;font-family:Arial,san-serif;font-size:2px;font-weight:normal;color:#0023af;text-align:left;line-height:2px" align="left" valign="top">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    </td>
                </tr>
                <tr>
                    <td style="padding:5px 25px;background-color:#ffffff;font-family:Arial,san-serif;font-size:12px;font-weight:normal;text-align:left" align="left" valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" width="590">
                        <tbody>
                            <tr>
 
                                <td style="padding:10px 0px 5px;font-family:Arial,san-serif;font-size:22px;font-weight:normal;color:#0023af;text-align:left" align="left" valign="top"><strong>
                                +--bulletinDetailHeader1--+</strong>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding:0px 0px 15px;font-family:Arial,san-serif;font-size:12px;font-weight:normal;text-align:left" align="left">
                                Customize the content of your email by replacing this sample text with text of your choice. Customize the content of your email by replacing this sample text with text of your choice. Customize the content of your email by replacing this sample text with text of your choice. Customize the content of your email by replacing this sample text with text of your choice. Customize the content of your email by replacing this sample text with text of your choice. Customize the content of your email by replacing this sample text with text of your choice.
                                </td>
                            </tr>
                            <tr>
                                <td style="padding:0px 0px 15px;font-family:Arial,san-serif;font-size:12px;font-weight:normal;text-align:left" align="left">
                                <table style="border-collapse:collapse;padding:0px;margin:0px auto 0px;font-family:Arial,san-serif;font-size:12px" width="580">
                                    <tbody>
                                        <tr>
                                            <th style="background-color:#dddddd;border-bottom:1px solid black;text-align:left;padding:5px;color:#555555;font-family:Arial,san-serif;font-size:12px" width="33%">Holiday</th>
                                            <th style="background-color:#dddddd;border-bottom:1px solid black;text-align:left;padding:5px;color:#555555;font-family:Arial,san-serif;font-size:12px">Date</th>
                                        </tr>
                                        <tr>
                                            <td style="border-right:1px solid black;border-bottom:1px solid black;padding:0 5px 5px">Some text here</td>
                                            <td style="border-left:1px solid black;border-bottom:1px solid black;padding:0 5px 5px">Some more text here to be changed</td>
                                        </tr>
                                        <tr>
                                            <td style="border-right:1px solid black;border-bottom:1px solid black;padding:0 5px 5px">
                                            <br>
                                            </td>
                                            <td style="border-left:1px solid black;border-bottom:1px solid black;padding:0 5px 5px"> </td>
                                        </tr>
                                        <tr>
                                            <td style="border-right:1px solid black;border-bottom:1px solid black;padding:0 5px 5px">
                                            <br>
                                            </td>
                                            <td style="border-left:1px solid black;border-bottom:1px solid black;padding:0 5px 5px"> </td>
                                        </tr>
                                    </tbody>
                                </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    </td>
                </tr>
                            
            </tbody>
        </table></body></html>




 
Ianko
Telerik team
 answered on 06 Jun 2014
2 answers
77 views
Hello,
I bumped into a problem when tried to use RadCompression with WCF [HTTPBinarybinding with Streamed mode]. We are transferring zip file in this service.
It works fine for other transfer mode, is there any particular setting for streamed mode? Or it just won't work with this mode.
Thanks
Eyup
Telerik team
 answered on 06 Jun 2014
3 answers
199 views
Hi,
I am using two detail tables in the RadGrid as attached in the screenshot.
I wish data of detail table 2 to align with detail table 1.

Please have a look at the screenshot attached.
Please suggest.
Kostadin
Telerik team
 answered on 06 Jun 2014
1 answer
143 views
I am using a RadDropDownTree in a GridTemplateColumn like the following.. when I get the add or edit the label is left justified and others are right justified
like this image...also the fonts are different...


​
<telerik:GridTemplateColumn HeaderText="Available To"  UniqueName="AvailableTo"
    Visible="true" Display="false">
    <EditItemTemplate>
        <telerik:RadDropDownTree ID="AvailableTo" runat="server" Width="250px" OnDataBound="RadDropDownTree_DataBound"
            DefaultMessage="Please select" DropDownSettings-AutoWidth="Enabled"
            DataSourceID="SqlDataAvailableTo" DataFieldID="PK" CheckBoxes="CheckChildNodes"
            DataFieldParentID="Parent_PK" DataTextField="Description" DataValueField="PK">
            <ButtonSettings ShowCheckAll="true" ShowClear="true" />
            <Localization Clear="Clear All" />
        </telerik:RadDropDownTree>
    </EditItemTemplate>
    <HeaderStyle HorizontalAlign="Center" />
    <ItemStyle Width="50px" Font-Size="Small" HorizontalAlign="Center" />
</telerik:GridTemplateColumn>
Shinu
Top achievements
Rank 2
 answered on 06 Jun 2014
1 answer
328 views
We are converting a project from Infragistics to Telerik. We have some pages that are used for bulk data entry and I am looking for the best approach to duplicate these pages with RadGrid. The grid is not bound to live data, only a data table created on page load for use as a grid data source. Data will be saved as a batch whenever the user presses the [Save] button on form. (See attached image) The user is keying in water meter readings. After typing a reading in a cell, the [Enter] key is pressed updating the Usage column and advancing to the next row ready to accept the next meter reading. The arrow keys also navigate from cell to cell (up-down)

We used the ultragrid ClientSideEvents.AfterCellUpdateHandler and ClientSideEvents.EditKeyDownHandler to update a "Water Usage" column and advance to next row ready to accept next meter reading. With the ultragrid we set all the columns to ReadOnly = False  accept our data entry column. We also used the ".Tag" property to flag rows that had been changed.

Any ideas or samples? 
Princy
Top achievements
Rank 2
 answered on 06 Jun 2014
1 answer
141 views
We have our own custom dialog for inserting hyperlinks. That works fine.

But the way it is now, when editing an existing link (eg. from context menu on click with right mouse button) the default Telerik link dialog appears.

How can we bring up our own custom dialog for editing existing links? 
Ianko
Telerik team
 answered on 06 Jun 2014
1 answer
119 views
Hi,

The soft hyphen (&shy;) is not displaying in rad editor.

Could you please help?


Regards
Ianko
Telerik team
 answered on 06 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?