Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
56 views
I have a real simple scenario, but I am a little unclear on how to approach. I need to have my grid insert and edit records. Note, I will not being using and datasource controls, so I will be handlings on the server. Basically, I have two string columns. When creating a new record, both are editable. When editing an existing record, only the second string is editable. So, I am wondering how to have the grid controls render two textbox's on insert, but only one on edit?

Thanks
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2010
4 answers
117 views
I'm using a Custom File Content Provider (copied from the knowledge base).

Everything works fine except the following situations:

1. Folder name contains # or & (i.e. "Store #123")
2. User double clicks file within this folder to view the file
3. Within the FileSystemHandler.ashx file, the ProcessRequest function is called but the path of the file gets cut off at the # or & symbol

So when the code gets to the WriteFile call, it fails since it can't find the file.

Suggestions?

Loy
Loy Chan
Top achievements
Rank 1
 answered on 16 Dec 2010
2 answers
151 views
Hi,

The problem I'm having is that I have 3 seperate user controls, each with a radlist view in it.  The 3 user controls are on the same page.  If you click to page one of them, then while it is still paging click to page another, they all stop working.  They all have seperate RadAjaxManagerProxies.  It seems that the second click cancels the first, then doesn't actually perform it's postback, but I'm not too sure. 

Any help would be great!

Davoc
Davoc Bradley
Top achievements
Rank 1
 answered on 15 Dec 2010
5 answers
161 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
176 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
131 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
624 views
how i can apply compare validator on RadDateTimePicker
Kevin Price
Top achievements
Rank 1
 answered on 15 Dec 2010
2 answers
58 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
113 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
133 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?