Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
534 views
For an image, I would like to use the Alt Text as the tooltip, not the title.  Is there any way to do this?
Marin Bratanov
Telerik team
 answered on 03 Jun 2014
1 answer
48 views
v4.0.30319

When using the ImageManager to insert images into the RadEditor, users would like to be able to right-click the image and edit it's properties. While this option is currently in place and configured, there is an issue when attempting to accomplish this on the first insert, on the first right-click. 

>Start/Refresh page with RadEditor (important!)
>Insert image via ImageManager
>Right-click image...Properties
>Properties are all empty, can edit but cannot click 'OK', only 'Cancel' (Img1)
>Click 'Cancel'
>Right-click image...Properties
>Properties are now correct and available for edit (Img2)

How can we fix this so that the properties are correct and available for edit on the first attempt? This provides a serious usability issue for us. Any help would be greatly appreciated. 

Vessy
Telerik team
 answered on 03 Jun 2014
1 answer
314 views
In one mvc partial view I've got some ajax.ActionLinks which when clicked update the div 'importpartupdate' (they just updates the div whith new ajax.actionLinks with other routevalues). The problem is that when this update is competed I have to update another div - depending on which link is clicked . That's why in my OnComplete function of my ajax.ActionLink I make an ajax request to the action 'GridViewLanguage' which returns me the partial view which should uodate this other div with  claass .floatLanguage.

The partial view which action Gridviewlanguage retuns me is just am user control with radgridcombobox. It as you see has an Itemtemplate with an anchor element 
with href property <a href="<%#DataBinder.Eval(Container.DataItem, "menuID")%>">  and I see that the menuID item has each time proper value. 



<telerik:RadGrid ID="RadGridLang" runat="server" AutoGenerateColumns="False"  EnableEmbeddedSkins="False"  RegisterWithScriptManager=false <br>                 DataTextField="Descr" DataValueField="LanImg"<br>                Height="100%" Width="120px" AppendDataBoundItems="true" CellSpacing="0" GridLines="None" OnLoad="RadGridLang_Load"><br>                <MasterTableView><br>                    <Columns><br>                        <telerik:GridTemplateColumn DataField="LanCd"><br>                            <ItemTemplate><br>                                <img src="<%#DataBinder.Eval(Container.DataItem, "LanImg")%>" alt="ASP.NET hosting" /><br>                            </ItemTemplate><br>                        </telerik:GridTemplateColumn><br>                        <telerik:GridTemplateColumn DataField="LanCd"><br>                            <ItemTemplate><br>                                <telerik:RadComboBox ID="RadComboBoxLang" runat="server" EmptyMessage="Select a language" DataTextField="Descr" DataValueField="LanCd" EnableEventValidation="true"  RegisterWithScriptManager=false <br>                                    EnableLoadOnDemand="true" DataSourceID="ObjectDataSourceDrob" CausesValidation="false" AllowCustomText="true" AppendDataBoundItems="true" OnLoad="RadComboBoxLang_Load" ><br>                                     <ItemTemplate><br>                                        <div class="imageWrap"><br>                                           <telerik:RadComboBoxItem Text="Select" /><br>                                        <a href="<%#DataBinder.Eval(Container.DataItem, "menuID")%>">                                            <br>                                            <img src="<%#DataBinder.Eval(Container.DataItem, "LanImg")%>" alt='<%# Eval("Descr")%>'/>&nbsp&nbsp&nbsp&nbsp&nbsp<%#DataBinder.Eval(Container.DataItem, "Descr")%></a><br>                                        </div><br>                                       <br>                                    </ItemTemplate><br>                                </telerik:RadComboBox><br>                            </ItemTemplate><br>                        </telerik:GridTemplateColumn><br>                    </Columns><br>                </MasterTableView><br>            </telerik:RadGrid>

                                                                                   
   



So the first time when I click a link eeverything works correctly and my two divs are correctly updated. But the second time I click a new link it seems the the floatlanguuage div is not updated - and the href property in the anchor element stays the same as the previous request. Can you suggest why teh value in the href property in the link in the radcombobox stays the same 

like somehow the browser is caching the previous info I don't know. \i tried with cache:false- nothing worked.

Here is my view partial view which makes request to the action after a ajax.actionlink is clicked 

<div class="importpartupdate"><br>        <ul><br>            @{<br>                if (Model != null)<br>                {<br>                    foreach (MvcBeaDAL.WebServiceBeaMenu item in Model.MenuLeft)<br>                    {<br><br>                      <li><br>                        @Ajax.ActionLink(@item.SpecialWord, "ImportShow", new { id = Model.LanguageName, menuID = item.ID, articlegroupID = item.ArticlegroupID, counter = 1 }, new AjaxOptions { UpdateTargetId = "importPartUpdate", HttpMethod = "GET", InsertionMode = InsertionMode.Replace, OnComplete = "success("+@item.ID+")" }, new { id=item.ID})<br><br>                      </li> <br>                    }<br>                } <br>            }<br>        </ul><br>    </div> <br><br><br></nav><br>   <script><br>       function success(ids) {<br><br>           var nocache = new Date().getTime(); <br><br>           jQuery.ajax({<br>                url: '@Url.Action("GridLanguageView")/?menuID='+ids<br><br><br>           }).done(function (data)<br>           {<br><br><br>             $(".floatLanguage").replaceWith(data);<br>             alert(data);<br>           });<br><br><br><br>       }<br>     </script>
Hristo Valyavicharski
Telerik team
 answered on 03 Jun 2014
3 answers
872 views
Hi There,
I'm just starting to use the RadGrid and I can't see how to access the data from GridCommandEventArgs.

I have a simple grid bound to an ObjectDataSource that is a .NET generated dataset (a .xsd file in the App_Code folder).
I have set up the grid so there is a delete button on each line.

Because the dataset uses more than 1 table and the Select uses a Join I cannot use the Delete/Update commands from the dataset ( as Visual Studio can't generate the SQL for Joined tables).

So I plan to capture the Delete command and do my changes to the dataset in that method and then update back to the database.

However, I do not know how to reference the record (row) on which Delete was pressed.  I need this to get the unique ID for the record.  Once I have this reference I can use it to find the records other fields and edit or otherwise manipulate the data.
I thought this might return the first column in the record but apparantly not.

    protected void RadGrid1_DeleteCommand(object source, GridCommandEventArgs e)
    {
        string ID = (string)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["RoleName"];  <-------This does not work

        string ID2 = (string)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][0];  <-------This does not work
    }

I have no DataKeyValues set in the aspx file because ( I believe) I generate the field names from the dataset

How do I reference the row?
Is this the right way to deal with this problem?

Thanks for any help
Richard










Shinu
Top achievements
Rank 2
 answered on 03 Jun 2014
0 answers
61 views
hello

As shown in attached image , I am viewing the Radgrid on tablet which is touch screen ,
so it becomes difficult to click the prev and next button which is at the bottom of Radgrid .
How can i enlarge the size of the buttons so that it becomes easier to click by touch.

please help.

thanks
Kishor
Kishor
Top achievements
Rank 2
 asked on 03 Jun 2014
5 answers
222 views
hello

Iam using radchart for windows form

as attached in below chart ,the x-axis text is not seen completely

i want to see the complete text

please help

thanks
kishor
Kishor
Top achievements
Rank 2
 answered on 03 Jun 2014
3 answers
114 views
Hi
I'm trying to copy into a new div my htmlchart and print it with Chrome (Version 35.0.1916.114 m).
My page structure is the following:
- RadSplitter
        |_ RadPane
                   |_ Div (id = pieContainer)
                                   |_ RadHtlmChart

- Div (id=newDiv)

On print button click
function PrintableVersion() {
                //find telerik object container              
               var pieContainer = $telerik.$("#pieDiv");               
                   //append pie
               $("#newDiv").append(pieContainer.clone(true));
 
               //imposto la pagina come A4 orizzontale
               $(".A4Page").css({ width: "29.7cm", "min-height": "19cm", "margin-top": "10px", "padding-top": "10px", visibility: "visible" });
 
               //hide splitter
               var splitter = $find("<%=RadSplitter1.ClientID %>");
               splitter.set_visible(false);              
              //lancio la stampa
               window.print();
 
               //reset page
               $("#newDiv").empty();
               $(".A4Page").css({ height: "0", visibility: "hidden" });
               splitter.set_visible(true);
           }           
       </script>

See the attach for the result
pie chart is black

If I changed this row
     $("#newDiv").append(pieContainer.clone(true));
with
     $("#newDiv").append($get("pieDiv").innerHTML);              
same problem

If I changed with (no clone)
     $("#newDiv").append(pieContainer);
it works but I lost the pie into the original page

thanks
Danail Vasilev
Telerik team
 answered on 03 Jun 2014
1 answer
194 views
When I add filters to my grid it seems to stop OnPopUpShowing being fired in the client events and thus stops my edit form from appearing when it should.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LocationTerms.ascx.cs" Inherits="UnderwritingPlatform.Ui.Products.OnshoreEnergyCommon.Controls.LocationTerms" %>
<%@ Import Namespace="UnderwritingPlatform.Ui.Logic.OnshoreEnergyCommon.Models.Pricing" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function RowDblClick(sender, eventArgs) {
            sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
        }
        var popUp;
        function PopUpShowing(sender, eventArgs) {
            popUp = eventArgs.get_popUp();
            var gridWidth = sender.get_element().offsetWidth;
            var gridHeight = sender.get_element().offsetHeight;
            var popUpWidth = popUp.style.width.substr(0, popUp.style.width.indexOf("px"));
            var popUpHeight = popUp.style.height.substr(0, popUp.style.height.indexOf("px"));
            popUp.style.left = ((gridWidth - popUpWidth) / 2 + sender.get_element().offsetLeft).toString() + "px";
            popUp.style.top = ((gridHeight - popUpHeight) / 2 + sender.get_element().offsetTop).toString() + "px";
            ApplyUiStyles();
        }
    </script>
</telerik:RadCodeBlock>

<telerik:RadAjaxManagerProxy ID="RadAjaxManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

<telerik:RadGrid ID="RadGrid1"
    runat="server"
    CssClass="RadGrid"
    GridLines="None"
    AllowPaging="True"
    PageSize="20"
    AllowSorting="True"
    AutoGenerateColumns="False"
    ShowStatusBar="true"
    AllowAutomaticDeletes="True"
    AllowAutomaticInserts="True"
    AllowAutomaticUpdates="True"
    OnNeedDataSource="GetLocations"
    OnItemUpdated="RadGrid1_ItemUpdated"
    OnItemCommand="RadGrid1_ItemCommand"
    OnPreRender="RadGrid1_PreRender" AllowFilteringByColumn="True" >
    <MasterTableView CommandItemDisplay="None" EditMode="PopUp" DataKeyNames="Id" >

         <ColumnGroups>
            <telerik:GridColumnGroup HeaderText="Location Information" Name="LocationInformation" HeaderStyle-HorizontalAlign="Center" />
            <telerik:GridColumnGroup HeaderText="Insured Values" Name="InsuredValues" HeaderStyle-HorizontalAlign="Center" />
            <telerik:GridColumnGroup HeaderText="Loss Distribution Estimates" Name="LossDistributionEstimates" HeaderStyle-HorizontalAlign="Center" />
            <telerik:GridColumnGroup HeaderText="RA Rating" Name="RaRating" HeaderStyle-HorizontalAlign="Center" />
        </ColumnGroups>

        <Columns>
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"  ColumnGroupName="LocationInformation" >
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn UniqueName="ID" HeaderText="ID" DataField="Id" ColumnGroupName="LocationInformation" AllowFiltering="False">
                <HeaderStyle Width="20px"></HeaderStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="LocationName" HeaderText="Location Name" DataField="LocationName" ColumnGroupName="LocationInformation" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn  UniqueName="RatingSegment" HeaderText="" DataField="RatingSegment" ColumnGroupName="LocationInformation" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Occupancy" HeaderText="" DataField="Occupancy" ColumnGroupName="LocationInformation" FilterControlWidth="30px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="PdTivRounded" HeaderText="PD TIV" DataField="PdTivRounded" DataFormatString="{0:N1}" ColumnGroupName="InsuredValues" FilterControlWidth="30px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="BiRateableValueRounded" HeaderText="BI Rateable Value" DataField="BiRateableValueRounded" DataFormatString="{0:N1}" FilterControlWidth="30px" ColumnGroupName="InsuredValues" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="TotalTivRounded" HeaderText="Total TIV" DataField="TotalTivRounded" DataFormatString="{0:N1}" FilterControlWidth="40px" ColumnGroupName="InsuredValues" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="PmlPd" HeaderText="PML PD" DataField="PmlPd" DataFormatString="{0:N0}" ColumnGroupName="LossDistributionEstimates" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="PmlBi" HeaderText="PML BI" DataField="PmlBi" DataFormatString="{0:N0}" ColumnGroupName="LossDistributionEstimates" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="EmlPd" HeaderText="EML PD" DataField="EmlPd" DataFormatString="{0:N0}" ColumnGroupName="LossDistributionEstimates" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="EmlBi" HeaderText="EML BI" DataField="EmlBi" DataFormatString="{0:N0}" ColumnGroupName="LossDistributionEstimates" FilterControlWidth="50px" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="RmProcRaRating" HeaderText="PD" DataField="RmProcRaRating" DataFormatString="{0:N0}" FilterControlWidth="30px" ColumnGroupName="RaRating" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="DesignConstrRaRating" HeaderText="BI" DataField="DesignConstrRaRating" FilterControlWidth="30px" DataFormatString="{0:N0}" ColumnGroupName="RaRating" AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false">
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn ButtonType="LinkButton" HeaderText="Total" DataTextField="TotalRaRating"  DataTextFormatString="{0:N0}" ColumnGroupName="RaRating"  AutoPostBackOnFilter="False" CurrentFilterFunction="Contains" ShowFilterIcon="false"/>
        </Columns>
        <EditFormSettings EditFormType="Template" CaptionFormatString="Location Terms Detail">
            <PopUpSettings Modal="True" Width="800px" Height="800px" ShowCaptionInEditForm="true"></PopUpSettings>
            <FormTemplate>

                <div style="padding: 20px;">

                    <label class="popUpLabelTitle">Location Information</label>
                    <div class="twoColumnLeft">
                        <div>
                            <asp:Label ID="lblLocationName" runat="server" CssClass="standardLabel200" Text="Location name: "></asp:Label>
                            <asp:Label ID="lblLocationNameValue" runat="server" Text='<%# Bind("LocationName") %>'></asp:Label>
                        </div>

                        <div>
                            <asp:Label ID="lblRatingSegment" runat="server" CssClass="standardLabel200" Text="Generator Type: "></asp:Label>
                            <asp:Label ID="lblRatingSegmentValue" runat="server" Text='<%# Bind("RatingSegment") %>'></asp:Label>
                        </div>
                    </div>
                    <div style="float: left;">
                        <div>
                            <asp:Label ID="lblOccupancy" runat="server" CssClass="standardLabel200" Text="Generator Detail: "></asp:Label>
                            <asp:Label ID="lblOccupancyValue" runat="server" Text='<%# Bind("Occupancy") %>'></asp:Label>
                        </div>
                    </div>

                    <label class="popUpLabelTitle">Insured Values</label>
                    <div class="twoColumnLeft">
                        <div>
                            <asp:Label ID="lblPdTiv" runat="server" CssClass="standardLabel200" Text="PD TIV: "></asp:Label>
                            <asp:Label ID="lblPdTivValue" runat="server" CssClass="autoFormat" Text='<%# Bind("PdTiv") %>'></asp:Label>
                        </div>

                        <div>
                            <asp:Label ID="lblBiRateableValue" runat="server" CssClass="standardLabel200" Text="Bi Rateable Value: "></asp:Label>
                            <asp:Label ID="lblBiRateableValueValue" runat="server" CssClass="autoFormat" Text='<%# Bind("BiRateableValue") %>'></asp:Label>
                        </div>
                    </div>
                    <div style="float: left;">
                        <div>
                            <asp:Label ID="lblTotalTiv" runat="server" CssClass="standardLabel200" Text="Total TIV: "></asp:Label>
                            <asp:Label ID="lblTotalTivValue" runat="server" CssClass="autoFormat" Text='<%# Bind("TotalTiv") %>'></asp:Label>
                        </div>
                    </div>

                    <label class="popUpLabelTitle">RA Rating</label>
                    <div class="twoColumnLeft">
                        <div>
                            <asp:Label ID="lblRmProcRaRating" runat="server" CssClass="standardLabel200" Text="RM & Proc: "></asp:Label>
                            <asp:TextBox ID="txtRmProcRaRating" CssClass="autoFormat" runat="server" Text='<%# Bind("RmProcRaRating") %>'></asp:TextBox>
                        </div>

                        <div>
                            <asp:Label ID="lblDesignConstrRaRating" runat="server" CssClass="standardLabel200" Text="Design & Constr: "></asp:Label>
                            <asp:TextBox ID="txtDesignConstrRaRating" CssClass="autoFormat" runat="server" Text='<%# Bind("DesignConstrRaRating") %>'></asp:TextBox>
                        </div>
                    </div>
                    <div style="float: left;">
                        
                         <div>
                            <asp:Label ID="lblCorporateResilience" runat="server" CssClass="standardLabel200" Text="Corporate Resilience: "></asp:Label>
                            <asp:TextBox ID="lblCorporateResilienceValue" CssClass="autoFormat" runat="server" Text='<%# Bind("CorporateResilience") %>'></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="lblTotalRaRating" runat="server" CssClass="standardLabel200" Text="Total: "></asp:Label>
                            <asp:TextBox ID="txtTotalRaRating" CssClass="autoFormat" runat="server" Text='<%# Bind("TotalRaRating") %>'></asp:TextBox>
                        </div>
                    </div>

                    <label class="popUpLabelTitle">Loss Distribution Estimates</label>

                    <div class="twoColumnLeft">
                        <div>
                            <asp:Label ID="lblSelectedPmlPd" runat="server" CssClass="standardLabel200" Text="Selected  PMLs PD: "></asp:Label>
                            <asp:TextBox ID="txtSelectedPmlPd" CssClass="autoFormat" runat="server" Text='<%# Bind("PmlPd") %>'></asp:TextBox>
                        </div>

                        <div>
                            <asp:Label ID="lblSelectedPmlBi" runat="server" CssClass="standardLabel200" Text="Selected  PMLs BI: "></asp:Label>
                            <asp:TextBox ID="txtSelectedPmlBi" CssClass="autoFormat" runat="server" Text='<%# Bind("PmlBi") %>'></asp:TextBox>
                        </div>
                    </div>
                    <div style="float: left;">
                        <div>
                            <asp:Label ID="lblSelectedEMLPd" runat="server" CssClass="standardLabel200" Text="Selected  EMLs PD: "></asp:Label>
                            <asp:TextBox ID="txtSelectedEMLPd" CssClass="autoFormat" runat="server" Text='<%# Bind("EmlPd") %>'></asp:TextBox>
                        </div>

                        <div>
                            <asp:Label ID="lblSelectedEMLBi" runat="server" CssClass="standardLabel200" Text="Selected  EMLs BI: "></asp:Label>
                            <asp:TextBox ID="txtSelectedEMLBi" CssClass="autoFormat" runat="server" Text='<%# Bind("EmlBi") %>'></asp:TextBox>
                        </div>
                    </div>

                    <label class="popUpLabelTitle">Location Coverage</label>

                    <div class="twoColumnLeft">
                        <div>
                            <asp:Label ID="Label3" runat="server" CssClass="standardLabel200" Text="BI Indemnity Basis "></asp:Label>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("BiIndemnityBasis") %>'></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="Label4" runat="server" CssClass="standardLabel200" Text="BI Indemnity Period (Mths): "></asp:Label>
                            <asp:TextBox ID="TextBox2" Text='<%# Bind("BiIndemnityPeriod") %>' runat="server"></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="Label5" runat="server" CssClass="standardLabel200" Text="BI Indemnity Value Basis: "></asp:Label>
                            <asp:TextBox ID="TextBox3" Text='<%# Bind("BiIndemnityValueBasis") %>' runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div style="float: left">
                        <div>
                            <asp:Label ID="Label6" runat="server" CssClass="standardLabel200" Text="BI Sub-limit: "></asp:Label>
                            <asp:TextBox ID="TextBox4" CssClass="autoFormat" runat="server" Text='<%# Bind("BiSubLimit") %>'></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="Label7" runat="server" CssClass="standardLabel200" Text="MB Sub-limit: "></asp:Label>
                            <asp:TextBox ID="TextBox5" CssClass="autoFormat" runat="server" Text='<%# Bind("MbSubLimit") %>'></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="Label8" runat="server" CssClass="standardLabel200" Text="CBI/DEE Sub-limit: "></asp:Label>
                            <asp:TextBox ID="TextBox6" CssClass="autoFormat" runat="server" Text='<%# Bind("CbiSubLimit") %>'></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="Label9" runat="server" CssClass="standardLabel200" Text="Power Extra Expense: "></asp:Label>
                            <asp:TextBox ID="TextBox7" CssClass="autoFormat" runat="server" Text='<%# Bind("PowerExtraSubLimit") %>'></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="Label10" runat="server" CssClass="standardLabel200" Text='Replacement Power Included:'></asp:Label>
                            <asp:RadioButtonList runat="server" ID="radiotbutton1" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                <asp:ListItem Text="Yes" Value="Yes" />
                                <asp:ListItem Text="No" Value="No" />
                            </asp:RadioButtonList>
                        </div>
                    </div>

                    <label class="popUpLabelTitle">Machine Component Deductibles</label>

                    <asp:Repeater ID="rptDeductibles" runat="server" DataSource='<%# (List<LocationTermsComponentDeductibleViewModel>)DataBinder.Eval( Container, "DataItem.ComponentDeductibles" ) %>'>

                        <HeaderTemplate>
                            <table class="popupTable">
                                <tr>
                                    <th></th>
                                    <th>&nbsp;PD</th>
                                    <th>&nbsp;BI (Days)</th>
                                    <th>&nbsp;MB PD</th>
                                    <th>&nbsp;MB BI (Days)</th>
                                    <th>&nbsp;CBI (Days)</th>
                                </tr>
                        </HeaderTemplate>


                        <ItemTemplate>
                            <tr>
                                <th><%# Eval("Name") %></th>
                                <td>
                                    <asp:TextBox ID="TextBox8" runat="server" CssClass="autoFormat" Text='<%# Bind("Pd") %>'></asp:TextBox></td>
                                <td>
                                    <asp:TextBox ID="TextBox9" runat="server" CssClass="autoFormat" Text='<%# Bind("Bi") %>'></asp:TextBox></td>
                                <td>
                                    <asp:TextBox ID="TextBox10" runat="server" CssClass="autoFormat" Text='<%# Bind("MbPd") %>'></asp:TextBox></td>
                                <td>
                                    <asp:TextBox ID="TextBox11" runat="server" CssClass="autoFormat" Text='<%# Bind("MbBi") %>'></asp:TextBox></td>
                                <td>
                                    <asp:TextBox ID="TextBox12" runat="server" CssClass="autoFormat" Text='<%# Bind("Cbi") %>'></asp:TextBox></td>
                            </tr>
                        </ItemTemplate>

                        <FooterTemplate>
                            </table>
                        </FooterTemplate>

                    </asp:Repeater>
                    
                    
                    <label class="popUpLabelTitle">Discretionary Premium Adjustments</label>

                    <asp:Repeater ID="rptDiscretionary" OnItemDataBound="rptDiscretionary_ItemDataBound" runat="server" DataSource='<%# (List<LocationTermsDiscretionaryViewModel>)DataBinder.Eval( Container, "DataItem.Discretionary" ) %>'>

                        <HeaderTemplate>
                            <table class="popupTable">
                                <tr>
                                    <th>&nbsp;Type</th>
                                    <th>&nbsp;Cover</th>
                                    <th>&nbsp;Reason</th>
                                    <th>&nbsp;Description</th>
                                    <th>&nbsp;Value</th>
                                </tr>
                        </HeaderTemplate>


                        <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:DropDownList runat="server" ID="ddlDiscretionaryType" >
                                        <asp:ListItem>Test Item</asp:ListItem>
                                        </asp:DropDownList>

                                </td>
                                <td>
                                    <asp:DropDownList runat="server" ID="DropDownList1" >
                                        <asp:ListItem>Test Item</asp:ListItem>
                                        </asp:DropDownList>
                                <td>
                                    <asp:TextBox ID="TextBox10" runat="server" CssClass="autoFormat" Text='<%# Bind("Reason") %>'></asp:TextBox></td>
                                <td>
                                    <asp:TextBox ID="TextBox11" runat="server" CssClass="autoFormat" Text='<%# Bind("Description") %>'></asp:TextBox></td>
                                <td>
                                    <asp:TextBox ID="TextBox12" runat="server" CssClass="autoFormat" Text='<%# Bind("Value") %>'></asp:TextBox></td>
                            </tr>
                        </ItemTemplate>

                        <FooterTemplate>
                            </table>
                        </FooterTemplate>

                    </asp:Repeater>

                    <hr style="width: 100%;" class="hrBlue">

                    <div class="buttonContainer">
                        <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" />&nbsp;
                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" />
                    </div>

                </div>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>

    <PagerStyle AlwaysVisible="True" Mode="NextPrevAndNumeric"></PagerStyle>

    <FilterMenu OnClientShown="MenuShowing" />

    <ClientSettings>
        <ClientEvents OnRowDblClick="RowDblClick" OnPopUpShowing="PopUpShowing"></ClientEvents>
    </ClientSettings>
</telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 03 Jun 2014
2 answers
153 views
Dear,

I'm using the following code to display a PDF on a webpage: 

 <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" />
                    <telerik:RadSplitter ID="Radsplitter1" runat="server" Orientation="Horizontal" Width="680">
                      <telerik:RadPane ID="Radpane1" runat="server" Height="850" Width="680" ContentUrl="PDFs/test.pdf">
                      </telerik:RadPane>
                    </telerik:RadSplitter>


My goal is to show the content of the PDF on the webpage.
This works great on windows devices and IOS, however when opening the webpage in Android - chrome (tried kitkat and jellybean) the pdf just downloads and does not show on the page.
(fyi on android using the standard 'internet browser' or firefox, the PDF's don't show up at all)

I found that the following code can be added to the header of the webpage:
Content-Type: application/pdf
Content-Disposition: inline; filename.pdf
I tried adding that to my masterpage, but that didn't help. I'm assuming that if i could add it to the RadPane that it would work.
Is there any way to do this, or is there another way to show the PDF files on android - chrome?







Vessy
Telerik team
 answered on 03 Jun 2014
1 answer
571 views
Compiler Error Message: BC30456: 'grdOrders_SelectedIndexChanged' is not a member of 'ASP.default_aspx'

on the following aspx code:

<telerik:RadGrid ID="grdOrders" runat="server" AllowSorting="True"
        Width="870px" Height="475px" AllowPaging="True" PageSize="16"
        PagerStyle-PageSizeControlType="None"
        PagerStyle-PageButtonCount="16" AutoGenerateColumns="False"
        OnNeedDataSource="grdOrders_NeedDataSource"
        OnSelectedIndexChanged="grdOrders_SelectedIndexChanged"
        OnItemCommand="grdOrders_ItemCommand"
        OnPreRender="grdOrders_PreRender"
        SelectedItemStyle-BackColor="#CCFF66"
        SelectedItemStyle-BorderStyle="Dashed">
        <MasterTableView AllowMultiColumnSorting="True" ClientDataKeyNames="Ord_ID">
          <Columns>
            <telerik:GridBoundColumn DataField="Ord_ID" 
              DataType="System.Int32" HeaderText="Order ID"
              SortExpression="Ord_ID" UniqueName="Ord_ID" ReadOnly="True"
              HeaderStyle-Width="58px" ItemStyle-Width="60px">
            </telerik:GridBoundColumn>
   .....
          </Columns>
        </MasterTableView>
        <ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true">
          <Scrolling AllowScroll="True" UseStaticHeaders="True"
            SaveScrollPosition="true">
          </Scrolling>
        </ClientSettings>
        <SelectedItemStyle BackColor="#FFFFCC" BorderColor="#CCFFCC" BorderStyle="None"
          BorderWidth="1px" />
      </telerik:RadGrid> 
 
 In the Deault.aspx.vb the Private Sub grdOrders_SelectedIndexChanged... exists

I would appreciate any help

 

Shinu
Top achievements
Rank 2
 answered on 03 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?