Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
I am writing a letter managing application, and have programmed some snippits to inert place holder text (e.g. ###address###, ###name###) that get inserted into the designer view e.g.

###address###

Dear ###name###,

blah blah ###name###
...

My question is how do I replace the placeholder text on switching to a preview view or printing?
Grayson Mitchell
Top achievements
Rank 1
 answered on 14 Jul 2009
1 answer
68 views
Hello,

I have two issues I would like to handle within the editor (I have done these in win form applications, but am new to web development)

1\ Any change in the main editor I want to make a coresponding change to a copy of the editor (with a few exeptions)
I want to have a second editor on my page with a slightly different view from my main editor window (Similar to the Silverlight editor example).

2\ I want to insert "chunks" that can't be edited, and if any of the 'chunk' is deleted, the whole text is deleted.  (I did this in a Richtextbox with the onchange event)





Grayson Mitchell
Top achievements
Rank 1
 answered on 14 Jul 2009
0 answers
160 views
I have HOME tab which contains an Iframe that changes the source page depending on your selection from the RadMenu.

Inside the Iframe (which is classic ASP) I want to be able to open a new tab if a button is clicked in the Classic ASP page.

Then once in that new tab with info, pass back to the HOME tab and close out the current tab.

Any ideas? Direction?  Is Javascript involved? Or is it not needed.

This technique is being thought of to eliminate the pop-up menus that occur all over the current site that return values back to textboxes, etc.

We want to use Tabs now.


Bryan Page
Top achievements
Rank 1
 asked on 14 Jul 2009
1 answer
130 views
Hi All,

        I am using RCB(Rad ComboBox) with Multiple Column. Now, I am facing a prob. That is if there is only one item in RCB.

       The SelectedindexChange Event won't triggered.

    
Logic:
      
    When i select an item from RCB. RG(Rad Grid) Should be reloaded.
    If only one item in RCB. Then The selectedIndexChange not Triggered. Because The first item set selected in RCB automatically.
    I used to give parameters for RG through Codebehind page i mean in selectedIndexChange event.


So i need help to wipe out this issue........
Any one Please....

-Leo
    

Jose
Top achievements
Rank 2
 answered on 14 Jul 2009
2 answers
163 views
Hi,  im trying to access to the property selectedvalue in a combobox declared in this way:

                                <telerik:RadComboBox ID="RadComboBoxFlight" runat="server"   
                                    DataTextField="NU_VUEL" DataValueField="ID_VUEL_CLIE"   
                                    EmptyMessage="Seleccione&nbsp;una&nbsp;aerolinea..." Height="100px"   
                                    OnClientItemsRequested="ItemsLoaded"   
                                    OnItemsRequested="RadComboBoxFlight_OnItemsRequested" Skin="Web20"   
                                    Width="180" /> 

when i do postback with a button, the selectedvalue of the combobox returns an empty string, only works the text property.

 i chekc the support section of the combobox and i find this :
http://www.telerik.com/help/aspnet-ajax/load-on-demand-access-items-server-side.html and there say that selectedvalue is supported.

im using 2009 Q2..
btw i also try with loadondemand="true"
Jose
Top achievements
Rank 2
 answered on 14 Jul 2009
1 answer
252 views

Hello,
I have two RadCombo boxes on my page, I have customText = true for both the RadCombo boxes. Also, I have implemented the code for the client side OnClientKeyPressing & OnBlur events. In OnClientKeyPressing event I check if the user has hit the "Enter" key and if so, I am shifting the focus to the second RadCombo. The focus moves to the next Radcombo box as expected but it don't trigger the OnBlur of the First Radcombo box.

What should be done so that the OnBlur event of the first combo box is called when the focus moves to the second combo box.

Thanks,
Rajiv

 

Jose
Top achievements
Rank 2
 answered on 14 Jul 2009
0 answers
77 views
Hi,
I created a three column template and uploaded it to sitefinity. It uploaded successfully but when I open it it gives me server error.I dont understand what the problem is.Could you please help me.
sree devi
Top achievements
Rank 1
 asked on 14 Jul 2009
3 answers
176 views
Hi

I have a date picker for which the calendar icon is not shown but it pops up when you click in the textbox. This is achieved using javascript like so

 

function ToggleStartDateCalendarPopup()

 

{

$find(

 

"<%= dpStartDate.ClientID %>").showPopup();

}

 

<telerik:RadDatePicker ID="dpStartDate"

 

 

runat="server">

 

 

 

 

 

 

<DatePopupButton Visible="False"></DatePopupButton>

 

<DateInput onclick="ToggleStartDateCalendarPopup()">

 

 

</DateInput>
</
telerik:RadDatePicker>

This works fine but I wanted to put the javascript into an include file. However the code stops working when I do this and I get this error

Message: 'null' is null or not an object

I also tried adding the javascript using registerclientscriptblock but got the same error message

 

Dim s As New StringBuilder

 

s.AppendLine(

"<script>")

 

s.AppendLine(

"function ToggleStartDateCalendarPopup(){")

 

s.AppendLine(

"$find(""<%= dpStartDate.ClientID %>"").showPopup();}")

 

s.AppendLine(

"function ToggleEndDateCalendarPopup(){")

 

s.AppendLine(

"$find(""<%= dpEndDate.ClientID %>"").showPopup();}")

 

s.AppendLine(

"</script>")

 

 

If Not Page.IsPostBack Then

 

 

 

 

'Page.ClientScript.RegisterClientScriptInclude("DatePopups", ResolveClientUrl("~/JavaScript/DatePopups.js"))

 

 

 

Page.ClientScript.RegisterStartupScript(

Me.GetType(), "DatePopup", s.ToString)

 

 

The error is presumably because of the data binding expressions. How can i fix this so I can have my javascript in an include file that can be shared among pages?

thansk

 

 

 

 

 

 

andieje
Top achievements
Rank 1
 answered on 14 Jul 2009
4 answers
214 views
Hi,
I'm trying to get my website to the point where it is WCAG 2.0 AA compliant.
To achieve this, checkboxes need to have associated labels. If I could allocate an ID to each checkbox within the treeview I could then force the the label via the name parameter when creating the node but I cannot see how to allocate that ID.
Ie.
From this
<input type="checkbox" checked="checked" />
<span class="TreeNode" title="Details of Internal Organisational Strucutre">Internal Organisational Structure 3</span>
To
<input type="checkbox" checked="checked" id = "chkone"/>
<span class="TreeNode" title="Details of Internal Organisational Strucutre">
<label for = "chkone">Internal Organisational Structure 3</label>
</span>

Is there a better/any way of doing this?
Thanks
Philip Jones
Top achievements
Rank 1
 answered on 14 Jul 2009
1 answer
116 views
Hi,

I  have followed the article below

http://www.telerik.com/community/code-library/aspnet-ajax/grid/storing-multiple-grid-settings-in-database-via-profile.aspx

I have everything working apart from the persistance of the visibility of the columns.
After extensive de-bugging and attempting other things by biggest problem is that the header context menu does not post-back for any of the column visbility settings, only the sorting / filtering / group by. Without the post-back, the render method does not get called and the settings are not saved.

I have included my RadGrid aspx code.

 

<telerik:RadGrid AutoGenerateColumns="false" DataSourceID="sqlTradeList" AllowFilteringByColumn="true"

 

 

ID="RadGrid1" runat="server" AllowPaging="true" ShowGroupPanel="true" AllowSorting="true"

 

 

EnableViewState="false" Width="80%">

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

<MasterTableView TableLayout="Auto" EnableHeaderContextMenu="true">

 

 

<Columns>

 

 

<telerik:GridHyperLinkColumn HeaderText="TradeId" DataTextField="TradeId" SortExpression="TradeId"

 

 

DataNavigateUrlFormatString="~/Trade/PackageDetails.aspx?InternalPackageId={0}&PackageId={1}"

 

 

DataNavigateUrlFields="InternalPackageId,PackageId" />

 

 

<telerik:GridDateTimeColumn HeaderText="Trade Date" DataField="TradeDate" DataFormatString="{0:dd/MM/yyyy}"

 

 

SortExpression="TradeDate" />

 

 

<telerik:GridBoundColumn HeaderText="Source System" DataField="SourceSystemName"

 

 

SortExpression="SourceSystemName" />

 

 

<telerik:GridBoundColumn HeaderText="Asset Class" DataField="AssetClass" SortExpression="AssetClass" />

 

 

<telerik:GridBoundColumn HeaderText="Product" DataField="ProductName" SortExpression="ProductName" />

 

 

<telerik:GridBoundColumn HeaderText="Trader" DataField="TraderName" SortExpression="TraderName" />

 

 

<telerik:GridDateTimeColumn HeaderText="Last Updated" DataField="LastUpdated" DataFormatString="{0:dd/MM/yyyy mm:hh:ss}"

 

 

SortExpression="LastUpdated" />

 

 

<telerik:GridBoundColumn HeaderText="Version" DataField="TradeVersion" SortExpression="TradeVersion" />

 

 

</Columns>

 

 

</MasterTableView>

 

 

<HeaderContextMenu >

 

 

</HeaderContextMenu>

 

 

<ClientSettings AllowColumnsReorder="true" AllowColumnHide="true">

 

 

<ClientEvents />

 

 

</ClientSettings>

 

 

<GroupingSettings ShowUnGroupButton="true" />

 

 

</telerik:RadGrid>

 


Please can someone have a look and let me know where I am going wrong...

Cheers,

Paddy Watts
Georgi Krustev
Telerik team
 answered on 14 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?