Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
167 views
Hi,

I am trying to add a few space after last schedule slot inside timeline view. My scheduler will allow the user to key in three different timing in schedule. But after key in two timing , there is no space to allow them to click on timeslot to add one more timing with inline edit view. Please see below picture.


I tried to play around  with css.
.RadScheduler .rsTimelineView .rsAptIn
  {
      height:14px !important;
  }
  .RadScheduler .rsTimelineView .rsAptMid
  {
      height:14px !important;
  }
   
 
.RadScheduler .rsTimelineView  .rsAptOut
 {
      height:14px !important;
  }
   
   .RadScheduler .rsTimelineView  .rsApt
 {
      height:14px !important;
  }
   
  .RadScheduler .rsTimelineView .rsLastWrap .rsLastSpacingWrapper
  {
      height: 30px !important;
  }

 But it will apply for both schedule slot as below picture. I don't want space in between. Is there anyone who can help me with this issue.
 

Thanks in advance.

Best regards,
Ei Wai





Boyan Dimitrov
Telerik team
 answered on 15 Dec 2014
5 answers
768 views
Hi,

I have tried several combinations from other posts but I cannot see why my grid looks as in the screenshot?

<div style="height:400px; border:solid">
    <telerik:RadGrid ID="RadGrid1" Height="100%" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource1" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" GroupPanelPosition="Top" ShowGroupPanel="True" AllowMultiRowSelection="True">
        <ClientSettings AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
            <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="100%" />
            <Resizing AllowColumnResize="True" AllowResizeToFit="True" />
        </ClientSettings>
        <MasterTableView >
           ...
        </MasterTableView>
    </telerik:RadGrid>
</div>
Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 15 Dec 2014
6 answers
1.0K+ views
String not getting correctly, While exporting grid into excel. I am using "GridExcelExportFormat" is "Xlsx". Before exporting into excel the number string are showing correctly. But after exporting those numbers are automatically converted into date format. I am used "SuppressColumnDataFormatStrings" true/false, then also getting same issue. Please help me.

Grid column datatype is string.
Daniel
Telerik team
 answered on 15 Dec 2014
1 answer
89 views
We have a RadToolbBar where we need to pro grammatically insert some buttons in the code behind. It works for the most part, except for buttons with an ItemTemplate. The toolbar is defined in the ASPX markup and has some buttons already. E.g.,

        <telerik:RadToolBar ID="toolbar" runat="server">
            <Items>
                <telerik:RadToolBarButton Text="Sample" Value="Sample" />
            </Items>
        </telerik:RadToolBar>    

In the Page_Init, we always insert additional buttons at the beginning of the toolbar (even on postback), e.g.

                    var btn= new RadToolBarDropDown();
                    btn.Text = "Test";
                    toolbar.Items.Insert(0, btn);

This appears to be working. However, we have buttons that use an ItemTemplate (using an ITemplate with an InstantiateIn method defined). These only work if we add to the end of the toolbar (toolbar.Items.Add(btn)), but not on Insert (toolbar.Items.Insert(0, btn)).

How do you insert a button with an ItemTemplate to the beginning of a statically defined RadToolbar?

The code used to insert the button:

var btn = new RadToolBarButton();
btn.Text = "Test";
btn.Value = "Test";
btn.ItemTemplate = new SampleTemplate();
toolbar.Items.Insert(0, btn);

The test template code:

    public class SampleTemplate : ITemplate {
        public void InstantiateIn(Control container) {
            var label = new Label();
            label.Text = "Test";
            label.ID = "lblTest";
            container.Controls.Add(label);
        }
    }











Plamen
Telerik team
 answered on 15 Dec 2014
3 answers
121 views
This is a basic design question on using radgrid with normalize table structures from sql server. This is a basic enough question it seems that I should have already solved the problem, but I seem to be having trouble coming up with the answer.

I have a table that has fields that are smallint type that contain Key values from a lookup table.
When in edit or insert mode I use a radcombobox to display the text from the lookup and with the valueField being the lookupID
When in view mode, I don't want to display the smallint values as they are meaningless to to the user. I have gotten around my problem by displaying the radcombo box disabled to get the display values I want but is not visually appealing.

How have others solved this problem using normalized tables as the datasource.
Konstantin Dikov
Telerik team
 answered on 15 Dec 2014
7 answers
333 views
Dear Telerik Team

I want to create a page, where the tiles are loaded dynamically from the database. Therefore I added a RadTileList, a RadPersistenceManager and a CustomStorageProvider. When I drag the tiles, the xml will be saved into the database in the correct format. 

After calling the page again the tiles should be shown in the same position. Therefore I use the LoadState() method of the Persistencemanager. The xml string is loaded in the right format and with right information into the RadPersistanceManager. But after rendering the page, only one tile is shown. Although all tiles has been successfully loaded into the RadTileList before.

Thank you for your help
Greetings

Thomas Luck

01.using System;
02.using Telerik.Web.UI;
03. 
04.namespace Isonet.TxpEnterprise.Developer
05.{
06.    public partial class DynamicRadTileList : Page
07.    {
08.        private RadTileListManager myTileManager;
09.        private const int myUserId = 1;
10.        protected void Page_Load(object sender, EventArgs e)
11.        {
12.            uiRadPersistenceManager.StorageProvider = new DbStorageProvider();
13.            myTileManager = new RadTileListManager();
14.            setUi();
15.            if (!IsPostBack)
16.            {
17.                loadViewState();
18.            }
19.        }
20. 
21.        private void setUi()
22.        {
23.            //gets all Tiles
24.            uiRadTileList.Groups.AddRange(myTileManager.GetRadTileGroupList(myUserId));
25.            uiRadTileList.TileRows = 4;
26.        }
27. 
28.        protected void uiIconTileCreateTile_Click(object sender, EventArgs e)
29.        {
30.            uiRadTileList.Groups[0].Tiles.Add(myTileManager.CreateNewTile(uiColorPicker.SelectedColor, myUserId));
31.        }
32. 
33.        private void saveViewState()
34.        {
35.            uiRadPersistenceManager.StorageProviderKey = myUserId.ToString();
36.            uiRadPersistenceManager.SaveState();
37.        }
38. 
39.        private void loadViewState()
40.        {
41.            uiRadPersistenceManager.StorageProviderKey = myUserId.ToString();
42.            uiRadPersistenceManager.LoadState();
43.        }
44. 
45.        protected void OnAjaxRequestHandler(object sender, AjaxRequestEventArgs e)
46.        {
47.            if (e.Argument == "storeTileOrder")
48.            {
49.                saveViewState();
50.            }
51.        }
52.    }
53.}
01.<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DynamicRadTileList.aspx.cs" Inherits="Isonet.TxpEnterprise.Developer.DynamicRadTileList" %>
02. 
03.<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
04.<!DOCTYPE html>
05. 
07.<head runat="server">
08.    <title></title>
09.</head>
10.<body>
11.    <form id="form1" runat="server">
12.        <telerik:RadAjaxManager ID="uiRadAjaxManager" runat="server" OnAjaxRequest="OnAjaxRequestHandler">
13.        </telerik:RadAjaxManager>
14.        <telerik:RadPersistenceManager runat="server" ID="uiRadPersistenceManager" >
15.            <PersistenceSettings>
16.                <telerik:PersistenceSetting ControlID="uiRadTileList" />
17.            </PersistenceSettings>
18.        </telerik:RadPersistenceManager>
19.        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnablePageMethods="True"/>
20.        <div>
21.            <asp:Button ID="create" OnClick="uiIconTileCreateTile_Click" runat="server" Text="Create" />
22.            <telerik:RadColorPicker ID="uiColorPicker" runat="server"></telerik:RadColorPicker>
23.            <telerik:RadTileList  ID="uiRadTileList" runat="server" EnableDragAndDrop="true" OnClientTileDropped="fuu" SelectionMode="Multiple" Width="100%">
24.            </telerik:RadTileList>
25.        </div>
26.    </form>
27.    <script type="text/javascript">
28.               function fuu() {
29.                   var ajaxManager = $find("<%= uiRadAjaxManager.ClientID %>");
30.                   ajaxManager.ajaxRequest("storeTileOrder");;
31.               }
32.    </script>
33.</body>
34.</html>
01.namespace Isonet.TxpEnterprise.Developer
02.{
03.    public class RadTileListManager
04.    {
05.        public List<TileGroup> GetRadTileGroupList(int userId)
06.        {
07.            List<TileGroup> tileGroupList = new List<TileGroup>();
08.            tileGroupList.Add(new TileGroup());
09.            tileGroupList.Add(new TileGroup());
10.            tileGroupList.Add(new TileGroup());
11.            addExistingRadTilesToGroup(tileGroupList[0], userId);
12.            return tileGroupList;
13.        }
14. 
15.        private void addExistingRadTilesToGroup(TileGroup tileGroup, int userId)
16.        {
17.            foreach (DataRow row in ds.Tables[0].Rows)
18.            {
19.                RadTextTile textTile = new RadTextTile();
20.                textTile.BackColor = Color.FromArgb(int.Parse(row.Field<string>("color")));
21.                tileGroup.Tiles.Add(textTile);
22.            }
23.        }
24.    }
25.}
Marin Bratanov
Telerik team
 answered on 15 Dec 2014
6 answers
417 views
Hi,

We are facing a strange issue with List box recently. We have a list box in our application for assigning the users to some groups. We wrote the server transfer event for transferring the user because while transferring the user we need to check some condition in the back end. It is working fine for last 2 years. Recently when we transfer the user to the destination list box, it is giving following java script error and transferring functionality is not working. 

"Uncaught Sys.WebForms.PageRequestManagerServerEroorException: Sys.WebForms.PageRequestManagerServerEroorException:
511.8182 is not a valid value for Int32"

(Attached Image)

the value is not always 511.8182. It is variable.

this issue is coming in Chrome browser only and in some systems only.

We didn't update any telerik dll recently.
SHERFUDEEN
Top achievements
Rank 1
 answered on 15 Dec 2014
7 answers
1.0K+ views
I get the below error when trying to use the StyleSheetManager

The 'Telerik.Web.UI.StyleSheetFolders' key is missing from the <appSettings /> section of the application's web.config file.
This setting is required when registering external style sheet files in RadStyleSheetManager.

<telerik:RadStyleSheetManager ID="oStyleSheetManager" runat="server">
        <StyleSheets>
            <telerik:StyleSheetReference Path="css/DivRoundedCornerBlack.css"/>
        </StyleSheets>
Dimitar Terziev
Telerik team
 answered on 15 Dec 2014
1 answer
133 views
Hello,
I am using RadAsyncUpload for upload files from Client machine to server.
While uploading i would like to read the file(pdf,word,jpg) properties
Like File Created Date ,File Modified Date , File Accessed Date, Title, Subject, Author

How can i read these properties?


Thank you
Genady Sergeev
Telerik team
 answered on 15 Dec 2014
1 answer
100 views
Hi

My RadTreeList has seven columns and I have added functionality to Export the treelist to Excel. How can I exclude a column for being exported, i.e. I have columnA, columnB, columnC, columnD, columnE, columnF, and columnG but when exporting, I do not want columnF to be exported.

Is this possible? If yes, sample code would be appreciated
Angel Petrov
Telerik team
 answered on 15 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?