Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
185 views
Hi,

I am using Rad Tabstrip in my code, which is working fine with internet explorer but not working with firefox or chrome.
My firefox version is v3.0.8 where as my google chrome version is v1.0.154.53.
Please find below the code I am using and let me know the solution as most of my users use firefox.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="MemberPages_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <link type="text/css" rel=Stylesheet href=MemberProps.css />
</head>

<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div style="left: 0px; width: 1024px; position: absolute; top: 60px; height: 708px">
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Black" MultiPageID="RadMultiPage1"
                SelectedIndex="0" CssClass="tabStrip">
                <Tabs>
                    <telerik:RadTab Text="Details">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Education">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Skills">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage">
                <telerik:RadPageView ID="RadPageView1" runat="server">
                    <ul>
                        <li><label>Name:</label> John Smith</li>
                        <li><label>Birthday:</label> October 20th 1976</li>
                        <li><label>Marital Status:</label> Single</li>
                    </ul>
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageView2" runat="server" CssClass="pageViewEducation">
                    <p>
                        BSc (Hons) Computer Science MIT, Boston MA September 1994 - July 1998
                    </p>
                    <p>
                        Courses taken:
                    </p>
                    <ul>
                        <li><label>Computer Architecture:</label> [A+]</li>
                        <li><label>Programming:</label> [A]</li>
                        <li><label>Mathematics for Computing:</label> [A]</li>
                        <li><label>Database Specification:</label> [A]</li>
                        <li><label>Software Development:</label> [B+]</li>
                        <li><label>OO Software Development Project:</label> [B-]</li>
                        <li><label>Four Advanced OO Software Systems:</label> [A*]</li>
                        <li><label>Systems and Simulation:</label> [A-]</li>
                        <li><label>Computer Graphics:</label> [B+]</li>
                    </ul>
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageView3" runat="server">
                    <ul>
                        <li><label>Programming:</label> C#, JavaScript, C++, PHP</li>
                        <li><label>Web Technologies:</label> HTML, CSS, DHTML</li>
                        <li><label>Databases:</label> SQL Server 2005, MySQL, Access, Oracle</li>
                        <li><label>Operating Systems:</label> Windows, Linux, DOS</li>
                    </ul>
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </div>
    </form>
</body>
</html>

Thanks in advance.

Regards,
Sandeep Devagiri


Ersin
Top achievements
Rank 1
Iron
 answered on 02 Feb 2024
0 answers
22 views

I can't figure out how to use the Visual Studio Design View on the Scheduler Templates.

For example, on Gridview I can convert columns to templates and then view and edit these templates in the designer.

How do I do this for the different Templates for the Scheduler (e.g. AdvancedInsertTemplate and AdvancedEditTemplate) ?

Scott
Top achievements
Rank 1
Iron
Iron
 asked on 01 Feb 2024
2 answers
1.5K+ views
We're getting this error in the prerender event of the page with a grid:

Error message: Object reference not set to an instance of an object.

Stack trace:    at Telerik.Web.UI.RadComboBox.OnInit(EventArgs e)

   at System.Web.UI.Control.InitRecursive(Control namingContainer)

   at System.Web.UI.Control.AddedControl(Control control, Int32 index)

   at Telerik.Web.UI.GridPagerItem.InitializePagerItem(GridColumn[] columns)

   at Telerik.Web.UI.GridPagerItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)

   at Telerik.Web.UI.GridTableView.CreateTopPagerItem(Boolean useDataSource, GridColumn[] copiedColumnSet, Boolean isPagingEnabled, GridTHead thead)

   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)

   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)

   at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()

   at System.Web.UI.Control.EnsureChildControls()

   at Telerik.Web.UI.GridTableView.get_Items()

   at Telerik.Web.UI.GridTableView.GetSelectedItems()

   at XXX.StudentSearch_PreRender(Object sender, EventArgs e) in C:\XXX\StudentSearch.aspx.vb:line 140

   at System.EventHandler.Invoke(Object sender, EventArgs e)

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Private Sub StudentSearch_PreRender(sender As Object, e As System.EventArgs) Handles Me.PreRender
        If grd.MasterTableView.GetSelectedItems.Count > 0 And grd.Visible Then
            tab.Visible = True
            mp.Visible = True
        Else
            tab.Visible = False
            mp.Visible = False
        End If
    End Sub
The error is occurring in the GetSelectedItems call. I had originally used the SelectedItems, but was getting an error with that occasionally, so I switched to GetSelectedItems. The error doesn't always happen, so it's not something I can easily reproduce.

Below is the definite for the RadGrid:
<telerik:RadGrid ID="grd" runat="server" AutoGenerateColumns="False" CellSpacing="0"
                    GridLines="None" AllowPaging="True" PageSize="20" Width="600px">
                    <ClientSettings>
                        <Selecting AllowRowSelect="False" />
                    </ClientSettings>
                    <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerOnDemand"
                        DataKeyNames="StudentUID">
                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridButtonColumn CommandName="Select" FilterControlAltText="Filter column column"
                                Text="Open" UniqueName="column" ButtonType="ImageButton" ImageUrl="Images/Open.gif">
                                <ItemStyle Width="20px" />
                            </telerik:GridButtonColumn>
                            <telerik:GridBoundColumn DataField="StudentID" FilterControlAltText="Filter column1 column"
                                HeaderText="Student ID" UniqueName="column1">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="LastName" FilterControlAltText="Filter column2 column"
                                HeaderText="Last Name" UniqueName="column2">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="FirstName" FilterControlAltText="Filter column4 column"
                                HeaderText="First Name" UniqueName="column4">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Middle" FilterControlAltText="Filter column3 column"
                                HeaderText="Middle" UniqueName="column3">
                            </telerik:GridBoundColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                    </HeaderContextMenu>
                </telerik:RadGrid>


Attila Antal
Telerik team
 answered on 01 Feb 2024
0 answers
23 views

We are exporting our webpage to a PDF using RadClientExportManager. There are two <img> on the webpage, one is included in the downloaded PDF, but one is not on the PDF. The one that is on the PDF has it's "src" set in the HTML tag, and the image that is not showing up on the PDF has its source set in the code behind from an API call.

 

Image that is working:

<img src="~/Logo.png" runat="server" height="120" align="Right"/>

Image that is not working:

HTML:

<img id="imgProfilePicture" runat="server" align="left"/>

VB.net:

imgProfilePicture.Src = API_Call.SelectToken("e[10].image_url")

imgProfilePicture.Height = 120

 

Both images are visible on the website, just not on the downloaded PDF.

 

Any help would be appreciated, thank you.

Ryan
Top achievements
Rank 1
 updated question on 01 Feb 2024
1 answer
27 views

Hi everybody,
I am using telerik.web.ui 2016 version for ASP.NET website. How can I upgrade to R1 2023 SP1 version in .NET framework 4.0. I see the new version has added key validation in IIS . I don't know where to start.
We wish everyone help!

Rumen
Telerik team
 updated answer on 01 Feb 2024
1 answer
28 views

Steps:

1. Go to Telerik Web UI MultiColumnComboBox WebForms MultiColumnComboBox Overview Demo | Telerik UI for ASP.NET AJAX

2. Enter "ha" select some records

3. Click out of the dropdown to close it

4. Textbox keeps "ha" but the message below reads that You have selected Thomas Hardy whose ID is AROUT. They are a Sales Representative at Around the Horn however, nothing has been selected.

Is it expected ?
If it's a bug and having a long cycle to fixing bugs could you recommend any workaround?

Rumen
Telerik team
 updated answer on 29 Jan 2024
1 answer
32 views

Hi, I have a Timeline view RadScheduler, and I would like to access some of the cells based on resource name and time slot.
Please see the image for reference.
I searched forums and most questions are about how to set the background color of time slots, and I checked documentation the time slot represents the whole row/column of a specific time for all resources. But in my case I only want to set the time slot of specified resource, aka a single cell or coulple of cells.
Could anyone help me?

Vasko
Telerik team
 answered on 26 Jan 2024
4 answers
342 views
Hi All!

I am using custom filter for my RadGrid (I wouldn't post the code here anymore) but my problem is, everything is working fine, but when I change page on the radGrid, it doesn't show anything , but when I click the filter button again it displays the results again 

I tried putting this on my code: 
      protected void RadGrid1_PageIndexChanged(object sender, GridPageChangedEventArgs e)
        {
            RadGrid1.CurrentPageIndex = e.NewPageIndex;
            DBcontrols.filterRadGrid();
            DBcontrols.filterRadGridUsingRange();
            RadGrid1.DataBind();
        }


still No avail, how do I retain the Databind even when changing pages? 
shakeel
Top achievements
Rank 1
Iron
 answered on 24 Jan 2024
0 answers
20 views

I am using a RadTextBox for a simple messaging form, and if the user leaves a field blank, I use a CustomValidator to set the control IsValid=true.  This is great and it uses the invalid style (pink background) and little icon and brings the user's attention to the field.

protected void valMissingFields_ServerValidate(object source, ServerValidateEventArgs args)
{
    txtMessageSubject.Text = txtMessageSubject.Text.Trim();
    txtMessageBody.Text = txtMessageBody.Text.Trim();

    txtMessageSubject.Invalid = (txtMessageSubject.Text == "");
    txtMessageBody.Invalid = (txtMessageBody.Text == "");

    args.IsValid = (!txtMessageSubject.Invalid && !txtMessageBody.Invalid);
}

I thought the InvalidStyleDuration would make it go away after a few seconds (3000 ms = 3 seconds):

<table cellspacing="0" cellpadding="0" style="width:100%;">
    <tr valign="top">
        <td style="width:90px;">
            Message:
        </td>
        <td>
            <telerik:RadTextBox ID="txtMessageBody" runat="server" 
                Width="100%" MaxLength="1000" TextMode="MultiLine" Rows="25" 
                InvalidStyleDuration="3000" 
                EnableEmbeddedSkins="false" Skin="MyCustomSkin"></telerik:RadTextBox><br />
        </td>
        <td style="width:20px; text-align:right;">
            <span class="required">*</span>
        </td>
    </tr>
</table>

But it does not.

Instead, the user is stuck typing into the text box with bright red bold lettering.  

Am I misunderstanding how this works?

As a workaround, I thought I'd use the OnClientEvents for OnValueChanging to make it switch the Invalid indication off, but apparently that event only fires when focus moves away from the control.

 

 
Peter
Top achievements
Rank 1
 asked on 22 Jan 2024
0 answers
29 views

I'm using the RadSpreadsheet component and saving it's content following this instructions here:

Telerik RadControls Access the Spreadsheet workbook on the server - Telerik UI for ASP.NET AJAX

 

So, my code behind is like this:

protected void Page_Load(object sender, EventArgs e)
{
    if (Page.IsCallback && Request.Params["__CALLBACKID"] == RadSpreadsheet1.UniqueID)
    {
        Workbook workbook = Telerik.Web.Spreadsheet.Workbook.FromJson(Request.Params["__CALLBACKPARAM"]);
        SaveWorkBook(workbook);
    }

}

 

With this code I'm able to save the spreadsheet just fine. But it's not saving the images I add using the Insert Image button (from telerik component). The images are simply not being passed through.

How can I work around that? Thank you!

 

Starshipit
Top achievements
Rank 1
 asked on 19 Jan 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?