Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
171 views
I want my end user to select fields from database i allow them and generate reports or charts as they want. is it possible to integrate report designer into asp.net application ? or any other way to achieve my task.
Peter
Telerik team
 answered on 23 Apr 2014
2 answers
110 views
I may have found a bug in the $telerik.getLocation method. I'm using version 2013.3.1324.10 of Telerik UI for ASP.NET AJAX. We ran into an issue in one of our applications where as a user scrolls down a page that contains an AjaxLoadingPanel, when the panel is shown it is shows further up the page than the Ajax panel it should be covering. If I scroll down the page 70px, the AjaxLoadingPanel displays exactly 70px above the panel it should be displaying over. This issue occurs in all webkit based browsers (safari & chrome).

Digging through the telerik client side source we determined that the issue stems from the $telerik.getLocation method. On our page we have 5 total forms, the first of which is hidden within model markup at the top of the page. The $telerik.getLocation method has a specific case towards the end, where it checks if the browser is Safari (really checking for webkit apparently) and if it is, it gets all the forms on the page, then it calls originalGetLocation on the first form in that list. This is where we run into problems. If that form is hidden, originalGetLocation returns a Point object with an x of 0 and y of 0. The script goes on to check if these values are less than zero, if they are it attempts to increment the x and y value of ajax panel by the scroll value of the window which is what is required in order to correctly calculate the position of an element in a webkit browser. The problem is, since originalGetLocation returns 0 for x & y, the increment never happens so as you scroll down the page telerik fails to factor in your scroll and you loading panel shows further and further above the element it should cover. 

I'm not posting the telerik code because I wasn't for sure if it is allowed to add the telerik source that seems to be the problem. Our current source is currently too much to post as an example but I'll try to come up with smaller test case to illustrate the bug.

In the meantime, I've found the removing the check for whether x&y of the form is less than zero and simply incrementing the value no matter what seems to solve the issue in my particular case. Of course, I'd rather not have to override a core method of the telerik source if there is another work around.



Maria Ilieva
Telerik team
 answered on 23 Apr 2014
1 answer
109 views
Hi,


we are using telerik control version 2014.1.225.40(licensed version) and we have IE 10 installed.

On one "cancel" button click event I am getting "jscript runtime error '$telerik' is undefined" error.

and it goes to

if(!$telerik.isChrome&&!$telerik.isSafari) location.

This is happening across the application and we are stuck.
I have implemented with the solution given , but no luck
http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html

Can you pls look and let us give resolution

Thanks,

Suryansu.



Pavlina
Telerik team
 answered on 23 Apr 2014
1 answer
148 views
Is there a way to use javascript to scroll a radgrid to the last row?
Pavlina
Telerik team
 answered on 23 Apr 2014
2 answers
177 views
Hello people,

I have coded my EF5 dbcontext RadGrid datasource as this:

<telerik:RadGrid ID="RadGrid1"
          runat="server"
          CellSpacing="0" DataSourceID="edsMainGrid"
...

<asp:EntityDataSource ID="edsMainGrid" runat="server" 
                            OnContextCreating="edsMainGrid_ContextCreating"
                            EntitySetName="myCollection">
</asp:EntityDataSource>

Protected Sub edsMainGrid_ContextCreating(sender As Object, e As EntityDataSourceContextCreatingEventArgs)
        Dim ctx As myEntities = myEntities()
        e.Context = TryCast(ctx, IObjectContextAdapter).ObjectContext
End Sub


and all runs fine in EF5 but ....


... I'm migrating to EF6. And, as you know, they are several namespaces ported to EntityFramework.dll.

My issue is, than, in EF6, an error is raised in this line of code:

e.Context = TryCast(ctx, IObjectContextAdapter).ObjectContext

The issue is than e.Context and TryCast(ctx, IObjectContextAdapter).ObjectContext, both are ObjectContext objects, the same type, but declared in separate namespace. The error “Value of type 'System.Data.Objects.ObjectContext' cannot be converted to 'System.Data.Entity.Core.Objects.ObjectContext'“ occurs.

My question:

What is the right way to set dbcontext datasource for radgrind in EF6?



thanks in advance!






Daniel
Top achievements
Rank 1
 answered on 23 Apr 2014
2 answers
110 views
Hi,

I´m looking for a way to set flat colors for bar chart. So avoiding this chromish color effect /  color transition.
I just want to set #DA5430  for instance and not getting any "color effects" applied.

Is it possible?
Michael
Top achievements
Rank 1
 answered on 23 Apr 2014
9 answers
399 views
Dear

This html code

<html xmlns="http://www.w3.org/1999/xhtml" height="100%">
<head runat="server">
    <title>未命名頁面</title>
    <style type="text/css">  
    html, body, form  
    {  
        height: 100%;  
        margin: 0px;  
        padding: 0px;  
        overflow: hidden;  
    }  
    </style>  
</head>
<body scroll="no" height="100%">
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager" runat="server" />  
        <div id="ParentDivElement" style="height: 100%;">  
            <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%"  
                Orientation="Horizontal" Skin="Outlook">  
                <telerik:RadPane ID="TopPane" runat="server" Height="100" MinHeight="85" MaxHeight="150"  
                    Scrolling="Both">  
                </telerik:RadPane>  
                <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" />  
                <telerik:RadPane ID="MainPane" runat="server" Scrolling="none" MinWidth="500">  
                    <telerik:RadSplitter ID="NestedSplitter" runat="server" Skin="Outlook" LiveResize="true">  
                        <telerik:RadPane ID="LeftPane" runat="server" Width="200" MinWidth="150" MaxWidth="400">  
                            <!-- Place the content of the pane here -->  
                        </telerik:RadPane>  
                        <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" />  
                        <telerik:RadPane ID="ContentPane" runat="server">  
                            <!-- Place the content of the pane here -->  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>                            
                            <telerik:RadMenu ID="mBar" Runat="server" Skin="Office2007" Width="100%">
                                <Items>
                                    <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1">
                                    </telerik:RadMenuItem>
                                </Items>
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </telerik:RadMenu>
         
        </td>
    </tr>
</table>
                        </telerik:RadPane>  
                    </telerik:RadSplitter>  
                </telerik:RadPane>  
            </telerik:RadSplitter>  
  
    </div>
    </div>
    </form>
</body>
</html>

When I use IE8 to browse this page is normal
But when I change IE8 to [Compatibility View]
The RadMenu will disappear when I scrolling page and then mouse over it
I need resize IE8 browser, RadMenu will show on page

How to fix it?
Thank you very much~>"<
Princy
Top achievements
Rank 2
 answered on 23 Apr 2014
1 answer
398 views
Is any control like ON/OFF Buttons(see the Screenshot) does Telerik offering?
Ivan Zhekov
Telerik team
 answered on 23 Apr 2014
1 answer
116 views
I am using Radcombo box inside a Telerik grid. The aspx code is below for this control:

                                <EditItemTemplate>
                                    <telerik:RadComboBox runat="server" TabIndex="4" ID="rdcmbgrdFesIssuingCompany" EnableLoadOnDemand="True"
                                        DataTextField="carriername" DataValueField="carriernameid" AutoPostBack="true"
                                    HighlightTemplatedItems="true" ShowDropDownOnTextboxClick="false"
                                    ItemsPerRequest="10" EnableVirtualScrolling="true"
                                     OnClientBlur= "ValidateCombinations"   OnItemsRequested="RdCmbIssuingCompany_ItemsRequested" 
                                        OnSelectedIndexChanged="RdCmbIssuingCompany_SelectedIndexChanged" Filter="StartsWith"
                                        OnClientItemsRequesting="OnClientItemsRequesting" OnClientItemsRequested="OnClientItemsRequested"
                                 OnClientFocus="OnClientFocus" OnClientDropDownOpening="OnClientDropDownOpening" MinFilterLength="0"
                                 ShowMoreResultsBox="false" NoWrap="true" DropDownAutoWidth="Enabled" OnClientDropDownOpened="OnRadDropDownOpened"
                                  OnClientSelectedIndexChanged="isTabActive" CausesValidation="true" CssClass="ovfl-hidden">
                                    </telerik:RadComboBox>
                                </EditItemTemplate>



OnItemRequsted below server side event has been called:

Protected Sub RdCmbIssuingCompany_ItemsRequested(ByVal sender As Object, _
                                                     ByVal e As  _
   RadComboBoxItemsRequestedEventArgs)
        
            Carriers.Tables(0).DefaultView.RowFilter = String.Empty
            Dim dvCarrier As DataView = Carriers.Tables(0).DefaultView()
            e.Text = e.Text.Replace("%", "[%]")
            e.Text = e.Text.Replace("'", "[']")
            'For Issuing         
            dvCarrier.RowFilter = "Issuing=1 and carriername like'" _
                                                     & e.Text & "%'"

            e.Message = dvCarrier.Count

            Dim comboBox As RadComboBox = DirectCast(sender, RadComboBox)
            Dim itemMessage As New RadComboBoxItem()


            ' Clear the default Item that has been re-created from ViewState at this point.
            comboBox.Items.Clear()
            dvCarrier.RowFilter = "Issuing=1"
            Dim endOffset As Integer = Math.Min(e.NumberOfItems + 10, dvCarrier.Count)
            comboBox.DataSource = dvCarrier
            comboBox.DataBind()
        
    End Sub


Now when user type text in this control then first it shows all datalist and a "loading" processing text and then it shows the filtered result to the user. For which i have attached the screen shot namely 1 (before server side event called) and 2 (after server side event called).

Now the expected result is that after typing the text in the control it must first filter the record then show the filtered data to the user directly. it should not show the unfiltered data to the user like in first screen shot.

So any idea/suggestion will be helpful.
Shinu
Top achievements
Rank 2
 answered on 23 Apr 2014
3 answers
168 views
I have a Scheduler that only displays All Day appointments and I'm using the AppointmentComparer to sort the entries based on Description.  This works great when the scheduler intially loads in the Month View.  But when I switch it to the Week view, the Appointments are not sorted correctly.  If I switch it back to the Month view, they are again in the incorrect order.  But if I load the page again, the appointments are sorted correctly.  The AppointmentComparer is called only on the initial load and not when I switch to the Week or Day or Month.  How can I call the AppointmentComparer when I switch Views?
Plamen
Telerik team
 answered on 23 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?