Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
691 views

Hi, 

Im using Telerik 2015.1.401.45 version.

In the ScriptResource.axd, it is showing that is using the JQuery 1.11.1 version.

But we wanted to removed the JQuery 1.11.1 reference as there might be vulnerability issue.

Is there any way to remove the JQuery from Telerik and not showing in ScriptResource.axd? 

Thanks.

Attila Antal
Telerik team
 answered on 27 Aug 2019
1 answer
194 views

Hello,

I'm to use two ComboBoxes to configure country and city. To prevent the whole page to reload on update the city combobox I want ot use an AjaxPanel with UpdatePanel. This AjaxPanel is surrounded by another AjaxPanel with UpdatePanel. The second AjaPanel is inise a Control which is laded dynamically depending on a selected item of a RadTreeView. The structure (splitted over several controls) looks like this:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">

            ....

                <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="LoadingPanel2">
                    <asp:UpdatePanel ID="locationpanel" runat="server">

                         .....

                              the two ComboBoxes

 

I tried this scenarios to make it work:

- I added a RadAjaxManager inside the mater page with AjaxSettings to update the second ComboBox when the first has changed. The result is that the page is completely empty

- Removed the settings from the RadAjaxManager -> still empty

- Added UpdateMode="Conditional" to the second UpdatePanel -> the page is shown and also the ComboBoxes but they dont work - the drropdown menue is not working

- Added Triggers to the second AjaxPanel -> the same result as without Triggers

I also added asp:DropDownLists and they work as they should, but when i make changes on the Lists i get a LAbel ubove the Listboxes saying "5843|updatePanel|ctl00_MainContent_ctl00_Person1_RadPanelBar1_i0_locationpanel| " 

 

As it's a little bit complicated i uploaded the file to my cloud

https://cloud.fee.de/index.php/s/SIpowivPPpIXpWC

 

I really hope that you can help me solve the problem with the ComboBoxes. Many thanks in advance for your help.

 

Greetings,

Stephan

Vessy
Telerik team
 answered on 27 Aug 2019
2 answers
322 views

I have a RadGrid that I added UseStaticHeaders="true" to and now the last column is partially hidden by the vertical scroll bar (as shown in attached image).

Here is my grid:

        <telerik:RadGrid ID="rgReorderParts" runat="server" Skin="Windows7" CellSpacing="0" CellPadding="0" GridLines="Both" ShowHeader="True" ShowFooter="True"<br>            AutoGenerateColumns="false" AllowMultiRowSelection="true"><br>            <ClientSettings><br>                <Scrolling AllowScroll="True" ScrollHeight="300" UseStaticHeaders="true" /><br>            </ClientSettings><br>            <MasterTableView DataKeyNames="PartNumber" CommandItemDisplay="None"><br>                <CommandItemSettings ShowAddNewRecordButton="false" /><br>                <Columns><br>                    <telerik:GridTemplateColumn HeaderText="View" HeaderStyle-Width="40" ItemStyle-Width="40" ><br>                        <ItemTemplate><br>                            <asp:ImageButton ID="btnViewPart" runat="server" ImageUrl="~/images/icons/pencil.png"<br>                                OnClientClick='<%# String.Format("GetViewPartInfo(""{0}""); return false;", Eval("PartNumber").ToString.EncodeJsString) %>' /><br>                        </ItemTemplate><br>                    </telerik:GridTemplateColumn><br>                    <telerik:GridBoundColumn HeaderText="Part #" DataField="PartNumber" HeaderStyle-Width="100" ItemStyle-Width="100" /><br>                    <telerik:GridBoundColumn HeaderText="Part Description" DataField="PartDescription" HeaderStyle-Width="200" ItemStyle-Width="200" /><br>                    <telerik:GridBoundColumn HeaderText="Max. Level" DataField="MaxStockLevel" DataType="System.Decimal" DataFormatString="{0:0.#####}" <br>                        HeaderStyle-Width="70" ItemStyle-Width="70" /><br>                    <telerik:GridBoundColumn HeaderText="Order Point" DataField="ReorderPoint" DataType="System.Decimal" DataFormatString="{0:0.#####}" <br>                        HeaderStyle-Width="70" ItemStyle-Width="70" /><br>                    <telerik:GridBoundColumn HeaderText="Min. Level" DataField="MinStockLevel" DataType="System.Decimal" DataFormatString="{0:0.#####}" <br>                        HeaderStyle-Width="70" ItemStyle-Width="70" /><br>                    <telerik:GridBoundColumn HeaderText="Expected Qty" DataField="QuantityExpected" DataType="System.Decimal" DataFormatString="{0:0.#####}" <br>                        HeaderStyle-Width="70" ItemStyle-Width="70" /><br>                    <telerik:GridTemplateColumn HeaderText="Supplier" UniqueName="OrderSupplierID" HeaderStyle-Width="210" ItemStyle-Width="210"><br>                        <ItemTemplate><br>                            <telerik:RadComboBox ID="ddlSupplierID" runat="server" Width="190" /><br>                        </ItemTemplate><br>                    </telerik:GridTemplateColumn><br>                    <telerik:GridTemplateColumn HeaderText="Order Quantity" UniqueName="OrderQuantity" HeaderStyle-Width="100" ItemStyle-Width="100"><br>                        <ItemTemplate><br>                            <telerik:RadNumericTextBox ID="txtOrderQuantity" runat="server" Type="Number" MaxValue="9999999.99999" Width="80"<br>                                ClientEvents-OnBlur="FormatZeros_ZeroDecimals" ClientEvents-OnLoad="FormatZeros_ZeroDecimals"<br>                                EnabledStyle-HorizontalAlign="Right" DisabledStyle-HorizontalAlign="Right"><br>                                <NumberFormat DecimalDigits="5" /><br>                            </telerik:RadNumericTextBox><br>                        </ItemTemplate><br>                    </telerik:GridTemplateColumn><br>                    <telerik:GridTemplateColumn HeaderText="UOM" UniqueName="OrderUOM" HeaderStyle-Width="100" ItemStyle-Width="100"><br>                        <ItemTemplate><br>                            <telerik:RadComboBox ID="ddlUOM" runat="server" Width="80" /><br>                        </ItemTemplate><br>                    </telerik:GridTemplateColumn><br>                    <telerik:GridBoundColumn DataField="Warehouse" Display="false" /><br>                    <telerik:GridBoundColumn DataField="UOM" Display="false" /><br>                    <telerik:GridBoundColumn DataField="QuantityOnHand" Display="false" /><br>                    <telerik:GridBoundColumn DataField="QuantityCommitted" Display="false" /><br>                    <telerik:GridBoundColumn DataField="QuantityAvailable" Display="false" /><br>                    <telerik:GridBoundColumn DataField="QuantityOpenPO" Display="false" /><br>                    <telerik:GridBoundColumn DataField="QuantityOpenMOComponent" Display="false" /><br>                    <telerik:GridBoundColumn DataField="QuantityOpenSO" Display="false" /><br>                    <telerik:GridBoundColumn DataField="QuantityExpected" Display="false" /><br>                    <telerik:GridDateTimeColumn DataField="LastPurchaseDate" DataFormatString="{0:d}" Display="false" /><br>                    <telerik:GridDateTimeColumn DataField="LastSaleDate" DataFormatString="{0:d}" Display="false" /><br>                    <telerik:GridBoundColumn DataField="MinOrderQuantity" Display="false" DataFormatString="{0:0.#####}" /><br>                    <telerik:GridBoundColumn DataField="SupplierID" Display="false" /><br>                    <telerik:GridBoundColumn DataField="SupplierName" Display="false" /><br>                    <telerik:GridBoundColumn DataField="QuantitySuggested" Display="false" /><br>                    <telerik:GridClientSelectColumn HeaderText="Select Line" UniqueName="SelectLine" HeaderTooltip="Select Line" DataType="System.Boolean" <br>                        HeaderStyle-Width="18" ItemStyle-Width="18" /><br>                </Columns><br>            </MasterTableView><br>            <ClientSettings><br>                <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" /><br>            </ClientSettings><br><br>        </telerik:RadGrid><br>

 

What do I need to change so the last "SelectLine" column is not partially hidden by the scroll bar?

 

Vessy
Telerik team
 answered on 27 Aug 2019
3 answers
145 views

Hello all,

I'm trying to add a checkbox with custom functionality to the NodeInspector for 'A'-tags; specifically I want to alter the href of an a-tag by appending a GET-Parameter depending on the checkbox-state.

So far, I've been able to find a way to select from the available functions of the NodeInspector as shown here, but I couldn't find a way to add a checkbox to the list of available functions.

Is there any such possibility to add a function to the NodeInspector and what would be the intended way to do so?

 

Many thanks,
Matthias

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 26 Aug 2019
1 answer
196 views

Using Telerik .Net Ajax with VS 2015 and 2017.

Below Telerik Link is my prototype.

https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/insert-update-delete-hierarchy/defaultcs.aspx

In my MasterTableView I have a column named 'IsClosed' which is Bit data type in SQL and is a GridBoundColumn in RadGrid.

My question is if column 'isClosed' is true in MasterTableView

1) I would like just to disable 'Add New Records' Commanditem Template Button invisibile to all related GridTableView's but keep 'Refresh'
CommandItem Template Button's available.

2) MasterTableView ''Add New Records' Commanditem Template Button should be visible/enabled.

Thanks a lot

gc_0620

Eyup
Telerik team
 answered on 26 Aug 2019
5 answers
409 views
I have created a skin called "purple_grid" - basically, it is the default skin with a few purple images thrown in. I've gotten everything working except:
.RadGrid_purple_grid .rgEditForm .rgHeader
        {
               background-image:url('Grid/gradient_35.png');
        }

I'm trying to have the edit form popup have the same header style as the command cell DIV.RadGrid_purple_grid .rgCommandCell {

    BACKGROUND-IMAGE: url('Grid/gradient_35.png');
    color: #ffffff !important;   

}

and have tried prefixing with DIV/TD/TR to no avail. Suggestions?



Peter Milchev
Telerik team
 answered on 26 Aug 2019
2 answers
1.1K+ views
We recently got the latest update and I installed in on my computer - when I put the .dll file into the application in the bin folder - it gave me this error.  When I put the old .dll back in - the application works fine.  Am I missing something?  Thanks.
Aseman
Top achievements
Rank 1
Veteran
 answered on 26 Aug 2019
1 answer
199 views

I have a requirement to implement "Tooltip" in html table row. In order to implement Tooltip functionality i have used RadToolTipManager, here i am getting tooltip while hovering on html table row, but unable to populate value in the tooltip, as AjaxUpdate event which i have declared in Customer.ascx.cs file is not working -

RadToolTipManager1= this.Page.Master.FindControl("RadToolTipManager1") as RadToolTipManager
RadToolTipManager1.AjaxUpdate += new ToolTipUpdateEventHandler(RadToolTipManager_AjaxUpdate);

 

Please help me in calling AjaxUpdate event in Customer.ascx.cs file so that i can update my Tooltip with the values coming from DB without using webservice.

I am giving code that i tried to implement Tooltip functionality. for reference -

Master page -

<telerik:RadToolTipManager RenderMode="Lightweight" ID="RadToolTipManager1" Width="400px" Height="200px" ContentScrolling="Auto" HideEvent="ManualClose" RelativeTo="Element" Position="BottomCenter" runat="server" IgnoreAltAttribute="true"></telerik:RadToolTipManager>

 

In script Tooltip.js file - 

showToolTip: function (element) {
                var tooltipManager = telerikDemo.tooltipManager;
              
                //If the user hovers the image before the page has loaded, there is no manager created
                 if (!tooltipManager) return;
                 
                ////Find the tooltip for this element if it has been created  
                 var tooltip = tooltipManager.getToolTipByElement(element);
                //Create a tooltip if no tooltip exists for such element 
                if (!tooltip) {
                  tooltip = tooltipManager.createToolTip(element);
                  //Use the fact that the image was named after a country
                  //Extract the country name from the image, and set it as the value to be supplied to the web-service
                    tooltip.set_targetControlID(element.id)
                }
                //Let the tooltip's own show mechanism take over from here - execute the onmouseover just once
                  element.onmouseover = null;
                //show the tooltip
                setTimeout(function () {
                    tooltip.show();
                }, 10);
            }

 

Customer.ascx

<tr id="Amount" onmouseover='telerikDemo.showToolTip(this)'>
 <td>
<%# Decimal.Parse(Eval("Amount").ToString()) < 0 ? String.Format("({0:N})", Math.Abs(Decimal.Parse(Eval("Amount").ToString()))) :String.Format("{0:N}", Decimal.Parse(Eval("Amount").ToString()))%>
</td>
</tr>

 

Customer.ascx.cs

public partial class Customer: System.Web.UI.UserControl{
   protected RadToolTipManager RadToolTipManager1;
   
 protected void Page_Load(object sender, EventArgs e)
        {
            RadToolTipManager1= this.Page.Master.FindControl("RadToolTipManager1") as RadToolTipManager;
            RadToolTipManager1.AjaxUpdate += new ToolTipUpdateEventHandler(RadToolTipManager_AjaxUpdate);
          }
          protected void RadToolTipManager_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)
          {

             AjaxUpdate is not working.

          }
}

 

I tried to implement above "Tooltip" functionality by referring below link.
https://demos.telerik.com/aspnet-ajax/tooltip/examples/radtooltipmanagerclientapi/defaultcs.aspx

Thanks in advance.

Aditya


 

 

 

 

Eyup
Telerik team
 answered on 23 Aug 2019
4 answers
559 views
Hi,
i need to expand sub menus onClick but not onMouserHover. i have tried it by adding a property ClickToOpen="True"  but while clicking on menu sub menus are opening, page is taking a postback and sub menus are closing again. Sub menus should be in open state but it is closing. Requesting to provide me some solution on this.

Thanks and Regards
A.Rajender
Mukesh
Top achievements
Rank 1
 answered on 23 Aug 2019
4 answers
160 views
I noticed that there is this CSS selector which will screw up the content in the advanced edit form:

.RadScheduler * {
margin: 0;
padding: 0;
}

Is there any way to change this selector so it won't screw up the content in my edit form? I use a user control in there which we also use in the RadGrid where everything is fine.

Thanks!
Scott
Top achievements
Rank 1
 answered on 22 Aug 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?