Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
118 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
321 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
397 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
989 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
128 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
93 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
2 answers
209 views
Hello,

I am working on a project with a RadGrid.

The user can select rows. However, there is a limit to the number of rows the user can select.
If the user selects more than the limit, a message pops-up telling the user about the limit. Then, all the rows surpassing the limit are unselected.

I have implement the JS function OnRowSelecting.
function Row_Selecting(sender, args) {
    var grid = $find("<%=MyGrid2.ClientID%>");
    var masterTable = grid.get_masterTableView();
    if (masterTable.get_selectedItems().length >= MAX_NUMBER) {
        alert("you reach the maximum number);
        args.set_cancel(true);
    }
}


I have a problem when the user selects multiple rows with SHIFT, the above message shows on each row, surpassing the limit.

How can I catch the SHIFT-SELECT event, so I can pop-up the message only once, and not for each row?

Thank you,
Daniel.
Daniel
Top achievements
Rank 1
 answered on 14 Dec 2014
1 answer
399 views
Hi,

I have read that this may be possible by setting the queuing on radAjaxManager? I have:

 - A button that is ajaxed to start a server-side process
 - A timer that is ajaxed to read progress from the process above and update a label

It appears to me that only one ajax process can run at a time because the timer stops firing while the other process is running?

Konstantin Dikov
Telerik team
 answered on 13 Dec 2014
2 answers
122 views
I've implemented a RadCombobox inside a sticky footer in a RadPageLayout.  The issue is that when one scrolls the main content, the dropdown also scrolls!  Now I resolved that matter this way:  

.rcbScroll
{
    position:fixed !important;
    width:410px !important;
    bottom:80px !important;
}
.rcbHeader
{
    position:fixed !important;
    bottom:153px !important;
    width:410px !important;
}
.rcbWidth
{
    background-color:White !important;
    width:425px !important;
}

And everything works great!  Except there's one issue... there's a RadGrid in the main section which has a row count / page combobox... and that too uses the RadComboBox, so it gets placed where the sticky footer's combo box goes!  Is there a way to resolve this issue?

I'm hoping this is enough info, but I'll be happy to give more if required.  Many thanks for any assistance you might have.

Ivan Zhekov
Telerik team
 answered on 13 Dec 2014
1 answer
317 views
I have a RadDropDownList which I want to bind client side on pageLoad or OnClientLoad event of DropDown.
How to achieve this? Could anyone plz respond soon.
Ivan Zhekov
Telerik team
 answered on 13 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?