Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
Hi All,

Is it possible to show to data from two datasources inside NestedViewTemplate of radgrid.

I need to show some data from one webservice and some from another webservice.

Example:  Name   Company (webservice 1)
                 arun      XYZ        (webservice 1)

                 Status            DOB            (webservice 2)
                 Unmarried        10/7/80      (webservice 2)




      
Veli
Telerik team
 answered on 05 Aug 2010
2 answers
101 views
I have 4 columns in my radgrid and in one of the column there are some negative values as well as positive, will it be possible to put all the negative values in brackets.
Example:

 Product Name

Product ID

Values

A

1

$ -12.00 

B

2

$11

C

3

$ - 13

D

4

$ 14

E

5

$ - 16

F

6

$ - 17

 

 

 


so i want all the negative values of coulmn "values" into brackets and without $ sign.
Expected result

 Product Name

Product ID

Values

A

1

$(12.00 )

B

2

$11

C

3

$(13)

D

4

$ 14

E

5

$(16)

F

6

$(17)

 

 

 


Please help.

Thanks
Ruchin
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
111 views
I have a listview with another 3rd party control inside of the edititem Template. This control reacts to ajax request and if certain requirements are not met with it then it in effect takes over the edit form and will not allow the page to exit edit mode. How do I cancel edit item in listview through javascript?
Tsvetoslav
Telerik team
 answered on 05 Aug 2010
2 answers
140 views
I want to close window.When I click a button.
But javascript code gives an error window value null.oWindow value always null.This code runs on usercontrol
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
        function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                alert(oWindow);
                oWindow.close();
            }
  
   
        </script>
    </telerik:RadScriptBlock>
<telerik:RadWindow ID="mdlPopup"  runat="server" Title="Bilgi Ekranı" Skin="Windows7"
    Width="440px" Height="150px" Modal="true" Top="50%" Left="50%" Behaviors="Close,Move"
    EnableShadow="false" VisibleStatusbar="False" >
    <ContentTemplate>
        <div style="padding: 10px">
            <table cellpadding="3" style="width: 100%">
                <tr>
                    <td valign="middle" style=" padding-left:20px">
                        <asp:Image ID="imgWarning" runat="server" ImageAlign="AbsMiddle" />
                    </td>
                    <td style=" height:60px">
                        <asp:Label ID="lblMessage" Font-Bold="false" runat="server" ForeColor="#1E395B"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <input id="Button1" type="button" onclick="javascript:GetRadWindow();" value="button" />
                         
                    </td>
                </tr>
            </table>
        </div>
    </ContentTemplate>
</telerik:RadWindow>
Hakan
Top achievements
Rank 1
 answered on 05 Aug 2010
3 answers
135 views
Hi,

I have a RadMultiPage which is controlled by a RadTabStrip.  I also have a RadWindow, which sits outside of the RadMultiPage.  I need updates within the RadWindow to be reflected in the contents of the RadMultiPage.  How can I acheive this?  Ideally the update would be to only a single PageView.

Thanks.
Yana
Telerik team
 answered on 05 Aug 2010
3 answers
73 views
I have on demand loading of nodes working.  My app is using ASP.NET forms-based authentication.  When the user's ASP.NET session times out (default is 20 minutes) and the user attempts to expand a node then the "loading" animated icon appears and nothing happens.  If the user clicks on something else that actually posts back to the server then ASP.NET displays the login form and the user can resume using the app but the animation icon never disappears.

What can be done about this?
Yana
Telerik team
 answered on 05 Aug 2010
3 answers
199 views
I am using the EnableAutomaticLoadOnDemand with the combo box and it's great but I have 1 problem.  I need to have a row already in the combo and still be able to trigger the loading of the combo.

Here is the scenario.  I have a form that display a bunch of information for a given database record.  I need to show the user the associated item in the combobox but I do not want to load all of the rows of that  combo until they choose to see them. I am fine with just inserting 1 row into the combo and then triggering the loading of all the combo rows when the combo is clicked.

So basically how can I achieve this scenario of inserting 1 row into the combo so the user can see the data for that item and still trigger the loading of all rows when the combo is clicked.

In my tests I have inserted a row both on the server and on the client but in doing so prevents the triggering of the LoadOnDemand.


Robert
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
95 views
hi,

1>In my application,rad grid is in AjaxPanel.
In normal
button_click()
{
        RadGrid1.MasterTableView.ExportToExcel();
}
and i gave like this
  <ExportSettings ExportOnlyData="false" HideStructureColumns="false"
                                IgnorePaging="True" OpenInNewWindow="True">
   </ExportSettings>
Output:   Only one page data is exporting to excel
2>So I tried,by removing radgrid from AjaxPanel
Then also Only one page data is exporting to excel
Give me the suggestion to export all the pages of the grid to Excel.

Thank u.
Daniel
Telerik team
 answered on 05 Aug 2010
6 answers
274 views
Hi,

I am using Rad Controls of version 2009.2.701.35. I need to load a series of Rad Charts dynamically. The no.of charts are also dynamic. While loading the charts am getting the following error, for few charts:

Error loading RadChart image.
You may also wish to check the ASP.NET Trace for further details.
Display stack trace?


A red X mark is displayed in place of those charts.
Am able to see other charts(Like, out of 10 charts am able to see 8 or 7 charts). This error message is not consistent for a particular chart always. For a same set of records one time am getting error on 5th and 9th charts, and if I load the same page again, am getting error in different chars,(like 2nd and 4th).

I read through many forums related to this issue. I tried various options but they are not working out for me.

I tried adding, 
<add name="ChartHandler" path="ChartImage.axd" verb="*"
type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
in my system.webServer section in web.config.

As per forum I also tried adding, 
<add name="ChartImage_axd" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" /> 

I tried setting the, 
RadChart rChart = new RadChart();
rChart.HttpHandlerUrl = ResolveUrl("ChartImage.axd"); from my code behind.

Am testing this in my local development environment (Visual Studio 2008). Am getting the same error in development as well as deployed location.

If anyone have solution for this, Please help me out!!!
Thanks.
Giuseppe
Telerik team
 answered on 05 Aug 2010
3 answers
386 views
Hi Telerik Team,

I Implemented popup window with radtabs option in it. I have textboxe and dropdownlist in second tab.  (see diagram 1 below) When I am trying to find control of that textbox i am getting error like "Object reference not set to an instance of an object." Here is my  code. Can you help me how to solve this issue. Thanks.

here is my code
<telerik:RadWindow ID="WinEditForm" runat="server" ShowContentDuringLoad="false"
        Width="650px" Height="400px" Title="Action" Behaviors="Default" Animation="FlyIn">
        <ContentTemplate>
            <div style="padding-top: 15px; padding-left: 10px">
                <asp:UpdatePanel runat="server" ID="UpEditForm" OnUnload="RegisterUpdatePanel4">
                    <ContentTemplate>
                        <div style="padding-right: 20px; padding-top: 15px; text-align: center">
                            <table class="customFont" cellspacing="5" width="100%">
                                <tr>
                                    <td>
                                        <telerik:RadTabStrip runat="server" ID="RadTabStrip1" Orientation="HorizontalTop"
                                            SelectedIndex="0" MultiPageID="RadMultiPage1" Align="Left">
                                            <Tabs>
                                                <telerik:RadTab Text="Task Data" PageViewID="RadPageView1">
                                                </telerik:RadTab>
                                                <telerik:RadTab Text="Notes" PageViewID="RadPageView2">
                                                </telerik:RadTab>
                                            </Tabs>
                                        </telerik:RadTabStrip>
                                        <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">
                                            <telerik:RadPageView runat="server" ID="RadPageView1">
                                                <table id="Table3" cellspacing="1" cellpadding="1" width="350" border="0">
                                                    <tr>
                                                        <td>
                                                        </td>
                                                        <td>
                                                        </td>
                                                    </tr>
                                                    <br />
                                                    <tr>
                                                        <td>
                                                            Clarify Account Nbr:
                                                        </td>
                                                        <td align="left">
                                                            <asp:TextBox ID="TextBox1" runat="server">
                                                            </asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Site ID:
                                                        </td>
                                                        <td align="left">
                                                            <asp:TextBox ID="TextBox2" runat="server" TabIndex="1">
                                                            </asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Quote ID:
                                                        </td>
                                                        <td align="left">
                                                            <asp:TextBox ID="TextBox3" runat="server" TabIndex="2">
                                                            </asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            EDP Created?:
                                                        </td>
                                                        <td align="left">
                                                            <asp:CheckBox ID="CheckBox1" runat="server" TabIndex="3"></asp:CheckBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" colspan="2">
                                                            <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click">
                                                            </asp:Button>
                                                            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                                CommandName="Cancel"></asp:Button>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </telerik:RadPageView>
                                            <telerik:RadPageView runat="server" ID="RadPageView2">
                                                <table id="Table2" cellspacing="1" cellpadding="1" width="350" border="0">
                                                    <tr>
                                                        <td>
                                                            <br />
                                                            <table id="Tablenotes">
                                                                <tr>
                                                                    <td align="left">
                                                                        Note Type :
                                                                        <asp:DropDownList ID="DropDownList1" runat="server">
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <td align="left">
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" colspan="2">
                                                                        Note Description
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left">
                                                                        <asp:TextBox ID="TextBox4" runat="server" TextMode="MultiLine" Rows="2" Width="300px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:ImageButton ID="ImageButton3" OnClick="btnAddNote_Click" runat="server" ToolTip="Add Note"
                                                                            ImageUrl="~/Images/add-icon.png" />
                                                                        <asp:ImageButton Visible="false" ToolTip="Update" OnClick="imgbtnNotesUpdate_Click"
                                                                            ID="imgbtnNotesUpdate" runat="server" ImageUrl="~/Images/accept-icon.png" />
                                                                        <asp:ImageButton Visible="false" ToolTip="Cancel" OnClick="imgbtnNotesCancel_Click"
                                                                            ID="imgbtnNotesCancel" runat="server" ImageUrl="~/Images/delete-icon.png" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div style="overflow: auto; height: 160px">
                                                                <asp:GridView ID="gvNotes" BorderColor="#004000" runat="server" AutoGenerateColumns="false"
                                                                    BackColor="White" BorderWidth="1px" BorderStyle="Solid" CellSpacing="0" Width="100%"
                                                                    OnSelectedIndexChanged="gvNotes_SelectedIndexChanged" OnRowDataBound="gvNotes_RowDataBound">
                                                                    <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White"
                                                                        HorizontalAlign="Center" BorderColor="White" BorderWidth="0px" />
                                                                    <PagerSettings Mode="NumericFirstLast"></PagerSettings>
                                                                    <RowStyle ForeColor="#000000" Font-Size="8pt" HorizontalAlign="Left" BorderWidth="1px"
                                                                        BorderColor="#004000" />
                                                                    <AlternatingRowStyle Font-Size="8pt" ForeColor="#000000" BackColor="#F5F5E9" BorderWidth="1px"
                                                                        BorderColor="#004000" />
                                                                    <PagerStyle HorizontalAlign="Right" Font-Bold="true" Font-Size="8pt" />
                                                                    <Columns>
                                                                        <asp:TemplateField Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblonID" runat="server" Text='<%# Bind("onID") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField HeaderText="Note Description" DataField="Description" />
                                                                        <asp:BoundField HeaderText="Note Type" DataField="Type" />
                                                                        <asp:BoundField HeaderText="Created By" DataField="CreatedBy" />
                                                                        <asp:BoundField DataFormatString="{0:MM/dd/yyyy}" HeaderText="Created Date" DataField="CreationDate" />
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </telerik:RadPageView>
                                        </telerik:RadMultiPage>
                                    </td>
                                </tr>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </ContentTemplate>
    </telerik:RadWindow>


protected void btnAddNote_Click(object sender, EventArgs e)
    {
 
        clsTaskUpdates_BL objBL = new clsTaskUpdates_BL();
        string strName = Session["UserName"].ToString();
 
        string OrdID = (string)Session["orderId"];
        RadPageView PageView = (RadPageView)WinEditForm.ContentContainer.FindControl("RadPageView2");
        TextBox NoteTxt = (TextBox)PageView.FindControl("txtNoteDesc");
        string NoteDesc = NoteTxt.Text;
        DropDownList DDL = (DropDownList)PageView.FindControl("ddlNoteType");
        string NoteType = DDL.Text;
}

I also tried another way but no luck

string OrdID = (string)Session["orderId"];
        string NoteType = (WinEditForm.ContentContainer.FindControl("RadPageView2").FindControl("ddlNoteType") as DropDownList).Text;
        string NoteDesc = (WinEditForm.ContentContainer.FindControl("RadPageView2").FindControl("txtNoteDesc") as TextBox).Text;


Please let me know how to find the answer
Babu Puchakayala
Top achievements
Rank 1
 answered on 05 Aug 2010
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?