Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
194 views
Hey Guys,

Hope someone can assist.  I am experiencing a weird issue.  I recently deployed some changes to our Staging Server.
In my Local Development Environment, there are no issues.  Tested on IE8, Firefox and Chrome

When I view the same site on our STAGING server, firefox and chrome no issue
but ...
on IE8 returns a JavaScript error

JavaScript Error
Message: '2.offsetHeight' is null or not an object
Line: 12023
Char: 1
Code: 0
URI: http://<server_name>/aspx/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions .....

So after checking all the deployment files were done successfully I then debugged the JavaScript on while running the STAGING version and found that for IE8 in the following code snippet
"if(($telerik.isIE6||$telerik.isIE7||$telerik.quirksMode)&&(i[0].style.height!="")){var j=d("tr > td > div",k);"

$telerik,isIE7 was returning true.  Why is it returning true for IE8? no idea.  I have tried this one 2 other PC's in the office, same error. 

I do not think it is a deployment issue otherwise it would not work perfectly on FF or Chrome.
I don't think It is an issue specific to IE8 because it works perfectly on IE8 running my Local Devt' site, only STAGING has the issue.

When I debugged the JavaScript it was the Telerik.Web.UI.RadListBox._preInitialize which was calling the code with the error so I included a snippet of the ListBox in the Panel.

<telerik:RadPanelItem runat="server" Text="Manager Filter (0 Items selected)" Expanded="false" Value="ManagerfilterPanel" Visible="false"><br>                    <ContentTemplate><br>                        <div class="item"><br>                        Search:&nbsp;<telerik:RadComboBox runat="server" ID="cboManagerSearch" ShowToggleImage="false" Width="330" Filter="Contains" DropDownWidth="330" EnableScreenBoundaryDetection="true" NoWrap="true" OnSelectedIndexChanged="cboManager_SelectedIndexChanged" AutoPostBack="true"></telerik:RadComboBox><br /><br>                        <telerik:RadListBox runat="server" AllowTransferDuplicates="false" Width="400px"<br>                            Height="265px" AllowTransferOnDoubleClick="true" EnableDragAndDrop="true" Font-Names="Calibri" EnableMarkMatches="true"<br>                            ID="lstSourceManager" AllowTransfer="true" TransferToID="lstPickedManager" <br>                            SelectionMode="Multiple" Skin="Windows7" OnClientTransferred="OnClientTransferredManager" Sort="Ascending"><br>                            <HeaderTemplate><br>                                <div style=" margin: 0px 0px 0px 10px; padding: 5px 0px 0px 0px; height: 20px; vertical-align: middle;">Managers</div><br>                            </HeaderTemplate><br>                        </telerik:RadListBox><br>                        <telerik:RadListBox runat="server" Font-Names="Calibri" ID="lstPickedManager" Height="265px" EnableMarkMatches="true"<br>                            Width="380px" AllowTransferDuplicates="false" AllowTransferOnDoubleClick="true" PersistClientChanges="true"<br>                            EnableDragAndDrop="true" SelectionMode="Multiple" Skin="Default" Sort="Ascending"><br>                            <HeaderTemplate><br>                                <div style=" margin: 0px 0px 0px 10px; padding: 5px 0px 0px 0px; height: 20px; vertical-align: middle;">Selected Managers</div><br>                            </HeaderTemplate><br>                        </telerik:RadListBox></div><br>                    </ContentTemplate><br>                </telerik:RadPanelItem>

Any ideas? Any suggestions would be much appreciated.

Thanks

B
Peter Filipov
Telerik team
 answered on 30 May 2012
1 answer
125 views
I have a RadGrid that's using an Asp.Net LinqDataSource to feed it data. I'm working with a particularly large data set (20k+ records) and the capabilities of the RadGrid to utilize the LinqDataSource's ability to page and sort at the database level have been highly useful. After running Sql Profiler, I've noticed that Grouping is having performance issues due to the fact that it's bringing the entire dataset back to the server and doing the grouping operations there. Is this expected behavior or am I doing something wrong?

Thanks,
Dennis
Antonio Stoilkov
Telerik team
 answered on 30 May 2012
1 answer
101 views
Hi, I am using Javascript to resize alot of my control.

I would like to do something like that with a RadTextBox (MultiLine) for example:

$find("myControl").ResizeInput(width, height);

So that, I don't have to pass my control in parameter. I want to use "this" instead inside my function. I don't know if I'm clear enough.

Thanks.
Vasil
Telerik team
 answered on 30 May 2012
3 answers
255 views
Hello 

Is it possible to set sliders maximum value dynamically?
i mean something like this
maximumvalue=<% bind.pricemaximum %>

Thanks in advance
Niko
Telerik team
 answered on 30 May 2012
1 answer
161 views
Good morning all,

I am a bit of a novice with this system, so I may be in a bit over my head with what I am trying to do.  I have a report with two charts right now.  Those are working fine.  What I wanted to do was add two tabs to the report, each with a radgrid view to show different information.  I read up on the ASP.Net pages about the RadMultiPage function.  I was expecting when I added it to see separate pages to which I could add the grid view components, and then add the RadTab headers to the pages.  Clearly I am going about it wrond because all I saw was a simple box on my BodyContent page.

What is the correct steps to create the view I am going for?  Do I create a whole new web form, and set up a Multipage function from the start, or can this be added after the fact?  Sorry for the confusion question, but I am definitely a bit confised here as to how to proceed with the idea.  I'm not afraid of the coding aspect of it, I am just not up to the skill levl (in my opinion) to understand it quite  yet.
Dimitar Terziev
Telerik team
 answered on 30 May 2012
1 answer
110 views
I have a ListView defined like this ...
<telerik:RadListView runat="server"
                     ID="RadListView1"
                     AllowMultiItemSelection="false"
                     ItemPlaceholderID="items"
                     ClientDataKeyNames="ContactId, Surname, Forename, Organisation, Email">
    <LayoutTemplate>
        <div id="listview"
             class="RadListView RadListView_#= owner.Skin #">
            <asp:Panel runat="server"
                       ID="items"
                       ScrollBars="Vertical"/>
        </div>
    </LayoutTemplate>
    <ClientSettings>
        <ClientEvents OnCommand="radListView1_OnCommand"/>
        <DataBinding>
            <ItemTemplate>
                <div class="item">
                    <div>
                        <strong>#= String.format("{0}, {1}", Surname, Forename) #</strong>
                    </div>
                    <div>#= Organisation #</div>
                    <div>#= Email #</div>
                </div>
            </ItemTemplate>
            <SelectedItemTemplate>
                <div class="item selected">
                    <div>
                        <strong>#= String.format("{0}, {1}", Surname, Forename) #</strong>
                    </div>
                    <div>Home: #= HomePhone #</div>
                    <div>Mobile: #= Mobile #</div>
                </div>
            </SelectedItemTemplate>
        </DataBinding>
    </ClientSettings>
</telerik:RadListView>

Simple.
When an item in the ListView is clicked, the following code runs...
listView.toggleSelection(index);
var clientDataValues = listView.get_clientDataKeyValue()[index];

Where index is the item index of the item clicked.

My problem is that clientDataValues is always empty. I know that the value of index is correct 'cos the items selected state toggles correctly. Even if I hard-code an index it's empty.

Am I supposed to cast a different spell if I'm client-side binding?

--
Stuart


Tsvetina
Telerik team
 answered on 30 May 2012
2 answers
78 views
Hello,

I’ve created a RadListView with paging (RadDataPager) which is working fine.

I’ve inserted a call to a userControl in the “itemTemplate”. It’s working fine for the first page, but is empty for the other pages. The parameters are not passed on to the control.

Could someone help me correct this, please ?
Evelyne Schreiner
Top achievements
Rank 1
 answered on 30 May 2012
1 answer
119 views
Quite simply put: When are CSS sprites going to be supported? I am currently working on a project which heavily uses the RadRibbonbar and therefore uses a lot of images. Loading all these images is currently whats dragging out the page load time to unacceptable levels, even with browser caching. (25+ images)

So ideally I want to replace these image urls by CSS sprites to reduce page load time.

Currently on version: 2011.3.1115.40
Ivan Zhekov
Telerik team
 answered on 30 May 2012
1 answer
94 views
The method toggleSelection() appears to be missing from the docs.

I only know it's there 'cos it's used in one of your demo pages.

What other goodies are we missing out on?

--
Stuart
Tsvetina
Telerik team
 answered on 30 May 2012
1 answer
91 views
I have a ListView that I'm populating client-side using a WebService.

I have been trying to get the data in my item template to change when I click on the item. I used code in ListViewBinding.js from this demo as the basis for the following code...
setTimeout(function ()
{
    $telerik.$(".item").click(function (e) { listView.toggleSelection($(this).index()); });
}, 500);

My problem is that if I click on an item, it toggle to the SelectedItemTemplate (which is fine) but clicking again doesn't change it back.

If I click on a 2nd item it switched to the SelectedItem template and the first item switches back. However once an item has been toggled once it won't toggle again.

--
Stuart
Tsvetina
Telerik team
 answered on 30 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?