Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
67 views
I have a problem were the splitter doesn't render properly when BorderSize = 0

At the bottom of this post is how I want the code to be.

I have set BorderSize="0" to get rid of the borders and I have OnClientLoaded calling javascript function SplitterLoaded so that the Height of the Splitter is equal to the content.

when the page loads, its fine. when I change the size of the browser though (without reloading the page), the Splitter completely disappears - apart from the button that does the collapsing of the panels.

When I remove the BorderSize="0" tag, it works fine.
so I can change the size of the browser by double-clicking the top of the browser window so that it makes the window slightly smaller, or I can start with the window smaller (not filling the full screen) and then drag from the edges of the browser to make it bigger/smaller.

both ways will result in the Splitter not showing properly
<div id="content">
 
 
                   <telerik:RadSplitter BorderSize="0" OnClientLoaded="SplitterLoaded"   VisibleDuringInit="false"  ID="RadSplitter2" Width="100%" Height="100%" runat="server" Orientation="Vertical">
                       <telerik:RadPane ID="pane1" runat="server" Width="120px"
                           Scrolling="None">
                           <div class="sidebar">
                               <comx:VMenu ID="VMenu" runat="server" />
                           </div>
                       </telerik:RadPane>
                       <telerik:RadSplitBar EnableResize="false" CollapseMode="Forward" ID="RadSplitBar1" runat="server">
                       </telerik:RadSplitBar>
                       <telerik:RadPane ID="pane2" runat="server" >
         
                               <div class="workingarea_splitter">
                                   <comx:Menubar ID="MenuBar" runat="server" />
                                   <asp:Label ID="lblItemName" runat="server" CssClass="itemname" />
                                   <asp:Label ID="lblError" runat="server" CssClass="invisible" />
                                   <asp:ContentPlaceHolder ID="Content" runat="server" />
                               </div>
        
                       </telerik:RadPane>
                   </telerik:RadSplitter>
 
 
               </div>


function SplitterLoaded(splitter, arg) {
    var pane = splitter.getPaneById('<%= pane2.ClientID %>');
    var height = pane.getContentElement().scrollHeight;
    splitter.set_height(splitter.get_height() - pane.get_height() + height);
    pane.set_height(height);
    }


David
Top achievements
Rank 1
 answered on 27 Jan 2014
1 answer
323 views
Hello
I try to work with telerik button using client side in external JS file but i cannot detect it, but when i put the code inside the page it works good.
this is Page HTML code 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript" src="JavaScript.js"></script>
    </telerik:RadScriptBlock>
</head>
<body>
    <form id="form1" runat="server">
         
    <div>
        <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" OnClientClicked="test"></telerik:RadButton>
    </div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
 
    </form>
     
</body>
</html>
and this is my JS file code
function test(sender,args) {
    var button = $find("<%= RadButton1.ClientID %>");
    alert(button.get_text());
}
thanx in advance
Marin Bratanov
Telerik team
 answered on 27 Jan 2014
1 answer
84 views
Hello,

We recently *attempted* to upgrade our project to be used in visual studio 2013. Upon first attempting to build, we got an error saying the Ajaxcontroltoolkit was not found. So we added a reference to the new 4.0 Ajaxcontroltoolkit, this is a ASP.NET 4.0 application and the Telerik controls are the 4.0 version, however our radgrids are showing up completely blank.

I have found several forum threads pointing saying you must verify everything is 4.0 and such and I have, but I cannot get the Radgrid to display at all.

How can I fix this issue?

Thanks for the help!
Pavlina
Telerik team
 answered on 27 Jan 2014
1 answer
83 views
Hi
Is it possible to change the filter icon image?
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2014
4 answers
96 views
hello,

i have a problem with the combobox. The rendering seems not to be all right.
I have a screenshot. An idea whats wrong?

greetings
Jens
Jens
Top achievements
Rank 1
Iron
Iron
 answered on 27 Jan 2014
1 answer
355 views
hi support team

               can u please provide sample code for me to find all RAD CONTROLS in asp.net web page... i have many rad controls in my aspx page. i want to find all the controls server side...
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2014
1 answer
179 views
Hi,
  Is double click event is possible in client side in scheduler time slot ? please tell which event in client side will trigger the double click? 
  I used "OnClientAppointmentInserting" but this event not trigger in double click in appointment scheduler time slot.
Plamen
Telerik team
 answered on 27 Jan 2014
1 answer
293 views
Hey Guys,

The problem I am having is that the filtering functionality of the AutoCompleteBox is case sensitive.

I have names stored in the database with an uppercase first letter, so if a user enters a lower case letter into the autocompletebox, it does not display any results.

I have searched for properties within the control itself to work around this, but there seems to be none.  Is there a way to handle the filtering method myself in the server code, or even the client?

I'm implementing a RadAutoCompleteBox to search through a list of items bound to the control using a LinqDataSource.

In the LinqDataSource, I am use the onselecting event to fetch the data.

protected void LinqDataSourceForAutoComplete_OnSelecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            using (DataClassesDataContext dc = new DataClassesDataContext())
            {
                var membersUsers = (from ue in dc.UserEntities
                    join boe in dc.BusinessOwnerEntities on ue.ID equals boe.UserEntity.ID into j1
                    from j2 in j1.DefaultIfEmpty()
                    where j2 != null
                    select new
                    {
                        ID = ue.ID,
                        Description =
                            string.Format("{0}, {1}", ue.Surname,
                                ue.PreferredName != null ? ue.PreferredName : ue.FirstName)
                    }).ToList();
                e.Result = membersUsers;
            }
        }

and here is the markup for the RadAutoCompleteBox

<telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox1
                                DataSourceID="LinqDataSourceForAutoComplete
                                DataValueField="ID" 
                                DataTextField="Description"
                                InputType="Token"
                                TextSettings-SelectionMode="Single"
                                Filter="Contains"
                                >
                            </telerik:RadAutoCompleteBox>

Any help on how I could get around this would be greatly appreciated!
Kate
Telerik team
 answered on 27 Jan 2014
3 answers
75 views
Hi,

In our RadScheduler, we can't select timeslots by dragging the mouse over free cells.
It happens also if the client clicks on a single cell, without dragging the mouse.
I thought it's related to the ReadOnly property, but it is set to false
Also on right-click, the context menu is shown, but the cell is not selected.
Please advise. We want the timeslots will be selectable.

* We use version 2013.2.717.40.
** We use client side binding with web service.

Thanks,
Guy.
Kate
Telerik team
 answered on 27 Jan 2014
1 answer
63 views
Hi,

I'm using a rad grid to display invoice items. The first column of the grid is a drop down menu which gives the option to select an item. Once the item is selected the remaining columns will auto populate with price , quantity, amount, etc. Once the amount column populates . I execute a function (OnValueChanged event) to save that row of data with ajax web method. The problem occurs after the first row of data saves. If you immediately move to the second row and select an item sometimes it saves and sometimes it doesn't. If I wait about a minute to select an item in another row it will work but that's not ideal. It always works if I place a breakpoint or an alert in the function. I think it maybe an ajax issue BTW it works perfectly in IE.  Would appreciate any help. I've attached a screen shot of the grid and the code.

function AmountChanged(sender, args) {
 
          if (args._oldValue != '') {
 
              CalculateGridLineTotals();
              ReCalculateTaxes();                  
          }
          console.log("Row Number " + rowIndex1)
          SaveInvoiceItems();
       
      }
function SaveInvoiceItems() {

                var masterTable = $find("<%=grdInvoiceItems.ClientID%>").get_masterTableView();
                //for (var row = 0; row < masterTable.get_dataItems().length; row++) {
                var Id = masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[rowIndex1], "Id");

                var grid = $find("<%=grdInvoiceItems.ClientID%>");
                var masterTbl = grid.get_masterTableView();
                var gridRow = masterTbl.get_dataItems()[rowIndex1];

                var item = gridRow.findControl("ddlItems")._text;
                var description = gridRow.findControl("txtDescription")._text;
                var price = gridRow.findControl("txtPrice")._text;
                var qty = gridRow.findControl("txtQty")._text;
                var discount = gridRow.findControl("txtDiscount")._text;
                var amount = gridRow.findControl("lblAmount")._text;

                if (discount == '')
                    discount = 0;
                if (price == '')
                    price = 0;
                if (qty == '')
                    qty = 0;
                if (amount == '')
                    amount = 0;

                var obj_as_object = { id: Id.innerHTML, item: item, description: description, price: price, qty: qty, discount: discount, amount: amount };;
                var obj_as_string = JSON.stringify(obj_as_object);

                var xhr = $.ajax({
                    type: "POST",
                    url: "/WebService/InvoiceWebService.asmx/UpdateRecurringInvoiceItems",
                    data: obj_as_string,
                    'async': false,
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    beforeSend: function (xhr, settings) {
                        xhr.startTime = new Date().getTime();
                        $("#wait").css("display", "block");
                    },
                    complete: function (xhr) {
                        var elapsed = new Date().getTime() - xhr.startTime;
                        if (elapsed < 3000) {
                            $("#wait").css("display", "block").delay(7000 - elapsed).hide(1);
                        } else {
                            $("#wait").css("display", "block").hide();
                        }
                    }
                });

                //)).then(function (data, textStatus, jqXHR) {
                //    //alert("what is this"); // Alerts 200
                //});



                //setTimeout(doSomething(Id.innerHTML), 3000);
                //}

            }
   

thanks,
Ron.
Viktor Tachev
Telerik team
 answered on 27 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?