Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
301 views
How would you do this?  I have a custom sub being called in the OnClick of a link button in my grid:

<telerik:GridBoundColumn DataField="TRANS_AMOUNT" HeaderText="Amount" UniqueName="TRANS_AMOUNT"

ReadOnly="True">

<HeaderStyle HorizontalAlign="Left" Width="100px" Wrap="False" />

<ItemStyle HorizontalAlign="Right" Width="100px" Wrap="False" />

</telerik:GridBoundColumn>

<telerik:GridTemplateColumn DataField="USE_TAX_AMT" HeaderText="Use Tax" UniqueName="USE_TAX_AMT"

AllowFiltering="False">

<HeaderStyle HorizontalAlign="Left" Width="45px" Wrap="False" />

<ItemStyle HorizontalAlign="Right" Width="45px" Wrap="False" />

<ItemTemplate>

<asp:LinkButton ID="lbUseTax" runat="server" CommandName="Taxes" Width="45px" CssClass="Normal"

ToolTip="Click to edit use Tax" Text='<%#DataBinder.Eval(Container, "DataItem.USE_TAX_AMT") %>'

OnClick="useTaxClick"></asp:LinkButton>

</ItemTemplate>

</telerik:GridTemplateColumn>

'-----------------------------------------------------------------------------------------------

Public Sub useTaxClick(ByVal sender As Object, ByVal e As System.EventArgs)

'need to get the value from the grid column TRANS_AMOUNT to pass as parameter to the window
Dim taxable As Double = 0

Dim newWindow As New Telerik.Web.UI.RadWindow
newWindow.ID =
"txW"
newWindow.NavigateUrl = "PurchaseCardUseTax.aspx?taxable=" & taxable newWindow.VisibleOnPageLoad = True

Master.Page.Form.Controls.Add(newWindow)

End Sub

But how do I access the TRANS_AMOUNT column value for the row where the link button was clicked?  Neither sender nor e is capable of representing the row.

Thanks


Acadia
Top achievements
Rank 1
Iron
 answered on 25 Aug 2008
4 answers
79 views
I have a panelbar around a dock zone and multiple docks.  One dock has a slider, and it causes a loop of some sort?

Here is an example of my code...

If I remove the slider control, it works fine.
 
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Web20" Width="650px">  
        <Items> 
            <telerik:RadPanelItem Text="List Options" Expanded="false" ToolTip="Click on this bar to show list options">  
                <Items> 
                    <telerik:RadPanelItem> 
                        <ItemTemplate> 
                            <telerik:RadDockZone ID="rdz1" runat="server" Width="625px" MinHeight="100px" Orientation="Horizontal" 
                                Skin="Web20">  
                                <telerik:RadDock ID="RadDock2" runat="server" Width="300px" DefaultCommands="None" 
                                    Height="50px" Skin="Web20" Title="Start Date">  
                                    <ContentTemplate> 
                                        <telerik:RadSlider ID="RadSlider1" runat="server" Skin="Web20" /> 
                                    </ContentTemplate> 
                                </telerik:RadDock> 
                                <telerik:RadDock ID="RadDock3" runat="server" Width="300px" DefaultCommands="None" 
                                    Height="50px" Skin="Web20" Title="Expired ">  
                                    <ContentTemplate> 
                                        <asp:CheckBox ID="CheckBox11" runat="server" Text="Include Expired " /> 
                                    </ContentTemplate> 
                                </telerik:RadDock> 
                            </telerik:RadDockZone> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
    </telerik:RadPanelBar> 

Tsvetie
Telerik team
 answered on 25 Aug 2008
1 answer
89 views
Is there any ways that tooltip will load without postback??
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 25 Aug 2008
3 answers
151 views
Hi,

I am playing around with the latest build of rad editor ajax. I want to only show the html mode and hide the toolbar. This is pretty easy to do with the following code:

HtmlEditor.EditModes = Telerik.Web.UI.EditModes.Html
HtmlEditor.ToolbarMode = Telerik.Web.UI.EditorToolbarMode.ShowOnFocus;

But when i do so, i cannot enter any text into the editor. Its like i need to set its focus to html mode. The same goes when i choose to show the html and preview modes only. i have to select preview and then switch back to html mode before i am able to enter any text into the control.

Any help in solving this problem using the c# api would be greatly appreciated.

Thanks

Rumen
Telerik team
 answered on 25 Aug 2008
1 answer
81 views

I have a problems when I paste part of table, copied from RadEditor.
1. In empty RadEditor create new table.
2. Select several cells from it (not all table).
3. Copy selected cells and past them at any place of RadEditor outside source table.
Result: New table has such structure:

<table> 
    <tr> 
        <tr> 
            <td>text</td> 
            <td>text</td> 
        </tr> 
        <tr> 
            <td>text</td> 
            <td>text</td> 
        </tr> 
    </tr> 
</table> 
 

4. Switch editor to HTML Mode and back to Edit Mode.
Result: Table structure has changed:

<table> 
    <tr> </tr>  
    <tr> 
        <td>text</td> 
        <td>text</td> 
    </tr> 
    <tr> 
        <td>text</td> 
        <td>text</td> 
    </tr> 
</table> 

Both results are wrong. FireFox cannot properly draw such tables.

Expected result:

<table> 
    <tr> 
        <td>text</td> 
        <td>text</td> 
    </tr> 
    <tr> 
        <td>text</td> 
        <td>text</td> 
    </tr> 
</table> 
George
Telerik team
 answered on 25 Aug 2008
6 answers
423 views

Is there a way to change the value of the radinput after the value is bound in this example:

                            <EditItemTemplate> 
                                <telerik:RadTextBox ID="numberTextBox" runat="server" Text='<%# Bind("Number") %>' 
                                    MaxLength="5">  
                                </telerik:RadTextBox> 
                            </EditItemTemplate> 


For instance, the number in the database being bound to this control is in degrees C. There is a session variable I set that indicates if the number should be converted to degrees F before being displayed. How would I convert the value of the number and have that value displayed in the radtextbox?

(obviously, I know the C to F formula. I just don't know how to call that code using the Bind or Eval command)

Thanks!
Sebastian
Telerik team
 answered on 25 Aug 2008
1 answer
126 views
Hi,

Our web appliation is using RAD controls. We are facing some java script errors. The errors are similar to the errors discussed in below forum(http://www.telerik.com/community/forums/thread/b311D-bkdtde.aspx).

Our project scenario:
We have asp script manager in our master page. We have only reporting page and one error page. report page controls are ajaxified using Rad ajax manager.

When user draws report, if any error comes he will be redirected to error page. Again he needs to use the "back" button of the browser.
After that if user clicks on any of the tab controls(controls in report page) then it is halting the application with the specified error."sys.invalidoperationexception: type telerik.web.ui.orientation has already been registered" and also another error is :Sys.ScriptLoadFailedException:The script 'Telerik.web.ui.webresource.axd?_TSM_Hiddenfield_=....' failed to load.Check for inaccessible path'.
I did not type the second script error as is it very big. If my issue resolution depends on that then i am ready to type that also. I am using Telerik q2 release controls.

Can you please tell me whether the the script errors that user raised in the above forum are solved or not? Any suggestions how to avoid these script errors. It is halting the application to work.

Thanks in Advance.

regards,


Daniel
Telerik team
 answered on 25 Aug 2008
1 answer
88 views

 I have a page where I am ajaxifying a grid that is contained within a user control. I have this working on one page just fine. However, I put the user control on a second page and have the issue where the first click is ignored, the second click causes the page to scroll down to the bottom of the page, then the ajax starts working fine the third click and thereafter.

I have an ajax manager on my hosting page that I get from RadAjaxManager.GetCurrent(Page) because the ajax manager is contained on my master page. I then have some properties exposed for the grid on my usercontrol so I am setting the ajax directly on the grid and not the usercontrol because i know you can't set ajax on a user control. Like I said, this works fine on one page but not another.

I've seen this issue many times where it ignores the first click, either refreshes the page or jumps the page to the bottom on the second click, and then starts working on the third click and thereafter. If it can start working the third click I don't understand why it wouldn't work for the first two clicks.
Sebastian
Telerik team
 answered on 25 Aug 2008
0 answers
505 views

When i tried to build the source Telerik.winControls.RadChar (RadControlsWinforms_Q2_2008_source) i got the following errors:
'Telerik.Charting.IChartDesigner' is inaccessible due to its protection level
'Telerik.Charting.Design.Wizard.Wizard' is inaccessible due to its protection level
'Telerik.Charting.IChartDesigner' is inaccessible due to its protection level

So i have created own .snk file and replaced following public key

[assembly: InternalsVisibleTo("Telerik.WinControls.RadChart, PublicKey=002400000480000094000000060200000024000052534131000400000100010019cf862854e9af9f6e363cbaad5b1ea4d5438bfb289a23dbfc85db0d84b7364ea12f17acb131cc74b122c2d84e16c92d16617b133fb5eab8a68009f46a2e2fab972034a2447cf164628c45712dc594e28a7b38c90f99ebea841cfc81a618f502ed19e401123d46a80a1554d74db81afb85c2f1953ba124103da86f65533468a2")]

with new one.

Still the error persists.

anitha
Top achievements
Rank 1
 asked on 25 Aug 2008
2 answers
200 views
Hello,

We are using the old version RadRotator on our website and we found outa quite strange issue on Firefox 2.0.0.16 and on Firefox 1.5.
When the RadRotator is moving the firefox process consums a very high part of CPU on client side.

We tried the same thing on your demo website with nex RadRotator and we noticed exactly the same behoavior.

We also tried on IE 6 and 7 but here, we can't notice anything about CPU usage.

Why such a CPU usage on Firefox for the moving of RadRotator?

Thank you for your help,
Read you soon.
Georgi Tunev
Telerik team
 answered on 25 Aug 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?