Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
322 views
I'm struggling to get IIS 7 to play nice with Telerik.

I get the following exception when I try to run an .aspx file.  I've migrated the config file using appcmd and adding the WebResouce.axd to both httpHandlers and handlers has not caused the problem to go away.  I'm inclined to think at this point though that the bug is with Telerik since I've seen other posts for third party component bugs cause a general complaint about WebResource.axd not being registgered.

I've gone through the troubleshooting page here on this site for configuration problems:  Please do NOT post this.  I've followed it, but It doesn't address my issue.

Any help would be appreciated. 

I'm using Telerik 2009.2.701.35 on a Windows 2008 R2 box running IIS 7.  The Telerik handlers are all appropriately mapped according to the console manager.

[InvalidOperationException: The WebResource.axd handler must be registered in the configuration to process this request.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <httpHandlers>
            <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
        </httpHandlers>
    </system.web>
</configuration>]
   System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrlInternal(Assembly assembly, String resourceName, Boolean htmlEncoded) +8552206
   System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrl(Type type, String resourceName, Boolean htmlEncoded) +296
   System.Web.UI.ClientScriptManager.GetWebResourceUrl(Page owner, Type type, String resourceName, Boolean htmlEncoded) +82
   System.Web.UI.ClientScriptManager.GetWebResourceUrl(Type type, String resourceName) +16
   Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control) +271
   Telerik.Web.UI.RadDataBoundControl.RegisterCssReferences() +51
   Telerik.Web.UI.RadDataBoundControl.ControlPreRender() +36
   Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +22
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
nikhil
Top achievements
Rank 1
 answered on 18 Apr 2011
1 answer
79 views
Hi Telerik Team,

I´m trying to generate a PDF file, without sucess. When I press the button nothing happen.
Please, what´s happening?

This is my code:

<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            function onRequestStart(sender, args) {
                if (args.get_eventTarget().indexOf("exportToFile") >= 0)
                    args.set_enableAjax(false);
            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <ClientEvents OnRequestStart="onRequestStart" />
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadComboBox_Estrategia">
            </telerik:AjaxSetting>
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Sunset">
    </telerik:RadSkinManager>
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" IsSticky="true"
        Style="margin-top: 200px; margin-left: 200px; position: absolute; z-index: 100"
        BackColor="Transparent" MinDisplayTime="1" EnableEmbeddedSkins="False">
        <asp:Image runat="server" ID="LoadingImage1" ImageUrl="~/Images/pmpartner-loader.gif"
            AlternateText="Carregando..." />
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="Center"
        LoadingPanelID="RadAjaxLoadingPanel1">
        <div>
            <table id="tbl_DAS_ESTRATEGIAS" align="center" class="tabela_bege_claro">
                <tr>
                    <td align="right" style="width: 25%">
                        Estratégia:
                        <telerik:RadComboBox ID="RadComboBox_Estrategia" runat="server" DataSourceID="SqlDataSource_Estrategias"
                            Skin="Sunset" AutoPostBack="True" DataTextField="nome" DataValueField="nome"
                            AppendDataBoundItems="True">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Text="Todas" Value="0"></telerik:RadComboBoxItem>
                            </Items>
                        </telerik:RadComboBox>
                        <asp:SqlDataSource ID="SqlDataSource_Estrategias" runat="server" ConnectionString="<%$ ConnectionStrings:pmpartnerConnectionString %>"
                            SelectCommand="SELECT [codigo], [nome] FROM [pmeasy_020100_ESTRATEGIAS]"></asp:SqlDataSource>
                    </td>
              </tr>
            </table>
        </div>
        <asp:Label ID="totproj" runat="server" Text="Label"></asp:Label>
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" DataSourceID="SqlDataSource_grid1"
            Skin="Sunset" Culture="pt-BR" OnItemDataBound="RadGrid1_ItemDataBound" AllowSorting="True"
            CellSpacing="0" GridLines="None" ShowFooter="True" ShowGroupPanel="True" ShowStatusBar="True" Width="100%">
            <ExportSettings FileName="Status_dos_Projetos" IgnorePaging="false" OpenInNewWindow="false">
                <Pdf Author="PMeasy - PMPartner Consultoria" Creator="PMeasy - PMPartner Consultoria"
                    PageHeight="297mm" PageTitle="STATUS DOS PROJETOS - PMeasy - PMPartner Consultoria"
                    PageWidth="210mm" PaperSize="A4" Producer="PMeasy - PMPartner Consultoria" Subject="STATUS DOS PROJETOS"
                    Title="STATUS DOS PROJETOS" />
            </ExportSettings>

                <PagerStyle Mode="NextPrevAndNumeric" />

                <CommandItemTemplate>
                    <asp:ImageButton ID="exportToFile" runat="server" CommandName="ExportToPdf" ImageUrl="images/PDF-icon3.png"
                        AlternateText="STATUS dos Projetos" Style="cursor: pointer;" OnClick="DownloadPDF_Click"/>
                </CommandItemTemplate>

                <CommandItemSettings ExportToPdfText="Exporta para PDF" ShowExportToPdfButton="true"/>

                <Columns>
my columns
                </Columns>

        </telerik:RadGrid>

        <asp:SqlDataSource ID="SqlDataSource_grid1" runat="server" ConnectionString="<%$ ConnectionStrings:pmpartnerConnectionString %>"
            SelectCommand="pmeasy_GRID_oknok" SelectCommandType="StoredProcedure" OnSelected="SqlDataSource_grid1_Selected">
            <SelectParameters>
                <asp:ControlParameter ControlID="RadComboBox_Estrategia" Name="estrategia" PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </telerik:RadAjaxPanel>
    </form>

Thanks, best

Daniel
Shinu
Top achievements
Rank 2
 answered on 18 Apr 2011
2 answers
115 views
Hello everyone,

I have 2 rad grid in in my page. First grid is shows demo data and second one shows actual data.

So ti differentiate first grid I want to put watermark which says like "This is sample data".

So how can i achieve this functionality?

I have tried using background css image but not succeed as when I using some other theme which have Row Background....

So can anyone guide me how can I do this?

Regards,

Dharmesh
Radoslav
Telerik team
 answered on 18 Apr 2011
3 answers
1.2K+ views
lo que tengo es lo siguiente, pero lo que deseo es agregar una tabla mas pero no tiene un campo de relación con una de ellas

protected void Page_Load(object sender, EventArgs e)
        {
        
        }




        protected void BuscarTablaTema(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            if (!e.IsFromDetailTable)
            {
                RadGrid1.DataSource = ObtenerDatosTabla("SELECT * FROM Tema");
                RadGrid1.MasterTableView.DataKeyNames = new string[] { "IdConocimiento" };
            }
        }


        protected void BuscarTablaConocimiento(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
            GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
            string IdConocimiento = dataItem.GetDataKeyValue("IdConocimiento").ToString();
            e.DetailTableView.DataSource = ObtenerDatosTabla("SELECT * FROM Conocimiento WHERE IdConocimiento = '" + IdConocimiento + "'");
        }


        public DataTable ObtenerDatosTabla(string ConsultarTabla)
        {
            String ConnString = ConfigurationManager.ConnectionStrings["IgrupoLogosConnectionString"].ConnectionString;
            SqlConnection conexionTabla = new SqlConnection(ConnString);
            SqlDataAdapter adaptador = new SqlDataAdapter();
            adaptador.SelectCommand = new SqlCommand(ConsultarTabla, conexionTabla);


            DataTable DatosTabla = new DataTable();


            conexionTabla.Open();
            try
            {
                adaptador.Fill(DatosTabla);
            }
            finally
            {
                conexionTabla.Close();
            }


            return DatosTabla;
        }
    }
}
Radoslav
Telerik team
 answered on 18 Apr 2011
3 answers
242 views
Hello all,i have a problems with Radgrid,plz help me
i want when i click client select column on my grid then informations on a row binding to textbox
example : 
http://nguy-hiem.co.cc/img.png
So what should i do ? what the event i can use ?

THANK !
Shinu
Top achievements
Rank 2
 answered on 18 Apr 2011
1 answer
48 views
I am looking to have a RadWindow open any URL I throw at it, but I am getting the following error:

BC30456: 'OpenRadWindow' is not a member of {page name}

It seems like it should be pretty simple, I must be missing something here...

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
   <script type="text/javascript">
 
    function OpenRadWindow(url) {
        radopen(url, "DisplayWindow");
    }
 
    </script
    </telerik:RadCodeBlock>
<p>
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState = "false">
        <Windows>
            <telerik:RadWindow Skin="Sunset"  ID="DisplayWindow" runat="server" Title="RadWindow" AutoSize="true" Left="10px" Top="10px" ReloadOnShow="true" Modal="true"  ShowContentDuringLoad="false" KeepInScreenBounds="True" />
        </Windows>
    </telerik:RadWindowManager>
 
    </p>
<p><asp:LinkButton ID="LinkButton1" runat="server" OnClick="OpenRadWindow('http://maps.google.com/maps?map_url'); return false;">Map It!</asp:LinkButton> </p>
Georgi Tunev
Telerik team
 answered on 18 Apr 2011
1 answer
98 views
Hi:
I need create a textbox into a gridcolumn, but it's dinamic in with c# code.
Thanks
David.
Princy
Top achievements
Rank 2
 answered on 18 Apr 2011
1 answer
91 views
I am rewriting a report written using classic ASP. It is laid out using multiple rows for each record.

There is a data field with text commentary in it—too wordy to fit in a single column. (See the attachment)

I'd like to have it on a separate row below the grid row containing the additional data.

Is it possible to do this?

Thanks!
Princy
Top achievements
Rank 2
 answered on 18 Apr 2011
2 answers
122 views
I have 2 combo box's on my page using Load on Demand from Webservices which are working great, but I'm trying to enable "MarkFirstMatch", but if I do that the item isn't being selected, but just the text value is being set.
(if they key down to the value, or select with the mouse it works fine, just not when using mark first).

Result
Selectedindex = -1
SelecteItem = Nothing
Selected Value = ""
text = marked FirstMatch.

While I think i could do a work around and do a reverse lookup if value = "' and text = something, I would like to get it working so I can just reference the selectedvalue.

Thanks in advance for any help you can give.

Combo:

<telerik:RadComboBox ID="rcbInitiated" runat="server" DataTextField="userName" MarkFirstMatch="true"
          DataValueField="eID" EnableLoadOnDemand="true" EnableAutomaticLoadOnDemand="true"
         ShowMoreResultsBox="false" EnableVirtualScrolling="false" OnClientDropDownClosed="OnClientDropDownClosed" EnableItemCaching="true">
        <CollapseAnimation Duration="200" Type="OutQuint" />
        <WebServiceSettings Path="~/ws/wsCFR.asmx" Method="GetEIDUserName" />
</telerik:RadComboBox>

WebService:
<WebMethod()> _
Public Function GetUserIDUserName(ByVal context As RadComboBoxContext) As RadComboBoxData
    Return GetItems(context, "userID")
End Function
Public Function GetItems(ByVal context As RadComboBoxContext, ByVal valueField As String) As RadComboBoxData
    Dim data As DataTable = GetData(context.Text)
    Dim comboData As New RadComboBoxData()
    Dim itemOffset As Integer = context.NumberOfItems
    Dim endOffset As Integer = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count)
    comboData.EndOfItems = endOffset = data.Rows.Count
    Dim result As New List(Of RadComboBoxItemData)(endOffset - itemOffset)
    For i As Integer = itemOffset To endOffset - 1
        Dim itemData As New RadComboBoxItemData()
        itemData.Text = data.Rows(i)("userName").ToString()
        itemData.Value = data.Rows(i)(valueField).ToString()
        result.Add(itemData)
    Next
    comboData.Message = GetStatusMessage(endOffset, data.Rows.Count)
    comboData.Items = result.ToArray()
    Return comboData
End Function
Byzza
Top achievements
Rank 2
 answered on 18 Apr 2011
3 answers
417 views
I have created Grid dynamically (Simply Grid is defined in .aspx file, columns are bind from code behind., no hard coded column Name) I have Combo Box outside the grid, gird loads with different column as item changes in Combo Box. 

protected

void grdSystemComponents_ItemCreated(object sender, GridItemEventArgs e){
if

(e.Item is GridDataItem && e.Item.IsInEditMode || e.Item is GridFilteringItem)
{
foreach (GridColumn column in e.Item.OwnerTableView.RenderColumns)
{
if ((column is GridBoundColumn) && !((GridBoundColumn)column).ReadOnly)
{
TextBox textBox = null;
if (e.Item is GridDataItem)
{
textBox = ((
TextBox)((GridDataItem)e.Item)[column.UniqueName].Controls[0]);
textBox.Style[
"width"] = "90%";
textBox.Style[
"height"] = "11px";
textBox.Style[
"border"] = "0px";
textBox.Style[
"font-size"] = "11px";
} }

//Each column is assigned UniqueName as ID of respective Column
string
headerID = column.HeaderText;
int count = dtHeaderInfo.Rows.Count;
for (int i = 0; i < count; i++)
{
if (headerID == dtHeaderInfo.Rows[i][0].ToString())
column.UniqueName = dtHeaderInfo.Rows[i][0].ToString();
} } } }

Here are my two Issues:

1) Since Grid is set up this way, I have no idea how to calculate Footer Total for each columns. Number of column changes depending on the selected Item on Combo Box.

2) I also need to update Caluculation as user will enter number on textboxes of the Grid. In the grid, there is a column called "Tot Num", as user enter numbers here I need to update other columns on same row, user can change it but can't exceed value of "Tot Num" column. If "Tot Number" is zero, should not allow to enter number.

I need to have database interaction for calculation? How do I go go to accomplish this? Your help is much appreciated.

thansk
Madhu

chitralekha
Top achievements
Rank 1
 answered on 16 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?