Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
194 views
Hi,

I have enabled option to export my RADGrid data to PDF, EXCEL, CSV and Word. While exporting to Excel, it also exports few buttons and Refresh link at the top row in excel sheet.

How can I avoid this?

Regards,
Krunal
Daniel
Telerik team
 answered on 15 Dec 2010
4 answers
246 views
Hi,

I am getting few issues with radgrid. One is i have gridclientselectcolumn in radgrid. I am able to select all checkboxes using header checkbox but iam not able to select individual ones. Another is when i click the row iam changing the background color of a row but its not coming fully. Only half of the row is changing the color(see image 1). Anothe one is i have radmenu in commanditem template. Which is not displaying properly(see image 2). Here is my code..... 

<telerik:RadGrid ID="gvPjtMnt" runat="server" AutoGenerateColumns="false" Height="600px"
    BorderWidth="2px" BorderStyle="Solid" BackColor="White" AllowPaging="True" PagerStyle-AlwaysVisible="true"
    PageSize="20" AllowSorting="True" OnNeedDataSource="gvPjtMnt_OnNeedDataSource"
    AllowFilteringByColumn="true" OnItemCommand="gvPjtMnt_ItemCommand" OnItemCreated="gvPjtMnt_ItemCreated"
    OnItemDataBound="gvPjtMnt_ItemDataBound" OnPreRender="gvPjtMnt_PreRender" AllowMultiRowSelection="true"
    ClientSettings-Selecting-AllowRowSelect="true">
    <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White"
        HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" />
    <AlternatingItemStyle BackColor="#F5F5E9" HorizontalAlign="Center" BorderColor="White" />
    <ItemStyle HorizontalAlign="Center" />
    <MasterTableView GridLines="None" DataKeyNames="ProjectId" CommandItemDisplay="Top">
        <CommandItemTemplate>
            <table style="width: 100%">
                <tr align="right">
                    <td style="width: 75%">
                        <telerik:RadMenu ID="RadMenu1" runat="server" EnableRoundedCorners="true" EnableShadows="true"
                            EnableAjaxSkinRendering="true">
                            <Items>
                                <telerik:RadMenuItem Text="Text" CssClass>
                                    <Items>
                                        <telerik:RadMenuItem ImageUrl="Images/comment-icon.png" Value="1" NavigateUrl="javascript:validateChkUpdate()"
                                            Text="Add Notes">
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem ImageUrl="Images/OrdUpdate.gif" Value="2" NavigateUrl="javascript:validateChkUpdate()"
                                            Text="Bulk Updates">
                                        </telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>
                    </td>
                    <td align="right">
                        <asp:LinkButton ID="lnkshwFilter" Text="ShowFilter" Font-Underline="true" ForeColor="MidnightBlue"
                            runat="server" OnClientClick="return showFilterItem()" />
                        <asp:LinkButton ID="lnkhdFilter" Text="HideFilter" Font-Underline="true" ForeColor="MidnightBlue"
                            runat="server" OnClientClick="return hideFilterItem()" />
                    </td>
                    <td align="right">
                        <asp:LinkButton ID="lnkclrFilter" Text="ClearFilter" Font-Underline="true" ForeColor="MidnightBlue"
                            runat="server" OnClick="lnkclrFilter_Click"></asp:LinkButton>
                    </td>
                    <td align="right">
                        Total Records found: <asp:Label ID="lblTotRecCount" runat="server" Font-Bold="True"
                            Font-Size="10pt" ForeColor="Black" Text="0"></asp:Label>
                    </td>
                    <td align="right" valign="middle">
                        <asp:ImageButton ID="lnkExportAll" ImageUrl="~/images/Excel.png" ToolTip="Export All"
                            runat="server" OnClick="ExportAll_Click" />
                    </td>
                    <td align="right" valign="middle">
                        <asp:ImageButton ID="ExportToExcelButton" runat="server" ImageUrl="~/images/ExportToExcel.gif"
                            ToolTip="Export to Excel" OnClick="ExportExcel_Click" />
                    </td>
                </tr>
            </table>
        </CommandItemTemplate>
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn" HeaderStyle-Width="3%">
            </telerik:GridClientSelectColumn>
            <telerik:GridBoundColumn DataField="ProjectId" UniqueName="ProjectId" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="LOB" DataField="LOB" UniqueName="LOB">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Division Name" DataField="Division" UniqueName="Division">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Region Name" DataField="MarketName" UniqueName="MarketName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Project Name" DataField="ProjectName" UniqueName="ProjectName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Project Manager Name" DataField="ProjectMgrName"
                UniqueName="ProjectMgrName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Number Of Sites Received" DataField="NumSitesReceived"
                UniqueName="NumSitesReceived">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Accept Service Order Date" DataField="AcceptServiceOrderTaskCompleteDate"
                UniqueName="AcceptServiceOrderTaskCompleteDate" DataFormatString="{0:MM/dd/yyyy}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="PTD" DataField="PTD" UniqueName="PTD" DataFormatString="{0:MM/dd/yyyy}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Health Reason" DataField="HealthReason" UniqueName="HealthReason">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Project Health" DataField="ProjectHealth" UniqueName="ProjectHealth">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Customer Signed Date" DataField="CustomerSignedDate"
                UniqueName="CustomerSignedDate" DataFormatString="{0:MM/dd/yyyy}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="OA Complete Date" DataField="OACompleteDate"
                UniqueName="OACompleteDate" DataFormatString="{0:MM/dd/yyyy}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Customer Requested Due Date" DataField="CustomerRequestedDueDate"
                UniqueName="CustomerRequestedDueDate" DataFormatString="{0:MM/dd/yyyy}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Last Note Added" DataField="LastNoteAdded" HeaderStyle-Width="10%"
                UniqueName="LastNoteAdded">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="EditRows" HeaderStyle-Width="2%" AllowFiltering="false">
                <ItemTemplate>
                    <asp:ImageButton runat="server" ID="EditPMTsk" CommandName="EditRow" ImageUrl="Images/edit-icon.png"
                        ImageAlign="Middle" ToolTip="Edit Task" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents OnGridCreated="GridCreated" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        <Resizing AllowColumnResize="true" EnableRealTimeResize="false" ResizeGridOnColumnResize="false"
            AllowRowResize="false" />
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</telerik:RadGrid>

protected void gvPjtMnt_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem dataItem = e.Item as GridDataItem;
            TableCell myCell = dataItem["ProjectHealth"];
            myCell.Font.Size = 10;
            myCell.Font.Bold = true;
 
            if (myCell.Text.Trim() == "GREEN")
            {
                myCell.BackColor = System.Drawing.Color.Green;
                myCell.ForeColor = System.Drawing.Color.White;
            }
            if (myCell.Text.Trim() == "RED")
            {
                myCell.BackColor = System.Drawing.Color.Red;
                myCell.ForeColor = System.Drawing.Color.White;
            }
            if (myCell.Text.Trim() == "YELLOW")
            {
                myCell.BackColor = System.Drawing.Color.Yellow;
                myCell.ForeColor = System.Drawing.Color.Black;
            }
            if (myCell.Text.Trim() == "COMPLETE")
            {
                myCell.BackColor = System.Drawing.Color.Blue;
                myCell.ForeColor = System.Drawing.Color.White;
            }
        }
 
    }



Srinivasa Gokidi
Top achievements
Rank 1
 answered on 15 Dec 2010
1 answer
159 views
Dear all

As shown in this Demo
I want to set X-Axis labels programmatically

as shown in the pic in the Demo X-Axis is = [ 12, 3, 4, 5 ]

I want to change it to be text instead.

Can anyone help me how to do that programmatically ?


Regards
Joel
Top achievements
Rank 2
 answered on 15 Dec 2010
6 answers
650 views
how i can apply compare validator on RadDateTimePicker
Kevin Price
Top achievements
Rank 1
 answered on 15 Dec 2010
2 answers
94 views
I've just installed VS2010 on my machine that already has the RadControls suite loaded.

I went to Control Panel and opted to 'Change' my installation and opted to install for VS2010. The 'install' reported that it completed successfully.

Firing up VS, I can see the RadControls suite has been installed in the toolbox but the VS extensions aren't there; there is no 'telerik' menu option.

Do I have to do a full uninstall/reinstall toget this?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 15 Dec 2010
3 answers
162 views
I'm using a model similar to the External Edit In RadDock demo and have a question.

If I call InsertAppointment, should I expect the OnAppointmentInsert event to fire? This is where I've coded the write to the DB. Or should I write to the DB then call InsertAppointment or should I be doing something else entirely?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 15 Dec 2010
2 answers
147 views
Hello,

I am using RADWINDOW for some of the popups I have on my ASPX page. Before I was using regulat IE popup but I figured that they were slow bcz they are actual browsers. and I was also having problem accessing the Telerik controls client side on the regular IE popups.
RADWINDOW works very fine for me. But my ASPX page has many panels, RADGRID, and otehr telerik controls (about 300 controls )and it is already loading slow. I have 5 popups on page uses RADwindow.

I was just curious to know that does RADWINDOW resides on the same page because I figured that it is loading very fast. The only problem is if it is staying on the same page and doint Hide and show then It will be very expensive for my ASPX page.

I use,

window.radopen(temp.aspx,

 

"radwinSearchAddress");

to open the radwindow.
I would very appriciate if you could answer this for me.

Thanks,
Deepa

 

Deepa
Top achievements
Rank 1
 answered on 15 Dec 2010
4 answers
114 views
hi,

i tested the radscheduler controls in blackberry emulators

version : 5.0.0.517

also in : 4.6.1.313

in both  these versions, the week / month view or the navigation pane can not be rendered..

i have attached the screen shots too

is there any possibility of solving this ... !! ?


thanks in advance,,,
Kamen Bundev
Telerik team
 answered on 15 Dec 2010
3 answers
137 views
Concept:

Is it possible to disable AJAX dynamically and have the form works (via regular post-back) if Blackberry Browser is detected?
Currently my AJAX Mgr definition is static in aspx.

It would need to work for AJAX capable and non-capable clients.   Comments?
Kamen Bundev
Telerik team
 answered on 15 Dec 2010
4 answers
146 views
Hi Team,
Please find below requirement.
When i click on time slot of scheduler control, user has to navigate to new page to create an appointment by searching customers. In other words i don't want to existing templates. How can i achieve this.
Thanks in advance.

Regards,
Sumanth
Veronica
Telerik team
 answered on 15 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?