Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
72 views
Hi team;

Before I ask my question, let me explain what my original plan was before deciding to use "File Explorer" and why I had that original plan. Then I'll ask my question and how I can still get the benefit of my original plan and be able to use the FileExplorer.

I started creating a Database table with hierarchical structure (Parent_ID, Child_ID) to create a complete directory structure in the database. Although these directories never would be created on the server side, but in the end user's mind they would think these are the actual directories on server (sort of virtual directories). Each record of the directory had a few properties (like if upload is allowed, If the directory is private or shared, Max number of files allowed and etc.). The reason I created this table is to have these properties that I could make decision at runtime if everyone can upload files or if the directory is private. Or who owns the directory and etc. But in reality there wasn't any directory.
Then I had another database table for files. that were connected to directory table as a child table and file record had it's properties that gave me controls of the files. Although, all the files would be stored in one physical directory. Just the two database tables will create a virtual directory to users.
But I had to write all the codes for uploading, adding new files, deleting, renaming, displaying images and etc.

Then I saw the FileExplorer which blew me away, because I had to create an exact control that works with my Directory and files tables. The big difference is that, your File Explorer works directly with OS directory and file system. But using your control, I loose all those properties that I had described that I could use at runtime to make decisions on. Here, with your File Explorer, I loose the control that I need to have for my app.

My question: Now that I have explained my problem, my question is, how can I use your control and still be able to have the features that I was planning to have in my original plan?
I was thinking of using your File explorer and I would still create the Directory and file tables side by side. The File Explorer would serve the actual work and my tables would serve as decision making metadata.
But, to do so, I need a series of "Post" action events to store the info in my tables, like the directory name (that was created or renamed or deleted), file name and etc. I only see Events that are "Before" the actions are taken place.

So, what direction would you suggest?
Or if I go with my idea, I'm missing those Post Events to sore the data.

Looking forward to your help!
Thanks!
..Ben
Ben Hayat
Top achievements
Rank 2
 answered on 14 May 2011
2 answers
265 views
Searched everywhere for a good example where a column with Aggregate = "Custom" performs a calculation based on the values of 2 or more other group footer values

Plenty of requests for help but replies don't really seem to get the issue and keep referring to online help/samples which don't appear to address the problem other than identifying the OnCustomAggregate event.

The closest useful example I have seen is:-

http://www.telerik.com/community/forums/aspnet-ajax/grid/how-do-the-built-in-footer-aggregate-functions-work.aspx but this only deals with manipulating the group footer value based on the line item value.


What I am interested in is to have a grid calculate the Cancel % in each footer based on values in the group footer for Total & Cancel:

Group 1
Total    Complete    Cancel    Cancel %
100            50               50         50% 
200           180              20         10%
300            225            75          25%
Group Footer 1
600            455            145        24.2%

Group 2
Total    Complete    Cancel    Cancel %
200           150             0           50% 
300           270             30         10%
400           320            80          20%
Group Footer 2
900            740          110        12.2%

Thanks

Thai
Top achievements
Rank 1
 answered on 14 May 2011
1 answer
67 views
Hello,

I am creating a radchart runtime. Observed that after binding the data chart flows out of the canvas. See the attached image.

How to restrict the chart to be in the assigned height and width ?
prayag ganoje
Top achievements
Rank 1
 answered on 14 May 2011
1 answer
62 views
When using the AutoInsert / AutoUpdate functions on a RadGrid, the iAuditable method is not being called. However if I intercept the onInsert / onUpdate calls, and manually perform the Insert / Update then the iAuditable method fires correctly. I'm trying to limit the amount of code to ZERO on several simple admin screens by utilizing the base Grid Functions available, any help would be greatly appreciated.
Ryan
Top achievements
Rank 1
 answered on 13 May 2011
8 answers
126 views
Hi,

Am trying to use the HeaderContextMenu for RadGrid to provide application-specific options. When I try to remove all the pre-defined options using this solution - http://www.telerik.com/community/forums/aspnet-ajax/grid/headercontextmenu-add-remove-items-vb-net.aspx#1284516 , the menu is not displayed at all. Specifically, when I remove the "Columns" option.

Is there any other way to do this? Or can I add in a HeaderContextMenu of my own to a specific column?

And I also tried to display the menu on left click using this snippet

function OnColumnClick(sender, args)
{
args.get_gridColumn().showHeaderMenu(args.domEvent);
}

But the menu doesn't stay expanded. It collapses immediately after it expands. Any ideas on how to make that work?

Thanks!

KC
Top achievements
Rank 1
 answered on 13 May 2011
2 answers
104 views
Just realized that while our custom file provider for the various managers like image, documents, etc is working in that it's returning the correct directory structure and I can navigate the tree on the left, it doesn't matter which node on the left I click, when our custom FileBrowserContentProvider class is called at the server, it's always requesting the root directory, so I can't browse any files below the root directory.

What should I look for? What piece of data is the client telerik image manager using to call back to the server? Where is that data coming from?

Frustrating cause the tree on the left is correct, while debugging, I see it loading the tree correctly and also loading all the files for those directories, just that the interface only ever requests the root node.

It use to work, just can't figure out what I changed.
Pat
Top achievements
Rank 1
 answered on 13 May 2011
3 answers
308 views

hi my dear friends :

i am using RadListBox in my Project (asp.net with c# with vs2010)

also i am using some link buttons in itemTemplate...

i want to change the color of these LinkButtons when we hover or select an item in ListBox! (Client Side Programming)

my RadListBox Is Like This :

            <telerik:RadListBox ID="RadlbOfImageGroup" runat="server" DataKeyField="ID" DataSortField="Title"
                DataSourceID="sdsImagesGroup" DataTextField="Title" DataValueField="ID" Skin="BlackByMe"
                EnableEmbeddedSkins="False" EmptyMessage="No Records!">
                <ButtonSettings TransferButtons="All" />
                    <HeaderTemplate> <div id="Header_RadlbOfImageGroup"><h5>Header Area</h5></div>
</HeaderTemplate>
 
                <ItemTemplate>
                    <asp:LinkButton ID="lbTitleOfIG" CssClass="lbTitleOfIGclass" runat="server" CausesValidation="False"><%# Eval("Title") %></asp:LinkButton>
                    <asp:Label ID="lblTitleOfIG" CssClass="lblTitleOfIGclass" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                         
                    <asp:LinkButton ID="lbEditOfIG" CssClass="lbEditOfIGclass" runat="server" CausesValidation="False"
                        CommandName="Edit">Edit</asp:LinkButton>
                       
                    <asp:LinkButton ID="lbDeleteOfIG" CssClass="lbDeleteOfIGclass" runat="server" CausesValidation="False"
                        CommandName="Delete">Delete</asp:LinkButton>
                </ItemTemplate>
            </telerik:RadListBox>

i want to change the color of lbTitleOfIG during hover and select of an item !

how can i do this job?

thanks for attention

Majid Darab
Top achievements
Rank 1
 answered on 13 May 2011
3 answers
73 views
I have ran into an issue where the color picker popup will overflow when placed in a jquery dialog.
Is there a way i can manually align the popup? I tried KeepInScreenBounds to no avail.

Thanks
Rafal
Niko
Telerik team
 answered on 13 May 2011
2 answers
203 views
Hi,

I created a new project with only one RadComboBox.
I added the RadScriptManager, set EnableScriptCombine to true and ran with YSlow.

The result is shown below.
I expected all the JS to be combined to one.
What am I doing wrong?

The page has a total of 14 components and a total weight of 145.5K bytes
TYPE SIZE
(KB)
GZIP
(KB)
COOKIE RECEIVED
(bytes)
COOKIE SENT
(bytes)
URL EXPIRES
(Y/M/D)
RESPONSE
TIME (ms)
ETAG
doc 6.3K http://localhost:49573/Default.aspx no expires 1949
js 21.7K http://localhost:49573/WebResource.axd?d=C65kFO8Zbyr7oEK88I4nwkCFF2wi8YUppZCA1-hPbGEC9Dh-au8RfX-Tno5[snip] 2012/5/11 65
js 142.1K 40.0K http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compre[snip] 2012/5/11 72
js 36.1K 8.9K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/Core.js 2020/11/9 112 "2c2cea13c88f37aca1fe21374c6f214b"
js 78.0K 26.8K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/jQuery.js 2020/11/9 117 "d433bf28fe6035d33e275884802fb720"
js 0.1K 0.1K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/jQueryInclude.js 2020/11/9 127 "b2469851ca7b21412c32dfde156114d5"
js 30.8K 7.4K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Ajax/Ajax.js 2020/11/9 126 "7f4540a8b019e15b2e124127fbcae158"
js 6.0K 1.8K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/jQueryPlugins.js 2020/11/9 130 "dc318c0bd343b121210cb177c45ef98f"
js 8.4K 2.2K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/TouchScrollExtender.js 2020/11/9 131 "29a9ff6a5a9813a9cfd806c8ad50815c"
js 37.3K 7.8K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/Navigation/NavigationScripts.js 2020/11/9 133 "6923509a1cf8a149eaa9ea38498db3a5"
js 74.8K 15.9K http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/ComboBox/RadComboBoxScripts.js 2020/11/9 137 "16e6cef878b58e2ab55d7293f814476d"
css 7.3K 1.5K http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/ComboBox.css 2020/11/9 34 "07b73c2be12eff7b36213d328919d1fb"
css 6.4K 0.9K http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/Default/ComboBox.Default.css 2020/11/9 37 "76949e19a5ef0d7e8a37f62fb495e5cb"
cssimage 3.6K http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/Default/ComboBox/rcbSprite.png 2020/11/9 4 "1d50330b9e536d8fc173120fceda6c88"

Chen
Top achievements
Rank 1
 answered on 13 May 2011
8 answers
186 views
Hi, I wanted to add sort to my dynamic column. Where can I find any documentation code on how to accomplish this. Any inputs would be appreciated.

Thanks in advance,
RJ
Pavlina
Telerik team
 answered on 13 May 2011
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?