Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
556 views
HI,  I see you guys get this a lot but I couldn't find a recent one that had a similar circumstance - so here goes.  I have a very simple website that I developed a registration page for that included radCaptcha.  I then began implementing forms authentication and used a location tag in the web.config to make the register.aspx page and App_Themes directory available to anonymous users.  All of that worked until I got to the bottom of the page and found that the captcha image was broken.

After doing some googling on the subject I saw a lot of references to this:

<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>

Unfortunately VS2010 does not seem to know where Telerik.Web.UI.WebResource.axd is (I get the blue squigly from resharper telling me it can't be found).  I have an entry in httHandlers and handlers groups for the axd.  Kind of at a dead stop at the moment - I just got the latest subscription so I know I'm up to date and as noted at the start of this post it worked fine when I didn't the forms authentication implemented.

Thanx,

Eric

Princy
Top achievements
Rank 2
 answered on 10 Oct 2012
1 answer
74 views
hiii all,
     can anyone help me?
i am using telerik grid. Problem is when i click on export to excel link button while grid is empty.
in excel i am not getting anything.
i want to show headers of the grid in the excel sheet.
Shinu
Top achievements
Rank 2
 answered on 10 Oct 2012
2 answers
176 views
I have followed the code snippets from other posts on this issue to add a linkbutton to the group headers of my radgrid but on clicking the linkbutton's I get an object not specified error.

I'm adding the following code, where item is the gridgroupheaderitem and then handling the command in the radgrid_itemcommand event.
the code is added in both the radgrid_itemcreated and radgrid_itemdatabound events.
protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridGroupHeaderItem)
        {
            createbutton((GridGroupHeaderItem)e.Item);
 
        }
    }
    protected void createbutton(GridGroupHeaderItem header)
    {
        if (header.DataCell.FindControl("thisGroup") == null)
        {
            Label mylab = new Label();
            mylab.ID = "thisNumber";
            DataRowView drv = header.DataItem as DataRowView;
            mylab.Text = drv["Location"].ToString();
            Label mylabno = new Label();
            mylab.ID = "thisGroup";
 
            mylabno.Text = drv["GroupOrder"].ToString();
            mylabno.Visible = false;
            GridGroupHeaderItem item = header as GridGroupHeaderItem;
            LinkButton lnk = new LinkButton();
            lnk.Text = "Move up ";
            lnk.Style.Add("margin", "3px");
            LinkButton xnk = new LinkButton();
            xnk.Text = "Move down";
            xnk.Style.Add("margin", "2px");
            xnk.Style.Add("padding", "2px");
 
            item.DataCell.Controls.Add(mylab);
            item.DataCell.Controls.Add(mylabno);
            lnk.CommandName = "Up";
            item.DataCell.Controls.Add(lnk);
            xnk.CommandName = "Down";
            item.DataCell.Controls.Add(xnk);
        }
    }


I'm guessing its related to the fact this radgrid is ajaxified, but not entirely sure.  any ideas??
Morgan
Top achievements
Rank 2
 answered on 10 Oct 2012
5 answers
205 views
How can I change the Root PanelBar Text from code behind?

Thanks
Adeel
Top achievements
Rank 1
 answered on 09 Oct 2012
2 answers
260 views
I have a web site that stores documentation.  We use RadEditor to add and update our documents.  I'm in the process of converting all my pages from .NET 1.1  to .NET 4.0

As a result I'm using a newer version of RadEditor.

Our documentation is actually stored as html in a SQL database.

When we display a document, we read the SQL DB into an XML doc and display it.

I have RadEditor working just fine to add new documents.  However, I'm having problems with editing documents.

When I retrieve my data from the SQL database, I'm loading the .InnerXML of my XML doc in the the RadEditor Content field.  RadEditor starts up in Design mode, but the main window is showing all the HTML markup - how can I load my data, so that the main window shows my rendered document, with the HTML markup in the lower window only?

Basically, I need to make this new version of RadEditor function the way my old RadEditor 7.3.5 did.  I've uploaded some files to illustrate my problem. 
Adhelp
Top achievements
Rank 1
 answered on 09 Oct 2012
3 answers
144 views
My RadGrid (Version 2012.2.912.40):

<asp:UpdatePanel ID="InterfacePanel" UpdateMode="Conditional" runat="server">
<ContentTemplate>
 <telerik:RadGrid ID="InterfaceGrid" BackColor="White" Skin="Vista" AutoGenerateColumns="false" AllowSorting="true" runat="server">
    <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder" AllowKeyboardNavigation="True" />
    <MasterTableView HierarchyDefaultExpanded="true" EnableColumnsViewState="false" EditMode="InPlace" BorderColor="#ededed" GridLines="Both" CommandItemDisplay="Top" InsertItemDisplay="Bottom">
 <HeaderStyle HorizontalAlign="Left" />
  <EditFormSettings>
     <EditColumn ButtonType="ImageButton" />
 </EditFormSettings>
    </MasterTableView>
    <ValidationSettings EnableValidation="true" CommandsToValidate="PerformInsert,Update" />
    <ItemStyle Wrap="false" />
    <ActiveItemStyle Wrap="false" />
 </telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
Kostadin
Telerik team
 answered on 09 Oct 2012
0 answers
87 views
I have a huge project that used RadTabStrips liberally. In many of the pages, but not all, the RadTabStrip unexpectedly resizes to 100% of the browser width. This behavior is not exhibited in IE7 or IE8.

After a cursory look at the CSS for the pages affected, I noticed that there is an entry in the WebResource.axd

.RadTabStrip .rtsLevel {
 
width: 100%; overflow: hidden; padding-top:
1px; clear: both; position: relative;
}


If I disable the width setting in this file (dynamically through the IE developer tools) the RadTabStrip displays properly, fitting the width of the multipage.

I do not set the width of the tabstrip anywhere because the width of the multipage may vary based on the dynamically created content.

The code for the tabstrip is:

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0">
    <Tabs>
        <telerik:RadTab runat="server" Text="Manage Disciplines" Selected="True">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Discipline Mapping">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>



Please advise of a solution to this issue.
Keith
Top achievements
Rank 2
 asked on 09 Oct 2012
4 answers
294 views
Hi,

I am binding a listbox using a SQLDatasource and then adding an item ("All")  to the list on the item databound event.  The problem is that it is adding it in the second position and I need it to be the first item in the list.  Is there a way to add an item at a specific position?

Thanks for your help.

Private Sub rlbCompanyName_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListBoxItemEventArgs) Handles rlbCompanyName.ItemDataBound
 
        Dim drv As DataRowView = CType(e.Item.DataItem, DataRowView)
        e.Item.Attributes.Add("CompanyNumber", drv("CompanyNumber").ToString())
        If Me.rlbCompanyName.FindItemByValue("All") Is Nothing Then
            Dim item As New RadListBoxItem("All", "All")
            item.Attributes.Add("CompanyNumber", "00")
            Me.rlbCompanyName.Items.Add(item)
        End If
        If Not Me.rlbCompanyName.FindItemByText("Unknown") Is Nothing Then
            Dim itemToRemove As RadListBoxItem = rlbCompanyName.FindItemByText("Unknown")
            Me.rlbCompanyName.Items.Remove(itemToRemove)
        End If
 
    End Sub
Tracy
Top achievements
Rank 1
 answered on 09 Oct 2012
1 answer
71 views
Hello everyone I have a problem with using a custom skin, when I run the website locally works fine when I transfer it to a production server does not work anymore. If you use telerik skin everything works perfect in the production server.

Michele
Top achievements
Rank 2
 answered on 09 Oct 2012
3 answers
244 views
Is there a way to apply a RadComboBox skin to a regular asp:DropDownList?
I'm using a combination of RadComboBoxes and regular asp:DropDownList controls.  I'm using the Web20 skin for the RadComboBoxes, I want the asp:DropDownList to look the same.

Any advice?

Thanks!
Aarsh
Top achievements
Rank 1
 answered on 09 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?