Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
140 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
77 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
208 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
97 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
292 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
402 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
6 answers
133 views
Why is it that colourizing some skins appears to have no effect?

If I go in to VSB and create a skin based on, say, Office2007, pick Grid and colourize (and save) using, as an example, #00ff33 as the base colour, the "Colourization Done" window pops up and going to fine tune shows my Green coloured skin.

If I do the same thing but base my new skin on the "Default" skin then fine tuning the Grid skin after colourizing it shows a skin that looks identical to the original. I've not been through all the controls but Grid, Menu, ToolBar and PanelBar all seem unchanged. Editor shows changes in the tool icons but not the skin itself.

-- 
Stuart



Alex Gyoshev
Telerik team
 answered on 05 Aug 2010
1 answer
302 views
How to make radcomboBox open dropdownlist on mouseover and close the list when mouse is out the combobox dropdownlist?
I did the following :
<script type="text/javascript">
  
    function ToggleDropDown() {
        var combo = $find("<%= RadComboBoxSearch.ClientID %>");
        combo.showDropDown();
    }
       function closeDropDown() {
        var combo = $find("<%= RadComboBoxSearch.ClientID %>");
         combo.hideDropDown();
     }
      
  
  
</script>
and in code behind

RadComboBoxSearch.Attributes.Add(

"onmouseover", "ToggleDropDown();")

 


RadComboBoxSearch.Attributes.Add(

"onmouseut", "CloseDropDown();")

but by doing that when mouse is over the combo the list opens but when i go with mouse over the list it closes without being able to select anything.I need to close the combolist when mouse is out the combolist and not out the combo itself

 

Simon
Telerik team
 answered on 05 Aug 2010
5 answers
150 views
i have a combobox that is using automaticalloadondemand. sometimes the value of selectedvalue is present and sometimes it is absent - there does not seem to be a rhyme or reason to it - but when it is absent the text value has what is in the combobox but any of the "Selected" values such as selectedindex and selectedvalue act like nothing is selected. is this a bug? if or if it is not a bug how do I work around this? I have many comboboxes with this on a page and need to only load them if the user clicks in them but I want to reliably get the value.

I am using the latest 2010 version of telerik with the combobox within an updatepanel inside a user control which is loaded on a page that has a masterpage

<telerik:RadComboBox ID="MyRadComboBox" runat="server" Width="200px" Height="100px" 
                MarkFirstMatch="True" DataSourceID="MyObjectDataSource" EnableAutomaticLoadOnDemand="true" 
                EmptyMessage="Select Something If You Want To" DataTextField="name" DataValueField="id"> 
            </telerik:RadComboBox> 
Simon
Telerik team
 answered on 05 Aug 2010
3 answers
182 views
How to Change GridGroupHeaderItem Font  Size?

am using This Way ..
protected void rgMyFile_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridGroupHeaderItem)
        {
         
            (e.Item as GridGroupHeaderItem).Font.Size = FontUnit.Point(30);
            (e.Item as GridGroupHeaderItem).Font.Bold = true;
        }
    }
but its Not Working
protected void rgMyFile_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {

if (e.Item is GridGroupHeaderItem)
        {
            GridGroupHeaderItem item = e.Item as GridGroupHeaderItem;
             e.Item.Font.Size = FontUnit.Point(430);
            e.Item.Font.Bold = true;
            e.Item.CssClass = "bold";
        }
}

using This way also not Working.
give me any solution

Princy
Top achievements
Rank 2
 answered on 05 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?