Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
1.3K+ views
HI all is it possible to get data filtered in a radgrid???
What i want to do its getting the data from a radgrid after a filter its apllyed.

Thanks you all.
Princy
Top achievements
Rank 2
 answered on 31 Jul 2013
1 answer
284 views
Hi

I created a radial gauge in C# and added all the scales and label. But I cant find a way to set the label position. So can anyone help me with code to do this?

Thanks
Henry
Shinu
Top achievements
Rank 2
 answered on 31 Jul 2013
3 answers
131 views
Hello

How to localize/translate the terms "From" and "To"  that appear inside the filter area of GridDateTimeColumn? There is no entry related in the Global Resources file.

Regards
Eyup
Telerik team
 answered on 31 Jul 2013
1 answer
203 views
Hi everyone;
We have a problem with one of our deployed Web apps' on our production server.  This app uses a number of third party tools including many telerik ones.  We recently upgraded that app from 2.0 to 4.0.  When the 4.0 version was deployed we started having some major problems.

We are seeing problems with the App Pool exceeding its memory settings, thus causing it to reset.  It was on an App pool set to use .Net Framework 4.0, with several other applications.  However, after it was deployed, every app in that app pool started losing its session values long before the timeout was reached.  The log file showed that the app pool was resetting and each time it was resetting it was due to this app exceeding the memory of the app pool.

So we put it into its own app pool and upped the amount of memory for that app pool.  We found that there were still issues such as taking 11 minutes to go load a new page after pressing a button on the first page. 

As stated, this application uses a number of Telerik products.  I recall seeing a couple of years ago articles about Sitefinity not being able to be hosted on a shared app pool because of memory issues, and an article about a Telerik reporting tool that had similar issues.  I am also concerned that the developer may not have utilized 4.0 compatible Telerik tools.
The Dlls being utilized are:
Telerik.QuickStart.dll ver.  1.0.3085.18368
Telerik.Web.UI.dll ver. 2012.1.215.40
Telerik.Web.UI.Skins.dll ver 2012.1.215.40
RadAjaxNet2.dll ver 1.6.2.0

I would like to know are these the proper versions of these dlls to be used in .Net Framework 4.0.30319 and later?
Have there been any reports of excessive memory usage by any of the controls encompassed in these assemblies?
If there are later assemblies that we should be using what are they?

Just want to say in passing, that I would not think that the Telerik.web.ui.dll would be a problem given its version number, but I don't know for sure.

Thanks in advance for your advice and help.


Update:  For some reason the reply text area would not permit me to type in it.  It would allow me to place the cursor there but as soon as I started typing the cursor disappeared and nothing happened.  So I tried to attach a text file with my reply but you are only allowed to upload image files.  So I am typing my reply as an update to the original thread entry.

The dll, RadAjax.Net2.dll, is registered on each page but is not actually used anywhere in the app as far as I could tell.  I will refer your comments about your memory leak and your recommendations to the Management Team so they can pass it on to the developers. 
Martin
Telerik team
 answered on 31 Jul 2013
1 answer
97 views
HI,
I have added a combo box to my page and then i wan to enable load on demand to load big number of records from my WCF service.
I'm getting an error when i click on the combo box: The server method 'MyMethod' failed.

here is my combo box html:

 

<telerik:RadComboBox ID="rcMyCombo" runat="server" CheckBoxes="True" EmptyMessage="Choose ...." Width="300px" DataTextField="Name" DataValueField="Id"                            

 

 

EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" >                       

 

 

<WebServiceSettings Path="http://localhost:8732/MyService.svc" Method="GetDataLoadOnDemand" />

 

</telerik:RadComboBox>


This is the method code in the WCF:

public RadComboBoxData GetTraderGroupsLoadOnDemand(RadComboBoxContext radComboContext)

{
// my implementation as in the documentation.
}

When i tried to debug the issue using IE debugger tool, i found this is the url that is being called from the web application is the following:
http://localhost:8732/MyService.svc/GetDataLoadOnDemand?context=%5B%7B%22Key%22%3A%22Text%22%2C%22Value%22%3A%22%22%7D%2C%7B%22Key%22%3A%22NumberOfItems%22%2C%22Value%22%3A0%7D%5D&callback=Sys._jsonp0

 

I'm using VS 2012 and the service is included in my solution so the wcf if not hosted in IIS but the development web server.

Waiting your help and support.

Appreciate it.


Nencho
Telerik team
 answered on 31 Jul 2013
1 answer
59 views
I have a page that, among other things, holds an image and a radrotator. When clicking one of the elements of the rotator, the image above is the full-size version of the clicked radrotator thumbnail.

Now, I want a popup (radwindow) that contains basically the exact same thing as the main page. I have everything set up - or so I thought - but the displayed image never changes when I click an item in the rotator. The rotator seems to load fine, though.

I'm rather new at this, but would like to know where it'd be a good idea for me to look next.
Slav
Telerik team
 answered on 31 Jul 2013
4 answers
117 views
Hi all,

So i havea radgrid that its exporting to pdf by itextsharp, for that no problem, the problem is when i remebered to use the filter of the radgrid,
when i have a filter, the pdf its exported as a full pdf and not only the filter information. Anybody tried something sililar?

Best Regadrs
Kostadin
Telerik team
 answered on 31 Jul 2013
4 answers
120 views
I have radgrid with client-side databinding that I wish to show/hide columns on (via javascript) for real estate reasons.

In general, the showing and hiding of columns works until the grid is rebound while the grid is in it's collapsed (7 columns hidden) view.  After rebinding, when trying to re-show hidden columns, I encounter a javascript error "htmlfile: Type mismatch."  inside a call to _removeRestoreCol(this,a,c) when attempting to c.appendChild(this._hiddenCols[g].col); - (This, of course, is from the stack call from within a ScriptResource file.)

I have found that in some cases after the first rebind, the show/hide functions properly but after subsequent rebinds I encounter the Type mismatch error.

I am seeing this error in IE7 but not in Chrome or IE8.  I am using the 2012 Q3 release.

Any assistance in debugging, suggestions for fixes, or alternate approaches to showing/hiding would be much appreciated.

My grid markup:

<telerik:RadGrid ID="SequenceGrid" runat="server" AllowPaging="True"
    PageSize="10" GridLines="None" AllowFilteringByColumn="false"
    AllowSorting="True" Skin="Sunset" TabIndex="13" AllowMultiRowSelection="true" >
    <PagerStyle AlwaysVisible="true" Position="Bottom" />
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="id, testCaseGroupInd" ClientDataKeyNames="id, TCStatusColor, StatusColor, Tags, testCaseGroupInd, SeqName" Width="100%"> <%--TableLayout="Fixed"--%>
        <Columns>
            <telerik:GridBoundColumn DataField="id" HeaderText="ID" SortExpression="id"
                UniqueName="id">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="White" Width="50px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SeqName" HeaderText="Name" SortExpression="SeqName"
                UniqueName="Sequence">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="White" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="TestCaseStatus" HeaderText="Test Case / Group Status" SortExpression="TestCaseStatus"
                UniqueName="test_case_status">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="White" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Uploaded" HeaderText="Uploaded"
                 UniqueName="upload_status">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="White" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CreatedBy" HeaderText="Created By" SortExpression="CreatedBy"
                UniqueName="created_by">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="White" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ModifiedBy" HeaderText="Last Modified By" SortExpression="ModifiedBy"
                UniqueName="last_modified_by">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="White" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Project" HeaderText="Project" SortExpression="project"
                UniqueName="project">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="White" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Tags" DataField="id" UniqueName="tag_link" SortExpression="Tags" >
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="White" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ExecutionTime" HeaderText="Scheduled Run Time" SortExpression="ExecutionTime"
                UniqueName="execution_time">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ForeColor="White" />
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn Display="false" HeaderStyle-Width="20px" UniqueName="AddToGroup" ButtonType="ImageButton" CommandName="AddToGroup"
                Text="Add to Group" ImageUrl="~/Images/AddRecord.png" >
            </telerik:GridButtonColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings AllowColumnsReorder="false" AllowRowsDragDrop="True" >
        <Selecting AllowRowSelect="True" EnableDragToSelectRows="True" />
        <%--<Scrolling AllowScroll="true" EnableVirtualScrollPaging="true" UseStaticHeaders="true" />--%>
        <DataBinding SelectMethod="GetDataAndCount" Location="AutomationDeck.svc"
             SortParameterType="String" FilterParameterType="String" />
        <ClientEvents OnDataBound="SequenceGrid_OnDataBound" OnDataBinding="SequenceGrid_OnDataBinding"
            OnRowContextMenu="RowContextMenu" OnDataBindingFailed="SequenceGrid_OnDataBindingFailed"
            OnCommand="SequenceGrid_Command" OnRowDropping="GroupItemsGrid_onRowDropping" OnRowDragStarted="GroupItemsGrid_OnRowDragStarted" />
    </ClientSettings>
</telerik:RadGrid>

The javascript that performs the showing/hiding is as follows:

function collapse() {
      
     var SeqGrid = $telerik.findGrid("<%= SequenceGrid.ClientID %>");
     SeqGrid.get_masterTableView().hideColumn(2);
     SeqGrid.get_masterTableView().hideColumn(3);
     SeqGrid.get_masterTableView().hideColumn(4);
     SeqGrid.get_masterTableView().hideColumn(5);
     SeqGrid.get_masterTableView().hideColumn(6);
     SeqGrid.get_masterTableView().hideColumn(7);
     SeqGrid.get_masterTableView().hideColumn(8);
     SeqGrid.get_masterTableView().showColumn(9);
}
 
 function expand() {
 
     var SeqGrid = $telerik.findGrid("<%= SequenceGrid.ClientID %>");
     SeqGrid.get_masterTableView().hideColumn(9);
     SeqGrid.get_masterTableView().showColumn(2);
     SeqGrid.get_masterTableView().showColumn(3);
     SeqGrid.get_masterTableView().showColumn(4);
     SeqGrid.get_masterTableView().showColumn(5);
     SeqGrid.get_masterTableView().showColumn(6);
     SeqGrid.get_masterTableView().showColumn(7);
     SeqGrid.get_masterTableView().showColumn(8);
 }

Martin
Telerik team
 answered on 31 Jul 2013
4 answers
141 views
Hi!
I wanted to export several radgrids to a Word document, so I found out an example that suggested to wrap the grids into a global grid.
That's what I've done with the structure below: 
The problem I'm facing is in my Word document there is a string with the literal "Item" below the caption "This is the caption" and before my inner radgrid. 
I'm never setting this string, so I guess it's a default value I don't even know how to change. I don't know how to hide it in the Word document, although I managed to hide it with css in the web layer. 
Any suggestion would be appreciated, 

Thanks in advance,

Mary.

 <telerik:RadGrid ID="RadGridWrapper" runat="server" BorderStyle="None" ShowHeader="false" ShowFooter="false"    
        OnGridExporting="OnGridExporting"> 
        <MasterTableView AutoGenerateColumns="true" ShowHeadersWhenNoRecords="true" 
        NoMasterRecordsText="<%$ Resources:GlobalResources, NoResults%>"
        ShowHeader="true" ShowFooter="false" Caption="This is the caption"  >
            <ItemTemplate>
                <telerik:RadGrid ID="RadGrid1" runat="server"
                 GridLines="Both" Skin="Windows7"
                    HorizontalAlign="Center" AutoGenerateColumns="false"
                     OnNeedDataSource="RadGrid_NeedDataSource1" >
<MasterTableView> ... </MasterTableView>
    </telerik:RadGrid>
    <telerik:RadGrid ID="RadGrid2" runat="server" GridLines="Both" 
                OnNeedDataSource="RadGrid_NeedDataSource2"
                    Skin="Windows7" HorizontalAlign="Center" AutoGenerateColumns="false">
<MasterTableView> ... </MasterTableView>
    </telerik:RadGrid>
  </ItemTemplate>           
        </MasterTableView>
    </telerik:RadGrid>


Kostadin
Telerik team
 answered on 31 Jul 2013
2 answers
125 views

Hi there

I am exporting a Grid in Biff Format which is successfully exporting - however I want to allow the user to be able to change values in one column only (e.g column 3)

If the user attempts to changes any other columns they would get a warning from Excel advising them the cell is protected.

I believe this can be done in the "ExcelMLWorkBookCreated" but am not sure what the code needs to be so it can loop through all the columns - below is what I have so far....

Any help much appreciated....

protected void gridPricing_ExportToExcel_ExcelMLWorkBookCreated(object sender, Telerik.Web.UI.GridExcelBuilder.GridExcelMLWorkBookCreatedEventArgs e)
       {
           e.WorkBook.Worksheets[0].IsProtected = true;
           StyleElement protectionStyle = new StyleElement("ProtectionStyle");
           protectionStyle.CellProtection.IsProtected = false;
           e.WorkBook.Styles.Add(protectionStyle);
             
           foreach (ColumnElement column in e.WorkBook.Worksheets[0].Table.Columns)
           {
               int columnindex = e.WorkBook.Worksheets[0].Table.Columns.IndexOf(column);
               if (columnindex == 3)
               {
                    
                   //code NEEDED in here needs to loop through cells or columns 
                   //and get cellelement or columnelement
                   // so I can set the cell.stylevalue for this column
               }
           }
Kostadin
Telerik team
 answered on 31 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?