Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
265 views
Hello.
i have this issue, i have a RadGrid i populate with then event NeedDataSource, then i change some value of cells with the event ItemDataBound, but when i want to export the grid only export the columns that i fill wih NeedDataSource event.
is there a way to put also the other columns that i have modify with ItemDataBound


thanks in advance.
Hector
Hector Hernandez
Top achievements
Rank 2
 answered on 25 Apr 2014
1 answer
97 views
                {
                    command: [{ name: "delete1", click: deleteItem }], title: " ", width: 100
                },
                {
                    command: [{ name: "delete2", click: deleteItem, template: "<div class='btn-link'><span class='glyphicon glyphicon-remove'></span></div>" }], title: "&nbsp;", width: 100
                }

​ function deleteItem(e) {
            var dataItem = this.dataItem($(e.currentTarget).closest("tr"));            if (confirm('are yousure : ' + dataItem.Name)) {
               ...
            }
        }

my problem is delete1 command work fine , but delete2 command can't firing the deleteItem event, any one can help me? thanks!
Pavlina
Telerik team
 answered on 25 Apr 2014
6 answers
169 views
Hello,
I tried to create the columns on the radgrid dynamically on Page_load (I can't create them on page_init)
I followed the instructions on your site but I keep getting the following error after each postback once the grid is created:

[GridException: Cannot find a column with UniqueName 'alert_id']
   Telerik.Web.UI.GridTableView.GetColumn(String columnUniqueName) +102
   Telerik.Web.UI.RadGrid.LoadClientState(Dictionary`2 clientState) +5156
   Telerik.Web.UI.RadCompositeDataBoundControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +109
   Telerik.Web.UI.RadCompositeDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743

I added the bound-columns to the mastertable before I set their properties.

The grid is created once, but each postback throws this error.
The error occures even before "Page_Load" happens.

My main goal is to add a button to the header which will open a custom context menu (so I can't use auto-generate-columns) and still have all the functionalities of group-by/sort/reorder etc. also, the grid's columns should be created dynamically since the datasource is set during run-time and I don't know what are its columns at design time - The grid is inside a RadTabStrip and each tab-click sets a different data source into the grid
Pavlina
Telerik team
 answered on 25 Apr 2014
1 answer
141 views
I'm looking for a way to change the columns in the Image Manager. I use already the FileBrowser.ascx from the EditorDialogs folder. The problem is that there is only a ascx page and no code behind were I can change the default behaviour.
In the FileBrowser.ascx it looks like this (default):
<telerik:RadFileExplorer ID="RadFileExplorer1" Height="450px" Width="400px" TreePaneWidth="150px"
    runat="Server" EnableOpenFile="false" AllowPaging="true" PageSize="100" />

The default columns are now Filename and Size, but I would also like to show the Title field from the Image library.

Is it possible to replace this with a custom class that has the RadFileExplorer as a base class? Or is it possible to change/add columns via JavaScript?
Vessy
Telerik team
 answered on 25 Apr 2014
11 answers
579 views
Hi!
When using BinaryImage deployed on IIS with multiple worker processes (Web Garden) image is not always shown.
I assume it depends on that BinaryImage is using cache object and cache objects only lives in one worker process.
Any solution?
Angel Petrov
Telerik team
 answered on 25 Apr 2014
1 answer
109 views
I'm a newbie with these Telerik controls.  So, I am not sure where to begin.

Here is the requirements of the page I am trying to build

1.  There is section on the page that prompts the user if they want to "attach" any files to this request.  A request is a single row in the Request database.
2.  So, I was plan on allowing the user to navigate and identify various files that they want to attach to this request.  For each file that they identify, a row is created in table on the screen that contains the path and file name.
3.  When the user submits the request (as in save the request to the database), then I would like to create a ZIP file for all those files listed in the table.  Once the ZIP file is created, then I would like to save that ZIP into the database as a CLOB.

So, which Telerik controls should I use?
Hristo Valyavicharski
Telerik team
 answered on 25 Apr 2014
5 answers
229 views
Hi,

I'm trying to build a grantt chart with the data shown below using data bind control but when I click on the data tab of the wizard the propert screen just closes.

ProjectName Project Start Date Project End Date
CISF 10/12/2008 11/1/2008
Dashboard 10/10/2008 11/1/2008

Can someone help me create a grantt chart with the above data.

This happens when the chart type is set to Grantt but the rest of the chart types work perfectly
Danail Vasilev
Telerik team
 answered on 25 Apr 2014
9 answers
242 views
Here's the issue:

When I have a RadUpload control on the page and then do any type of Ajax call before a submit, there is repeated calls to Raduploadprogresshandler.ashx until the browser is shut down. This issue was also documented here:

http://www.telerik.com/community/forums/aspnet-ajax/upload/mulitple-requests-to-telerik-raduploadprogresshandler-ashx.aspx 

but, I tried both of those fixes and neither worked completely. Adding:

<add key="AllowCustomProgress" value="false"/> 

to the web.config worked, but only if the RadUpload control did not have a file already selected.

What is the correct way of avoiding this issue?

Thanks!

- Mike
Boyan Dimitrov
Telerik team
 answered on 25 Apr 2014
2 answers
142 views
Hi,

I have a RadSlidingPane that has a top and a bottom RadPane.  The top one has 2 buttons and the bottom one has a user control which contains only a treeview.

        <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Vertical" width="100%" Height="100%">
             
            <telerik:RadPane ID="LeftPane" runat="server" Width="22px" Height="500px" Scrolling="None" >
                <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" Height="100%" Width="22px">
                    <telerik:RadSlidingPane ID="LeadSearchSlidePane" Title="Search Criteria" runat="server" width="150px">
                        <uc1:LeadSearchCriteria runat="server" ID="LeadSearchCriteria" />
                    </telerik:RadSlidingPane>
 
                    <telerik:RadSlidingPane ID="TreeListSlidePane" Title="Tree View" runat="server" Scrolling="None"  OnClientExpanded="ResizeTreeViewControl">
                        <telerik:RadSplitter runat="server" ID="RadTreeSplitterTop" Orientation="Horizontal" >
                        <telerik:RadPane runat="server" ID="RadTreePaneTop" Height="25px">
                            <telerik:RadButton ID="RadButton1" runat="server" Text="Apply"></telerik:RadButton>
                            <telerik:RadButton ID="RadButton2" runat="server" Text="Cancel"></telerik:RadButton>
                        </telerik:RadPane>
                        <telerik:RadPane runat="server" ID="RadTreePaneBottom" Width="350px" >
                            <uc2:LeadSearchTreeView runat="server" ID="LeadSearchTreeView" />
                        </telerik:RadPane>
                        </telerik:RadSplitter>
                    </telerik:RadSlidingPane>
 
                </telerik:RadSlidingZone>
            </telerik:RadPane>
 
... OMITTING THE REST OF THE SPLITTER AND RADPANE SETTING...


As you can see from the attached screen shot, the RadPane doesn't resize when the RadPane expanded.  It will resize when the RadPane is docked.  I looked at the page source and I could see my user control being wrapped with <div> tags that set the width to 22px.  I tried to resize it during OnClientExpanding/OnClientExpanded, but I couldn't make it work.  Could you show me the correct way of resizing the RadPane?

Javascript :
function ResizeTreeViewControl(sender, eventArgs) {
    var splitter = $find("<%= RadTreeSplitterTop.ClientID %>");
    var pane = splitter.getPaneById("<%= RadTreePaneBottom.ClientID %>");
    pane.resize(200);
 }


Thank you,

Helen


Vessy
Telerik team
 answered on 25 Apr 2014
9 answers
393 views
I have a RadGrid that I need to put hyperlinks on the dollar value in a column of the RadGrid that will link to more details and I also need that column to aggregate the sum of each of those dollar amount and put it in the group footer for each group.  Neither the GridHyperLinkColumn or GridTemplateColumn have the Aggregate property like the GridBoundColumn. 

How would I be able to aggregate the values of a GridHyperLinkColumn or GridTemplateColumn so there's a total in the group footer?
Maria Ilieva
Telerik team
 answered on 25 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?