Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views
I have appoints that span a few days but when I added the following url that helped me expand the appointments vertically it stopped the expansion horizontally and the appointments are overlapping

Vertical expansion
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/auto-expand-the-height-of-the-appointment.aspx

This is my css

.RadScheduler .rsTimelineView .rsWrap,
        .RadScheduler .rsTimelineView .rsApt,
        .RadScheduler .rsTimelineView .rsAptOut,
        .RadScheduler .rsTimelineView .rsAptIn,
        .RadScheduler .rsTimelineView .rsAptMid,
        .RadScheduler .rsTimelineView .rsAptContent
        {                  
            position: static !important;           
            height: auto !important;
        }                     
         
        .RadScheduler .rsTimelineView .rsWrap
        {          
            float:left;
            overflow: inherit;           
            font-size: 0;
            line-height: 0;
        }

I have attached a picture to show what is occurring. 

thanks,

Chad
Kate
Telerik team
 answered on 23 Aug 2013
9 answers
554 views
Hello, we just upgraded to the latest version of Telerik Web UI controls and we are experiencing text cut off issues with RadComboBox.

Currently we are using the 2013.2.717.35 Version of the Telerik.Web.UI dll.

The problem is when the user selects the value and the drop down closes; the text displayed in the combobox is truncated.
Following are the properties for the RadComboBox:
 <telerik:RadComboBox    ID="SpecialRadComboBox" 
                                        runat="server" 
                                        Skin="Office2007"
                                        AllowCustomText="False" 
                                        MarkFirstMatch="True" 
                                        ShowWhileLoading="True" 
                                        AppendDataBoundItems="True"
                                        Width="450px"
                                        DropDownWidth="450px"
                                        TabIndex="7"
                                        SelectAllTextEvent="None"
                                        onclientselectedindexchanged="ProcessInstructions">

CSS:

 .rcbInputCell INPUT.rcbInput
{
   cursor: default;     
}
div.RadComboBoxDropDown li
{
    white-space:nowrap;
    width:450px !important;
}

We tried this in firefox and it shows scroll bars and ignores the width set to the combobox. It resizes the RadComboBox
to the length of the rcbInput.

IE8/10 - displays the combobox but truncates the text.

Please advice.
Thanks



Kate
Telerik team
 answered on 23 Aug 2013
3 answers
171 views
Have an existing page that was using Classic ASP (OldLayout.jpg) and I am trying to do a similar approach using a RadGrid with Grouping (NewLayout.jpg).  As I do realize that there will be differences and I would like to have things look similar. 

Is there anyway of adding a "Master Header" to the grid? "Policyholder Board Reporting", currently it is just a Header for a field.

There will 2 main categories that it can be broken down by ASI or ESI.  Is there anyway of only displaying them once, when it changes?  So it would read "ASI" then records and "ESI" then records.  Currently it reads "ASI" then Date

How can I get my Dates formatted to in Long Date Time format.  <Day of week> Month Day, Year

Below is the code I am trying to implement and hopefully it will help answer my questions.  Also I would like to delete but need to get the ID which is apart of the grid and was trying to get that via the RadGrid_ItemDeleted. 
<telerik:RadGrid ID="_grdExisting" runat="server"
AutoGenerateColumns="False" CellSpacing="0" 
GridLines="None">
 
<HeaderStyle ForeColor="White" BackColor="Black" HorizontalAlign="Center" />
<MultiHeaderItemStyle BackColor="Green" ForeColor="Yellow" />
<MasterTableView DataKeyNames="BoardReportID">
 
<GroupByExpressions>
    <telerik:GridGroupByExpression>
        <SelectFields>
            <telerik:GridGroupByField FieldName="ASI_ESI" FormatString="{0}"></telerik:GridGroupByField>
        </SelectFields>
        <SelectFields>
            <telerik:GridGroupByField FieldName="BoardReportDate"  FormatString="{0:D}"></telerik:GridGroupByField>
        </SelectFields>
        <GroupByFields>
            <telerik:GridGroupByField FieldName="ASI_ESI" SortOrder="Ascending"></telerik:GridGroupByField>
        </GroupByFields>
        <GroupByFields>
            <telerik:GridGroupByField FieldName="BoardReportDate" SortOrder="Descending" FormatString="{0:D}"></telerik:GridGroupByField>
        </GroupByFields>
    </telerik:GridGroupByExpression>
</GroupByExpressions>  
<GroupHeaderTemplate>
        <asp:Label runat="server" ID="Label2" Text='<%# DirectCast(Container, GridGroupHeaderItem).AggregatesValues("ASI_ESI") & "SI" %>'
            Visible='<%# ((DirectCast(Container, GridGroupHeaderItem).AggregatesValues("ASI_ESI")) IsNot Nothing)%>'>
        </asp:Label>
        <asp:Label runat="server" ID="Label1" Text='<%# DirectCast(Container, GridGroupHeaderItem).AggregatesValues("BoardReportDate") %>'
            Visible='<%# ((DirectCast(Container, GridGroupHeaderItem).AggregatesValues("BoardReportDate")) IsNot Nothing)%>'>
        </asp:Label>
</GroupHeaderTemplate>
<Columns>
    <telerik:GridHyperLinkColumn DataTextField="BoardReportDesc"
            ItemStyle-HorizontalAlign="Left" UniqueName="NonComplianceCount"
            HeaderStyle-Font-Bold="false" HeaderStyle-Wrap="false"
            DataNavigateUrlFields="ReportLocation"
            DataNavigateUrlFormatString="Reports/{0}"
            HeaderStyle-Width="150px" HeaderText="Policyholder Board Reporting" >
            <ItemStyle Wrap="True" Font-Underline="true"/>
    </telerik:GridHyperLinkColumn>
    <telerik:GridButtonColumn ConfirmText="Delete this product?" ButtonType="ImageButton"
            CommandName="Delete" Text="Delete" UniqueName="DeleteColumn1">
            <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton"></ItemStyle>
    </telerik:GridButtonColumn>
</Columns>
</MasterTableView>
 
</telerik:RadGrid>
Angel Petrov
Telerik team
 answered on 23 Aug 2013
1 answer
207 views
I have noticed that every time that a post-back is triggered with RadControls, I receive an 'Are  you sure you want to leave this page?' prompt in Firefox.  So far I have tested it with the RadListBox and the RadTabStrip/RadMultiPage controls. 

Is there a way to stop this prompt from displaying every time I click a control?

Shinu
Top achievements
Rank 2
 answered on 23 Aug 2013
3 answers
195 views
I read through your caching example and I just have a couple quick questions. Can I set the amount of time that the cache refreshes, or is it static, or based on the session timeout or something. Also, does this cache it so if I had a grid on page 1, then went to page 2, then back to page 1, it still pulls the cached version?

Here's my problem. I have a gird with a large amount of data that is relatively statice. I want the page to be able to load super fast (I get it'll have to pull the data once) so I'm trying to do everything I can to make this page load as fast as I can.
Princy
Top achievements
Rank 2
 answered on 23 Aug 2013
1 answer
193 views

My name is Albert Cepeda, and I’m a developer at Deloitte

We upgrade Telerik’s controls to 2013 version, but we found a new issue/feature in the RadGrid's  GridTemplateColumn, when I set the Visible attribute To false, then

in code-behind the value hold by this column is turn to &nbsp; I tried with the Display attribute obtaining successful results, but in this moment all our sites use the Visible atttribute in many

Radgrids in many Forms.

 

There is any way to fix this behavior in our sites in a rapid way?

 

Best Regards,

Princy
Top achievements
Rank 2
 answered on 23 Aug 2013
8 answers
427 views
I have an <asp:Panel that I am enabling and disabling. I have a combobox in that panel.

The combobox does not look disabled. It seems to work fine but looks enabled regardless.

I am using the Telerik theme. See attached.

Thanks, Marty
Kate
Telerik team
 answered on 23 Aug 2013
2 answers
137 views
Hi!

I have a case where I want to disable Drag and Drop based on whether the user is accessing my site from a laptop or mobile device.  If it's Mobile, I want to disable it.

I thought that the OnInit event would be the right place to do this.  Could someone point me in the right direction for this?

TIA!
protected void ItemTree_Init(object sender, EventArgs e)
{
    var browsersniff = Request.Browser;
        if (browsersniff.IsMobileDevice == true)
        {
            this.ItemTree.EnableDragAndDrop = false;
            this.ItemTree.EnableDragAndDropBetweenNodes = false;
        }
}

       

 (Edit: I should add that the code above does get hit when I run on the debugger.  It just isn't disabling Drag/Drop)

 

Richard
Top achievements
Rank 1
 answered on 23 Aug 2013
3 answers
180 views

Telerik Experts,

We have created some
SharePoint Visual Web Parts containing Telerik Rad Control ( RadGrid for ASP .Net Ajax) using Visual Studio 2013. These are simple webparts that consume sharepoint lists as datasource. We sucessfully deployed the Web Parts to SharePoint 2013 and are able to add these WebParts in SharePoint pages.

The solution works fine as long as we are using default SharePoint MasterPage. There is a feature in SharePoint which lets you create
custommasterpages for the site from an html file. The details as how it works can be found here:
http://preachingsharepoint.blogspot.com/2012/09/sharepoint-2013-how-to-add-html-master.html

When we use these converted masterpages for the site pages, webparts developed using Telerik Controls for ASP .Net AJAX no longer works and pages start erroring out. Here's the error message the we get
"The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. "

We tried creating a webpart with standard ASP .Net controls and use them with these custom masterpages. These WebParts works fine, so the problem is isolated to using WebParts containing Telerik controls and using the custom masterpages that are converted from html. We were able to reproduce this issue on multiple SharePoint farms, so its not an one off issue.

Tsvetoslav
Telerik team
 answered on 23 Aug 2013
2 answers
130 views
I have a panel and dropdown like so
<telerik:RadAjaxPanel runat="server" ID="panel" LoadingPanelID="loadingPanel">
<asp:DropDownList ID="itemDrop" runat="server"></asp:DropDownList>
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxLoadingPanel ID="loadingPanel" BackgroundPosition="Center" runat="server">
        <img id="Img1" alt="Loading..." src="~/images/loading.gif" runat="server" style="border: 0px;" />
    </telerik:RadAjaxLoadingPanel>

In the code behind I attach a JS function to the onchange event of the dropdown. Here is the JS function
function showFields(id) {
    var dd = document.getElementById(id);
    var itemArr = (dd.options[dd.selectedIndex].value).split(";;;");
     
    var perDiv = document.getElementById("percentDiv");
    var quantDiv = document.getElementById("quantityDiv");
     
    var disValue = itemArr[1];
    var item = itemArr[0];
     
    if (item == "-1") {
        perDiv.style.display = "none";
        quantDiv.style.display = "none";
    }
    else {
         
        //see if we show quantity as well
        if (disValue > 0) {
            perDiv.style.display = "block";
            quantDiv.style.display = "block";
        }
        else {
            perDiv.style.display = "none";
            quantDiv.style.display = "block";
        }//if disValue > 0
 
         
    }//if item == -1
}

Basically, I pass in the client id of the drop down. It then reads the value and decides whether or not to show some text boxes. They are set to display none by default. The problem I have is, when I do a post back with the ajax panel, the text boxes go back to being hidden. I am also calling this javascript function in the page load. When I remove the ajax panel, it sees the dd and keeps the text boxes visible. However, when I add the ajaxpanel back in, the textboxes go back to hidden on the postback. Any ideas why?






Eyup
Telerik team
 answered on 23 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?