Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
140 views
Hi All,

I need to bind grid with a one more field like FileName and Size. Is it possible ?

I need to add a field with description name which is a provided by database table field and i want to add this field with Filename and Size.

I am using  DBContentProvider : FileBrowserContentProvider type provider.

Could you please help me ?

Thanks a lot in advance.

Fiko
Telerik team
 answered on 07 Jun 2010
1 answer
174 views
Does anyone know of a way to sort the treeview nodes...besides sorting them before returning them from the provider.
Dobromir
Telerik team
 answered on 07 Jun 2010
1 answer
147 views
Hello,

I have been trying to find something about how we can export some string data to a pdf file but not able to find any thing,

I am using RadControls in my application and I wonder if is there any option available to export some string base data to a pdf file.

I figured out Telerik.Pdf.PdfDocument, but I dont know how it works and how i can use this to create pdf file, even not sure it it is the class I am looking for.

Please help me, If you have some coding hints that would be greate but not required.
Daniel
Telerik team
 answered on 07 Jun 2010
1 answer
81 views
Hi: I am attempting to follow the example exactly as listed on: http://demos.telerik.com/aspnet-ajax/grid/examples/styles/selectedrowstyle/defaultcs.aspx

I have a RadGrid with the default theme. For testing I changed it to Web20 to match the example exactly. I want to set the selected row style to have no background image but a background color of dark grey.

My markup looks like:

 <telerik:RadMenu runat="server" ID="NotificationRadMenu" Skin="Sitefinity"  EnableShadows="true" DefaultGroupSettings-OffsetX="-210">  
            <Items> 
                <telerik:RadMenuItem Visible="false" Value="label" Enabled="false"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Value="TemplateHeader">  
                    <ItemTemplate> 
                        <asp:Label ID='AlertNoticeNumber' CssClass='AlertNoticeNumber' runat="server" Text="Label" Visible="false"></asp:Label> 
                    </ItemTemplate> 
                    <Items>                          
                        <telerik:RadMenuItem CssClass="AlertMenuItem" Value="TemplateColumn">  
                            <ItemTemplate> 
 
                            <div class="AlertMenuItemContainer">  
                            <Telerik:RadGrid RegisterWithScriptManager="true" ID="StudentCheckListRadGrid" AutoGenerateColumns="false" runat="server" AllowSorting="true" 
                              AllowPaging="false" ShowHeader="false" PageSize="10" Width="100%" BorderWidth="0" ItemStyle-BackColor="#E8E8E8" AlternatingItemStyle-BackColor="White" 
                              ClientSettings-EnableRowHoverStyle="false" OnSelectedIndexChanged="StudentCheckListRadGrid_SelectedIndexChanged" 
                              ClientSettings-EnablePostBackOnRowClick="true" ClientSettings-Selecting-AllowRowSelect="true" Skin="Web20">   
                                <MasterTableView AllowMultiColumnSorting="true" AutoGenerateColumns="false" ForeColor="#4B4B4B" Font-Names="Tahoma,Arial,Verdana" Font-Size="11px">  
                                <Columns> 
                                    <Telerik:GridBoundColumn DataField="TaskNameCheckList" HeaderText="TaskNameCheckList"></Telerik:GridBoundColumn> 
                                    <Telerik:GridBoundColumn Visible="false" DataField="TaskAssociatedUserControlCheckList" HeaderText="TaskAssociatedUserControlCheckList"></Telerik:GridBoundColumn> 
                                </Columns> 
                                </MasterTableView>    
 
                                </telerik:RadGrid> 

I then created a Css entry

tr.SelectedRow_Web20 td  
{  
     background-color: red;  
     background-image: none;  
     padding-right: 17px;  
} 

The row style DOES NOT CHANGE when selected. I also noticed that when I use the <SelectedItemStyle BackColor="red" /> it works okay, but when I tried <SelectedItemStyle CssClass="RedClass" /> it does not import the styles. This method would work okay if it would allow me to remove the background image. Thanks!
Mira
Telerik team
 answered on 07 Jun 2010
1 answer
100 views
Hi,

you can raise it on demo page of radscheduler with entitydatasource,  ( http://demos.telerik.com/aspnet-ajax/scheduler/examples/entitydatasource/defaultcs.aspx )

- Create a new appointment with recurrence
- Try to delete only one occurrence.

Is there a knowed solution ?

Thanks,
@loys
T. Tsonev
Telerik team
 answered on 07 Jun 2010
3 answers
148 views
I've developed an application with telerik controls. My simple form having only two text boxes and a radgrid with only 2 columns take 8sec to load and on each post back request this time increases. even if i only refresh the page again and again its loading time increases.
i have some very large forms which have a no of controls with 2 or 3 grids and this issue become so worst there
while we see demo of Telerik its speed is good i dnt know what i am missing
i m using shared hosting application is running with good speed locally but have very slow performance on shared or dedicated host. i check it on both host
i think i have some thing missing
I've added the radScriptManager  to the page.
I have set debug mode=false in web.config 
but ..does not seem to help.
Please help me for performance issue as soon as possible
Pavlina
Telerik team
 answered on 07 Jun 2010
1 answer
100 views
Hey Telerik Team,

I'm having an issue with my RadGrid.

Details:
I had created a reporting page with a RadGrid on it, the report contains between 130 - 180 auto generated columns.
I have Allow scrolling enabled so that the grid wouldn't resize to be 20 pages long. This all worked fine. I then had to move the code    to a new page using a master page template file. Now when the grid populates it resizes waaaaaaay bigger than my page size. I still get the horizontal scroll bar but it's about the size of the grid minus one column. Any ideas of why the grid is resizing so crazy now?

Here is my code:

EDIT :: CODE EDITED OUT

Any ideas are greatly appreciated.
Pavlina
Telerik team
 answered on 07 Jun 2010
1 answer
150 views
Hello everybody!
This is how I have defined grid in aspx page:
<MasterTableView EditMode="InPlace" EnableViewState="False"> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
<Columns> 
    <telerik:GridBoundColumn DataField="PurchaseRecommendationLineID" UniqueName="PurchaseRecommendationLineID" Visible="false"/> 
    <telerik:GridTemplateColumn UniqueName="Product" DataField="Product"  HeaderText="Tuote" > 
        <EditItemTemplate> 
            <asp:TextBox ID="Text" runat="server"  Text='<%#Bind("Product") %> '/> 
        </EditItemTemplate> 
    </telerik:GridTemplateColumn> 
    <telerik:GridBoundColumn DataField="Unit" UniqueName="Unit" HeaderText="Yksikkö"/> 
        <telerik:GridNumericColumn DataField="Quantity"  UniqueName="Quantity" HeaderText="Määrä" HeaderStyle-Width="50px" NumericType="Number"/> 
     <telerik:GridBoundColumn DataField="Info" UniqueName="Info" HeaderText="Info"/> 
     
   
</Columns> 


I hope some can help me. I have all the grid items in Edit mode. Edit mode is done like this;
protected void ProposalGrid_PreRender(object sender, EventArgs e) 
        { 
            if (!IsPostBack || forceEditable) 
            { 
                forceEditable = false; 
 
                foreach (GridItem item in ProposalGrid.MasterTableView.Items) 
                { 
                    if (item is GridEditableItem) 
                    { 
                        GridEditableItem editableItem = item as GridDataItem; 
                        editableItem.Edit = true; 
                    } 
                } 
            } 
            ProposalGrid.Rebind(); 
        } 

I read Values from grid like this:
 private void CollectRowInformation(int headerid) 
        { 
         foreach (GridDataItem item in ProposalGrid.MasterTableView.Items)  
            { 
                RowObject ro = new RowObject(); 
              
                ro.Rowdata.Add("Unit", item["Unit"].Text); 
                ro.Rowdata.Add("Info", item["Info"].Text); 
                ro.Rowdata.Add("Quantity", item["Quantity"].Text); 
                ProsalService.Persist(ro); 
            } 
} 
If I change some values in grid, and try to read it.I get always old value. I give you exsample.If Item orginal information is like this:
Unit:kg
Info:Plah
Quantity:4
And I change item information to
Unit:kg
Info:Plah2
Quantity:5555

If I put break point in CollectRowInformation and check values,It always show orginal values.How Can i read new values from grid.

Shinu
Top achievements
Rank 2
 answered on 07 Jun 2010
1 answer
126 views
Hi All

I am doing as per the link below and also adding the compression below. Now I would expect there to be no viewstate in the page ( as view in firefox and firebug but there seems to be viewstate from the next usercontrol. Any thoughts ?

<

 

add name="RadCompression" type="Telerik.Web.UI.RadCompression" />

 


In my BrowserFile.browser

<

 

browsers>

 

<

 

browser refID="Default">

 

<

 

controlAdapters>

 

<

 

adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" />

 

</

 

controlAdapters>

 

</

 

browser>

 

</

 

browsers>

 


http://demos.telerik.com/aspnet-ajax/ajax/examples/common/loadingusercontrols/defaultcs.aspx
Nikolay Rusev
Telerik team
 answered on 07 Jun 2010
1 answer
81 views

Requirements

RadControls version

RadControls for ASP.NET AJAX 2010.1 519
.NET version

2.x
Visual Studio version

2005/8
programming language

VB.NET
browser support

all browsers supported by RadControls


PROJECT DESCRIPTION
I am storing different versions of an Excel file in a SQL Server table.  Each row in the file is a row in the table.  Different versions are differentiated by a VersionNumber column. This code allows the user to view different versions of the file in a RadGrid. Steps:

First you will need a table defined that includes a column for the version.  You will need a way to increment the version as you insert new rows to the table.  I use stored procedures to insert and select from the tables.
Then:
1. Have a radgrid defined to hold the data
2. Create a drop down and link buttons to select either a given version or the current version

<asp:DropDownList ID="ddlVersion" runat="server" Width="250px"> 
</asp:DropDownList> 
 
<asp:LinkButton ID="lbViewVersion" Text="View selected Version" runat="server"> 
</asp:LinkButton> 
<br /> 
<asp:LinkButton ID="lbViewCurrentVer" Text="View current Version" runat="server"> 
</asp:LinkButton> 

3. Create a method to pull the data based on the ddl and link button selections

    Protected Sub GetInventoryData(ByVal displayType As String) 
        ' set your data access here 
    ' ... 
        Dim inventoryData As DataSet 
        Try 
            ' If different version is selected get the version from the drop down and pass it into a stored procedure 
            If displayType = "diffVersion" Then 
                Dim inParams As New NameValueCollection 
                Dim version As Int16 
                version = ddlVersion.SelectedValue 
                With inParams 
                    .Add("@versionNum", version) 
                End With 
                inventoryData = <your data call to the stored procedure, passing in the version as input param> 
            Else 
        ' I go to a different table and procedure if it's current version so I need an else without input params 
                inventoryData = <your data call to the stored procedure> 
            End If 
            rgridInventory.DataSource = inventoryData 
            rgridInventory.DataBind() 
        Catch ex As Exception 
            ' your error catching protocol 
        Finally 
 
        End Try 
    End Sub 

4. Call the method -- passing in whether you want the current or earlier version. The example below gets a different version
' pulls in different version 
GetInventoryData("diffVersion") 






Iana Tsolova
Telerik team
 answered on 07 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?