Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
In compatibility view enable my grid css are not adjusting .Please check the following attachment.
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Nov 2011
3 answers
127 views
I want the column of my radgrid to be the width of the content. I have many columns so there is always a horizontal scrollbar, which is fine. Table  Layout is set to auto. UseStaticHeaders is set to true. In IE8 the column are way bigger than they need to be. They are about twice the width of the content. When I use IE7 or IE8 in compatibility mode the columns are the correct width. When I UseStaticHeaders to false, the columns are the correct width.  Something is messed up with IE8 and static headers. Using Q1 2010 SP2
Pavlina
Telerik team
 answered on 23 Nov 2011
3 answers
152 views


Hi,

 I have a radtreelist inside RadTreeview node.I got the  RadTreelist from Radtreeiew  nodes in serverside node_expand event.
How to get the RadTreelist from clientside.My aim is to expand the treenode at client side to  display treelist at level 1.

Thanks ,

Sindu.
Pavlina
Telerik team
 answered on 23 Nov 2011
1 answer
240 views
Hi guys,

I have a grid that i added to it 2 columns that represents a calculated fields, the grid is like this and i'm using a stored procedure to get the data from SQL, the calculated columns are not returned in the query, i receive the following error when i load the page

Illegal Expression for column: BLBP


What it could be the problem?

thanks

<Telerik:RadGrid ID="DataGrid" runat="server" Skin="Simple" SkinID="Simple" Width="100%"
               ShowStatusBar="True" AllowFilteringByColumn="false" AllowAutomaticDeletes="false"
               ShowFooter="true" AllowAutomaticInserts="False" AllowAutomaticUpdates="False"
               AllowPaging="True" AutoGenerateColumns="False" PageSize="100" GridLines="Both">
               <PagerStyle Mode="NextPrevAndNumeric" />
               <MasterTableView AutoGenerateColumns="False" AllowSorting="false" EditMode="InPlace"
                   CommandItemDisplay="none" DataKeyNames="ClientID" EditFormSettings-EditFormType="Template">
                   <Columns>
                       <Telerik:GridBoundColumn DataField="ClientID" Visible="False" HeaderText="ClientID"
                           ReadOnly="True" SortExpression="ClientID" UniqueName="ClientID" />
                       <Telerik:GridBoundColumn DataField="ClientName" Visible="False" HeaderText="ClientName"
                           ReadOnly="True" SortExpression="ClientName" UniqueName="ClientName" />
                       <Telerik:GridBoundColumn DataField="ModifiedDate" Visible="True" HeaderText="Date"
                           ReadOnly="True" SortExpression="ModifiedDate" UniqueName="ModifiedDate" DataType="System.DateTime"
                           DataFormatString="{0:dddd dd/MM/yyyy}" />
                       <Telerik:GridBoundColumn DataField="Notes" Visible="True" HeaderText="Description"
                           ReadOnly="True" SortExpression="Notes" UniqueName="Notes" />
                       <Telerik:GridNumericColumn DataField="BillNumber" HeaderText="Code" SortExpression="BillNumber"
                           UniqueName="BillNumber" FooterText=" " DataFormatString="{0:###,###.##}" />
                             
                       <Telerik:GridNumericColumn DataField="AmountLL" Aggregate="Sum" HeaderText="INV/LBP"
                           SortExpression="AmountLL" UniqueName="AmountLL" FooterText=" " DataType="System.Decimal"
                           DataFormatString="{0:###,###.##}" />
                       <Telerik:GridNumericColumn DataField="ValueLBP" Aggregate="Sum" Visible="true" HeaderText="Credit LBP"
                           SortExpression="ValueLBP" UniqueName="ValueLBP" FooterText=" " DataType="System.Decimal"
                           DataFormatString="{0:###,###.##}" />
                             
                       <Telerik:GridCalculatedColumn HeaderText="Balance LBP" UniqueName="BLBP" DataType="System.Decimal"  
                           DataFields="AmountLL, ValueLBP" Expression="{5}-{6}" />
                           
                             
                       <Telerik:GridNumericColumn DataField="AmountUSD" Aggregate="Sum" Visible="true" HeaderText="INV/USD"
                           SortExpression="AmountUSD" UniqueName="AmountUSD" FooterText=" " DataType="System.Decimal"
                           DataFormatString="{0:###,###.##}" />
                       <Telerik:GridNumericColumn HeaderText="Credit USD" DataField="ValueUSD" Aggregate="Sum"
                           Visible="true" SortExpression="ValueUSD" UniqueName="ValueUSD" FooterText=" "
                           DataType="System.Decimal" DataFormatString="{0:###,###.##}" />
                             
                            <Telerik:GridCalculatedColumn HeaderText="Balance USD" UniqueName="BUSD"  DataType="System.Double"
                           DataFields="AmountUSD, ValueUSD" Expression="{5}-{6}" /> 
                   </Columns>
                   <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="100" />
               </MasterTableView>
               <ClientSettings AllowColumnsReorder="false" EnableRowHoverStyle="false">
                   <Selecting AllowRowSelect="false" />
               </ClientSettings>
           </Telerik:RadGrid>
Iana Tsolova
Telerik team
 answered on 23 Nov 2011
2 answers
135 views
Hello,

We want to use the Telerik RadEditor in SharePoint 2010.
It is included in the SAK, but it is still in the CTP fase.

Is there a stable/production version of the RadEditor for SharePoint 2010 available?
If so, which product do I have to buy to get it?

Regards,
Harro
Harro
Top achievements
Rank 2
 answered on 23 Nov 2011
6 answers
273 views
 function OnClientDragEnd(sender,args) {
                var oWd = $find("RadWindow1");
                var newLocation = oWd.getWindowBounds();             
            }

 <cc:RadWindow runat="server" ID="RadWindow1" Height="300px" Width="400px"
                        NavigateUrl="http://yahoo.com" VisibleOnPageLoad="true" OnClientDragEnd="OnClientDragEnd" />

in this, getWindowBounds can't get new positon on fly. 
Please help me.
Rabbi
Top achievements
Rank 1
 answered on 23 Nov 2011
5 answers
213 views


when i am exporting from radgrid  to excel the column headers are getting displayed in the excel sheet as hyperlinks.presently i am having ExportOnlyData=false and  allowsorting=false when i am exporting.The problem is that with the present settings(Exportonlydata=false and allowsorting =false) I am not able to remove the hyperlinks(column header) from the excel sheet.I want the header text to be appearing like normal text. Here is the code :

  <telerik:RadGrid ID="ModifiedContentsReportGrid" runat="server" AutoGenerateColumns="false"
                AllowPaging="true" EnableOutsideScripts="true" PagerStyle-Mode="NextPrevAndNumeric"
                ShowFooter="true" OnItemCreated="ModifiedContentsReportsGrid_OnItemCreated" Title="Modified Content Report"
                Height="100%" ExportSettings-ExportOnlyData="false" EnableViewState="true">
                <ItemStyle BackColor="transparent" />
                <AlternatingItemStyle BackColor="#F9F9F9" />
                <ExportSettings OpenInNewWindow="true" FileName="Modified Content Report" ExportOnlyData="false">
                    <Pdf PaperSize="A4" AllowPrinting="true" PageBottomMargin="10px" PageTopMargin="25px"
                        PageHeaderMargin="0px" PageLeftMargin="10px" PageRightMargin="10px" PageTitle="Modified Content Report" />
                </ExportSettings>
                <HeaderStyle HorizontalAlign="Center" />
                <ClientSettings>
                    <Scrolling UseStaticHeaders="true" />
                </ClientSettings>
                <MasterTableView Width="100%" CommandItemDisplay="Top" CommandItemStyle-HorizontalAlign="Right"
                    TableLayout="Fixed">
                    <CommandItemTemplate>
                        <asp:Literal runat="server"><b>Account Name :</b></asp:Literal>
                        <asp:Label ID="lblClientName" runat="server" /><br />
                        <asp:Literal runat="server"><b>Report generated on :</b></asp:Literal>
                        <asp:Label ID="lblGenerateDate" runat="server" /><br />
                        <asp:Literal runat="server"><b>Date Range :</b></asp:Literal>
                        <asp:Label ID="lblDateRange" runat="server" />
                    </CommandItemTemplate>
                    <Columns>
                        <telerik:GridBoundColumn DataField="Name" SortExpression="Name" HeaderText="Content File"
                            SortAscImageUrl="/Images/SortAsc.gif" SortDescImageUrl="/Images/SortDesc.gif"
                            ItemStyle-Width="30%">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Location" SortExpression="Location" HeaderText="Location"
                            SortAscImageUrl="/Images/SortAsc.gif" SortDescImageUrl="/Images/SortDesc.gif"
                            ItemStyle-Width="30%">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Project/Folder" SortExpression="Project/Folder"
                            HeaderText="Project/Folder" SortAscImageUrl="/Images/SortAsc.gif" SortDescImageUrl="/Images/SortDesc.gif"
                            ItemStyle-Width="10%">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Document" SortExpression="Document" HeaderText="Document"
                            SortAscImageUrl="/Images/SortAsc.gif" SortDescImageUrl="/Images/SortDesc.gif"
                            ItemStyle-Width="10%">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Section" SortExpression="Section" HeaderText="Section"
                            SortAscImageUrl="/Images/SortAsc.gif" SortDescImageUrl="/Images/SortDesc.gif"
                            ItemStyle-Width="10%">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="JobNumber" SortExpression="JobNumber" HeaderText="Job Number"
                            SortAscImageUrl="/Images/SortAsc.gif" SortDescImageUrl="/Images/SortDesc.gif"
                            ItemStyle-Width="10%">
                        </telerik:GridBoundColumn>
                    </Columns>
                    <NoRecordsTemplate>
                        <asp:Literal runat="server">
                    No records to display.</asp:Literal>
                    </NoRecordsTemplate>
                </MasterTableView>
                <PagerStyle Mode="NextPrevAndNumeric" />
            </telerik:RadGrid>
Partha
Top achievements
Rank 1
 answered on 23 Nov 2011
1 answer
257 views
I have an uploader with accepted file types set. Is there a way to display an error message? Right now, it just doesn't upload the file but no message is displayed?

<telerik:RadUpload ID="attachedFile" runat="server" MaxFileInputsCount="1" ControlObjectsVisibility="None"
                Width="300" TargetFolder="~/UploadedGrantResponse" OverwriteExistingFiles="true" AllowedFileExtensions=".doc,.docx,.pdf">
                </telerik:RadUpload>


If (attachedFile.UploadedFiles.Count > 0) Then
 
    For Each postedFile As UploadedFile In attachedFile.UploadedFiles
        If Not [Object].Equals(postedFile, Nothing) Then
            targetFileName = Path.Combine(targetFolder, postedFile.GetNameWithoutExtension() & " " & time & postedFile.GetExtension())
            fileName = postedFile.GetNameWithoutExtension() & "%20" & time & postedFile.GetExtension()
            fileName = fileName.replace(" ", "%20")
            deleteFile = postedFile.GetName()
            postedFile.SaveAs(targetFileName)
        End If 'if not object
 
    Next 'for each uploaded file
 
End If 'if attachedFile.UploadedFiles.Count
Princy
Top achievements
Rank 2
 answered on 23 Nov 2011
3 answers
195 views
I have a grid that has checkboxes in the header. I am trying to figure out a way to remove these checkboxes upon exporting and am having no luck. I column header contains the checkbox control and a linkbutton. I tried clearing the cell and then adding just the linkbutton back, but the extract still showed the checkbox data. There must be a simpler way of accomplishing this. Does anyone have any ideas?

(the columns are created dynamically which is why there is a loop)

'failed attempt at removing the checkboxes from the header
Dim commandItem As GridItem
For Each commandItem In radGridExport.MasterTableView.GetItems(GridItemType.Header)
    Dim hdrItem As GridHeaderItem = CType(commandItem, GridHeaderItem)
    Dim chkbox As CheckBox = CType(hdrItem.FindControl("cbAll"), CheckBox)
    chkbox.Visible = False
    For j As Integer = 16 To hdrItem.Cells.Count - 1
        Dim ctrl As LinkButton = CType(hdrItem.Cells(j).Controls(0), LinkButton)
        If ctrl IsNot Nothing Then
            Dim val As Integer = 0
            Integer.TryParse(ctrl.Text, val)
            If val > 0 Then
                hdrItem.Cells(j).Controls.Clear()
                hdrItem.Cells(j).Controls.Add(ctrl)
            End If
        End If
    Next
Next
Shinu
Top achievements
Rank 2
 answered on 23 Nov 2011
1 answer
181 views
How can I control where on-screen RadWindow should appear? I've tried left="10px" and top="50px" but nothing happens.
OffsetX, OffsetY, or other parameters?
Princy
Top achievements
Rank 2
 answered on 23 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?