Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
We have a simple radGrid setup with needDatasource against an arraylist for a demo.

This should be super easy, but on a selectedIndexChange event we want a one line statement to grad the cell data.

We can only find this: 
        foreach (GridDataItem dataitem in RadGrid1.SelectedItems) 
        { 
            string strTxt = dataitem["Category"].Text; 
        } 


Is there not something like   RadGrid1.SelectedItems[0].dataitem["Category"].Text?   Do we really have to use the foreach loop?
Daniel
Telerik team
 answered on 18 Dec 2008
2 answers
217 views
Hello,

Where is the Placeholder control described in the Rad Courseware training manual on page: 58 (pg. 70 in my browser)? 

Thanks,
R2
R2
Top achievements
Rank 1
 answered on 18 Dec 2008
22 answers
469 views
I have a content page and there is a background image set in the css (body tag). This background image also seems to be replicated in the content area of the editor.  Is there any way to stop the editor from picking up the background image from the css?
rh
Top achievements
Rank 1
 answered on 18 Dec 2008
2 answers
341 views
Hello, I've run into an issue with setting the "Scrolling" attribute on splitters and the behavior it causes between splitter pane content types. Specifically whether the content is inline in the splitter pane or the content is retrieved remotely using the ContentURL attribute.

First for some test code:

Main Test Page
The following ASPX page contains two splitter examples, one holds inline content the other retrieves it's content from another ASPX page. This page has no Code Behind. There are no styles/CSS being used (K.I.S.S. test)
<%@ Page Language="VB" %> 
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!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 id="Head1" runat="server"
    <title>LocalHost Dev Site :: Telerik Splitter Test 001</title> 
</head> 
<body> 
    <form id="form1" runat="server"
        
    <asp:ScriptManager ID="smTest1" runat="server" /> 
     
    <div> 
        <telerik:RadSplitter ID="rsTest1" runat="server"
            <telerik:RadPane ID="rpTest1_1" runat="server"
                <h1>Pane 1</h1> 
                <p>Inline Content Test</p> 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="rspTest1" CollapseMode="forward" runat="server" /> 
            <telerik:RadPane ID="rpTest1_2" Scrolling="None" runat="server"
                <h1>Antidisestablishmentarianism</h1> 
                <h2>Content In Page</h2> 
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> 
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> 
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
    </div> 
    <br /><br /> 
    <div> 
        <telerik:RadSplitter ID="rsTest2" runat="server"
            <telerik:RadPane ID="rpTest2_1" runat="server"
                <h1>Pane 2</h1> 
                <p>Loaded Content Test</p> 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="rspTest2" CollapseMode="forward" runat="server" /> 
            <telerik:RadPane ID="rpTest2_2" Scrolling="None" ContentUrl="TestSplitterContent.aspx" runat="server" />          
        </telerik:RadSplitter> 
    </div> 
    <br /><br /> 
    </form> 
</body> 
</html> 


Nested Content Page
Here is the ASPX page that is the specified content for the second splitter. This page, besides the necessary full page code, has exactly the same content that is inline in the first splitter example. This page has no code behind. There are no styles/CSS being used (K.I.S.S. test)
<%@ Page Language="VB" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<script runat="server"
 
</script> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
        <h1>Antidisestablishmentarianism</h1> 
        <h2>Remote Content Loaded in iFrame</h2> 
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> 
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> 
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> 
    </div> 
    </form> 
</body> 
</html> 


Now this test was implemented to test the scrolling behavior between the two content types.

On Splitter example #1 (Inline Content), when I set Scrolling="both" I get both scroll bars as necessary, when I set Scrolling="Y" I get only a vertical scroll bar, when I set Scrolling="X" I get a horizontal scroll bar, and when I set Scrolling="None" I get no scroll bars. This is the advertised and expected behavior.

On splitter example #2 (Loaded Content), when I set Scrolling="both" I get both scroll bars, when I set Scrolling="None" I get no scroll bars. Now here is the quandry, when I set Scrolling to either "X" or "Y" I get BOTH scroll bars when only the X or Y scroll bar should appear respectively. Obviously my problem is that I am attempting to load content into a splitter pane using ContentURL where I'd like only one orientation of scroll bar to appear (the vertical Y bar), and am currently not able to do this natively with the Telerik control in this test or in my production environment.

Thus the questions... Is this a bug? Am I implementing the control incorrectly? Is there some conflict between the SplitterPane and the iFrame it implements to contain the loaded content page? Is there another reason?

Any help would be appreciated, thanks!

PS: Enivronment is: WinXP Pro v2002 SP3 / IIS 5.1 / IE v7.0.5730.13 / FF v3.0.4 / Telerik ASP.NET Ajax Control DLL v2008.3.1105.20

PaladinMRB
Top achievements
Rank 1
 answered on 18 Dec 2008
2 answers
86 views
Hi i had a valid license of ajax suite until a month ago. but now i found a bug that cannot allow my application to run smoothly and my clients are complaining . what should i do?

the bug is the following

go to http://demos.telerik.com/aspnet-ajax/Grid/Examples/DataEditing/PopUpEditForm/DefaultCS.aspx and edit any record then drag the popup form to the bottom of the screen until u manage to move the scrollbar of the broswer (Firefox) down . at this point even if u lose left mouse button the popup remains stack with the mouse and u cannot unstack it .
Rosen
Telerik team
 answered on 18 Dec 2008
1 answer
113 views
I have an application that is hosted on a clustered environment.  In order to allow uploads we have to add an entry in the web.config: -

<location path="cms/Pages/NewspaperDialog.aspx">
        <system.web>
            <identity impersonate="true" userName="xxx" password="xxx" />
        </system.web>
 </location>

I have just included the UltimateEditor on a couple of my pages and I need to add an entry to the DialogHandler.aspx, I have tried

<location path="CMS/Pages/Telerik.Web.UI.DialogHandler.aspx">
        <system.web>
            <identity impersonate="true" userName="xxx" password="xxx" />
        </system.web>
 </location>

But this results in the error

Could not load file or assembly 'Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Access is denied.


Any help would be greatly appreciated.





glenda
Top achievements
Rank 1
 answered on 18 Dec 2008
7 answers
1.3K+ views
How to show the total number of record in footer? I have no paging. Thanls
Rob
Top achievements
Rank 1
 answered on 18 Dec 2008
3 answers
295 views

I am using the RadComboBox to create a custom search tool.  The EnableLoadOnDemand works great, but for performance reasons I need it to not search after ever character.  Instead I have come up with a solution that only searches when the user presses the down arrow to open the drop down.

Now I would like the same functionality when the user presses the arrow or is typing then presses ENTER.  I am having issues having the OnClientTextChanged handler firing every time, so is there an easier way to do this?

Thanks.

 

 

<telerik:RadComboBox ID="rcbFleet" runat="server" Text="Enter Vehicle# To Search" Width="100%" HighlightTemplatedItems="true" EnableLoadOnDemand="true" Skin="Default"

 

 

 

 

 

OnClientSelectedIndexChanging="HandleEndChanging_rcbFleet"

 

 

 

 

 

OnClientDropDownOpening="OnClientDropDownOpening"

 

 

 

 

 

OnClientItemsRequesting="OnClientItemsRequesting"

 

 

OnClientKeyPressing="KeyPress_Search">

 

 

function OnClientDropDownOpening(sender, eventArgs)

 

{

 

if (sender.get_text().indexOf("Enter ") == 0) {

 

sender.set_text(

"")

 

}

 

if (sender.get_text().length < 1)

 

{ eventArgs.set_cancel(

true) }

 

 

else if(!eventArgs.get_domEvent())

 

{ eventArgs.set_cancel(

true) }

 

 

else {

 

requestItems =

true

 

 

 

 

sender.requestItems(sender.get_text(),

false)

 

}

 

}

 

 

function OnClientItemsRequesting(sender, eventArgs)

 

{

sender.hideDropDown()

eventArgs.set_cancel(!requestItems)

}

Simon
Telerik team
 answered on 18 Dec 2008
1 answer
180 views
Hi,
 i'm not able to localize in run-time RadprogressArea.
This code doesn't work:

 

Dim newCulture As CultureInfo = CultureInfo.CreateSpecificCulture(UserLanguageCode)

 

 

Me.RadProgressArea.Culture = newCulture

If i set property:

 

 

Me.RadProgressArea.Localization.ElapsedTime = some text
Me.RadProgressArea.Localization.EstimatedTime = some text
Me.RadProgressArea.Localization.Total = some text

.. doesn't work...


If i write it into aspx page works !


 

Veselin Vasilev
Telerik team
 answered on 18 Dec 2008
1 answer
127 views
I am using a GridDropDownColumn which displays LastName, but I want it to display LastName + ", " + FirstName.
I am using an EntityDataSource so I cannot derive the new value using SQL.
How can I intercept the binding process to modify the displayed values in the dropdown? 
 
<telerik:GridDropDownColumn
 DataField="RefPerson.PersonID" DataSourceID="EntityDataSourceRefPerson"
 HeaderText="Personnel Name" ListTextField="LastName" ListValueField="PersonID"
 UniqueName="RefPerson"><ItemStyle Width="45%" /></telerik:GridDropDownColumn>
 
<asp:EntityDataSource ID="EntityDataSourceRefPerson" runat="server"
 ConnectionString="name=SWMEntities" DefaultContainerName="SWMEntities"
 EntitySetName="RefPerson"
 OrderBy="it.LastName,it.FirstName"
 Select="it.[PersonID], it.[LastName], it.[FirstName]">
</asp:EntityDataSource> 
 
Nikolay Rusev
Telerik team
 answered on 18 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?