Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
76 views
Hello.

We are changing server and we have a problem.
Our new server is brand new and no other site has been hosted there.

The problem that we have is that the webresource.axd (that dynamically added just before <hread> ends) file is empty each time the site loads and that means that the telerik controls have no style at all.

Can you please help resolve it? What is wrong?

P.S.: The files of the site are copy-paste from the old to the new server, so is the web.config.
Fiko
Telerik team
 answered on 16 Dec 2010
1 answer
188 views
Hi,

I am using a Radgrid Hierarchy with girdimagebuttons. And I am ptoviding the tooltip to the buttons using the below code and it works fine.

<telerik:GridButtonColumn UniqueName="EditCMNbr" CommandName="EditCM" ImageUrl="~/Images/edit-icon-v5.gif"
   ButtonType="ImageButton" HeaderStyle-Width="3%" ItemStyle-Width="3%">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn UniqueName="AddSMNbr" CommandName="AddSM" ImageUrl="~/Images/add-icon.png"
   ButtonType="ImageButton" HeaderStyle-Width="3%" ItemStyle-Width="3%">
</telerik:GridButtonColumn>
protected void RGCMnbr_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem dataItem = (GridDataItem)e.Item;
        ImageButton btnEditCM = (ImageButton)dataItem["EditCMNbr"].Controls[0];
        btnEditCM.ToolTip = "Edit CM";
 
        ImageButton btnAddSM = (ImageButton)dataItem["AddSMNbr"].Controls[0];
        btnAddSM.ToolTip = "Add SM";
    
 
}


The Issue is When i click the Expandcolumn in my radgrid Hierarchy I am getting error like cell bound column is not find. Please see the Images. Please let me know how to achieve this.

Thanks.
Princy
Top achievements
Rank 2
 answered on 16 Dec 2010
1 answer
294 views
Session state is not available in this context error getting in following scenario's


WebResource.axd?d=<script>_q=random(X3001618968Y1Z)</script>&t=634271032502995866
/WebResource.axd?d="'><qqs `;!--=&{()}>&t=634271032502995866
WebResource.axd?d="><qss>&t=634271032502995866
/WebResource.axd?d=<script a=1>_q_q=random()</script>&t=634271032502995866
/WebResource.axd?d="'><qss>&t=634271032502995866
/WebResource.axd?d=<script src=//localhost/j>&t=634271032502995866
WebResource.axd?d=<script =">" SRC=//localhost/j>&t=634271032502995866
/WebResource.axd?d=<SCRIPT/QSS SRC=//localhost/j>&t=634271032502995866
WebResource.axd?d="'><<SCRIPT a=2>qss=777;//<</SCRIPT>&t=634271032502995866
l/WebResource.axd?d=<IMG SRC=javascript
WebResource.axd?d=<BODY ONLOAD=qss>&t=634271032502995866
/WebResource.axd?d=<META HTTP-EQUIV="refresh" CONTENT="0;url=javascript
/WebResource.axd?d=<DIV STYLE="width
WebResource.axd?d=<STYLE type="text/css" a=3>BODY{background
/WebResource.axd?d=<EMBED SRC=//localhost/q.swf AllowScriptAccess=always></EMBED>&t=634271032502995866
/WebResource.axd?d="'><qss a=X3001618968Y1Z>&t=634271032502995866
/WebResource.axd?d=' onEvent=X3001618968Y1Z &t=634271032502995866
/WebResource.axd?d=" onEvent=X3001618968Y1Z &t=634271032502995866
/WebResource.axd?d=<
script a=4>qss=777<
/script>&t=634271032502995866
/WebResource.axd?d=<script src=http
/WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1'&t=634271032502995866
WebResource.axd?d=;-- &t=634271032502995866
/WebResource.axd?d=%23&t=634271032502995866
/WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1') OR NULL IS NULL &t=634271032502995866
WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1 OR 3 IS NULL-- &t=634271032502995866
/WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1') OR 4 IS NULL &t=634271032502995866
WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1' OR NULL IS NULL &t=634271032502995866
/WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1' OR 5 IS NULL &t=634271032502995866
WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1 OR NULL IS NULL &t=634271032502995866
WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1') AND NULL IS NULL-- &t=634271032502995866
WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1 OR 6 IS NULL &t=634271032502995866
/WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1' AND NULL IS NULL-- &t=634271032502995866
WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1') AND 7 IS NULL-- &t=634271032502995866
WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1 AND NULL IS NULL-- &t=634271032502995866
WebResource.axd?d=4bDweKb38NrF0Z326D5wHAtOYfY85j2WuKNJmifox1a0mbwZT_cPR0oABo-Eywl2q-IXZELqKk1C9KCA2yJgVT4wPHg1' AND 8 IS NULL-- &t=634271032502995866
WebResource.axd?d=<SCRIPT/QSS SRC=//localhost/j>&t=634271032502995866
/WebResource.axd?d="'><<SCRIPT a=2>qss=777;//<</SCRIPT>&t=634271032502995866
/WebResource.axd?d=<IMG SRC=javascript
/WebResource.axd?d=<BODY ONLOAD=qss>&t=634271032502995866
/WebResource.axd?d=<META HTTP-EQUIV="refresh" CONTENT="0;url=javascript
WebResource.axd?d=<DIV STYLE="width
/WebResource.axd?d=<STYLE type="text/css" a=3>BODY{background
WebResource.axd?d=<EMBED SRC=//localhost/q.swf AllowScriptAccess=always></EMBED>&t=634271032502995866
WebResource.axd?d="'><qss a=X3001619016Y1Z>&t=634271032502995866
WebResource.axd?d=' onEvent=X3001619016Y1Z &t=634271032502995866
/WebResource.axd?d=" onEvent=X3001619016Y1Z &t=634271032502995866
WebResource.axd?d=<
script a=4>qss=777<
/script>&t=634271032502995866
WebResource.axd?d=Nc687h54Adx71TFrFbPmkR9xUxpJw0h6gUfuJTMdYyBQ6ztTYzWGd1bU5_S1IThtBMnNCR-cAalREGIuQtxevFs4nHI1'&t=634271032502995866
Fiko
Telerik team
 answered on 16 Dec 2010
1 answer
77 views
resolved, caused by a flash in the index file
James Shelton Agar
Top achievements
Rank 2
 answered on 16 Dec 2010
1 answer
139 views
Hello sir,

on my page i have 3 radgrid..when i select row of first grid then the second grid with releated record should display..this i achevied..
but when i select 2nd grid row then 3rd grid not displaying..after i click first grid then 3rd grid display..

what is the wrong i am doing  can you help me to solve this..
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2010
1 answer
53 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
108 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
141 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
146 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
170 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?