Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
87 views
Hi,

I am using Rad grid with heirarchy ,if one parent record does not have any child record when i expand that parent record no child records found message is displayed , but user is not able to select that no record found row , i want to perform some functionlity on selection of that no record found row ,so please let me know is there any way i can select no record found row.

Thanks,
Wajih
Top achievements
Rank 2
 asked on 07 Apr 2011
2 answers
100 views
I want show a custom line (target line) on the chart 

like the picture attached.

to be shown a red grid line,and show a target value at left 

and I have found a similar sample for silverlight here
http://www.telerik.com/help/silverlight/radchart-features-annotations-custom-gridline.html

but I didnt found this feature in ASP.NET AJAX.

is possible do something like this ?

thanks
Anders
Top achievements
Rank 1
 answered on 07 Apr 2011
4 answers
336 views
Dear All,

I have added the Telerik.Web,UI.dll in my web application.

It is working fine, but today I have faced a strange issue while building the solution, the error returned is:

Error    296    Metadata file '<<Project Path>>\bin\Telerik.Web.UI.dll' could not be opened -- 'Not enough storage is available to process this command. ' 

But I have enough memory and other process were running fine and the CPU usage is also less.

My system configuration is:
OS - Windows 2003 Server
RAM - 4 GB
Free Space in C drive - 3.09 GB

Can any one tell me why this happens and how to get rid of this?

Thanks a lot in advance.
Sammy Elal
Top achievements
Rank 1
 answered on 07 Apr 2011
8 answers
661 views
Hi.. i want to know how to save images in database using RadUpload or RadAsyncUpload. and also i want to retrive it .. basically i'm making a Picture sharing site .. so please can u help me.. i'm beginner in asp.net. and also i followed your demo link.. but its hard for me to understand.. 

i've following scenario
1. User may upload "N" no of photos.. to db.
2 and has to retrive all his photos (Like gallery).

Which method is best stroing path of image in DB or Image itself in the DB ... Please give me detailed information.. ;( please.. i'm struck with collge project :( :( please.
Sebastian
Telerik team
 answered on 07 Apr 2011
1 answer
200 views
I have a Grid named gvModules with a nested grid called gvFields.  The gvModules uses the DataKey ItemTypeID that I need when a new record is added to gvFields.  I am trying to access that DataKey from the insert statement in the gvFields ItemCommand method.  I've tried the examples given on the forums and in the documentation without avail. I would welcome any additional direction.

ASPX
<telerik:RadGrid ID="gvModules" runat="server" AutoGenerateColumns="False" 
        DataSourceID="dsModules" GridLines="None" AutoGenerateEditColumn="True" 
        OnItemDataBound="gvModules_OnItemDataBoundHandler"
        Skin="Windows7" AllowFilteringByColumn="True" AllowSorting="True">
<MasterTableView DataKeyNames="ItemTypeID" DataSourceID="dsModules">
----
<NestedViewSettings DataSourceID="dsFields">
        <ParentTableRelation>
            <telerik:GridRelationFields DetailKeyField="ItemTypeID" MasterKeyField="ItemTypeID" />
        </ParentTableRelation>
    </NestedViewSettings>
    <NestedViewTemplate>
        <telerik:RadGrid ID="gvFields" runat="server" DataSourceID="dsFields" 
            AutoGenerateEditColumn="True" GridLines="None" Skin="Windows7" 
            OnItemDataBound="gvFields_OnItemDataBoundHandler"
            OnItemCommand="gvFields_ItemCommand" OnItemUpdated="gvFields_ItemUpdated" 
            AllowSorting="True">
            <MasterTableView CommandItemDisplay="TopAndBottom" AutoGenerateColumns="False" DataSourceID="dsFields" DataKeyNames="FieldID">
                -----
             </MasterTableView>
         </telerik:RadGrid>
      </NestedViewTemplate>
</MasterTableView>
</telerik:RadGrid>

C#
protected void gvFields_ItemCommand(object source, GridCommandEventArgs e)
{
        if (e.CommandName == RadGrid.PerformInsertCommandName)
        {
            GridEditableItem editedItem = e.Item as GridEditableItem;
  
            //PARAM ITEM TYPE ID
            GridDataItem parentItem = (GridDataItem)(e.Item.OwnerTableView.ParentItem);
              
            if (parentItem != null)
            {
                string itemType = "";
                itemType = parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["ItemTypeID"].ToString();
                lblTmp.Text += "Item Type ID = " + itemType;
                //dsFields.InsertParameters["ItemTypeID"].DefaultValue = parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["ItemTypeID"].ToString();
            }
            else
            {
                lblError.Text += "Cannot find parent item";
            }
     }
}

What I always get is 'Cannot find parent item'. 
Princy
Top achievements
Rank 2
 answered on 07 Apr 2011
2 answers
108 views
Hi,

I have a situation where I need to move a RadAsyncUpload control in the DOM.  After I move it the AllowedFileExtensions seems to be reset to allow all extensions.  I have not been able to work out how to set the AllowedFileExtensions via javascript.

Here is the problem isolated in a simple example.  Initially only jpg and wmv files can be selected.  But once I click the bt_MoveDiv button and move the control in the DOM, all file types can be selected.

<body>
    <form id="form1" runat="server">
     
    <script language="javascript" type="text/javascript">
     
        function buttonClick() {
            var container = document.getElementById('container');
            var ph = document.getElementById('holder');
 
            ph.appendChild(container);
        }
     
    </script>
     
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
     
        <div id="container">
            <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AllowedFileExtensions="jpg,wmv">
            </telerik:RadAsyncUpload>
            <telerik:RadProgressArea ID="RadProgressArea1" runat="server">
            </telerik:RadProgressArea>
            <asp:Button ID="bt_Submit" runat="server" Text="Submit" onclick="bt_Submit_Click" />
        </div>
         
        <div id="holder">
        </div>
         
        <asp:Button ID="bt_MoveDiv" runat="server" Text="Move div" OnClientClick="buttonClick();return false;" />
         
    </div>
    </form>
</body>

I had similar problems some time ago with RadEditor being moved in the DOM.  This problem was fixed with the onParentNodeChanged() function.  Is there something similar I can do for RadAsyncUpload?

Thanks
Andrew
Andrew Dixon
Top achievements
Rank 1
 answered on 07 Apr 2011
0 answers
91 views
Hello programmers!

I'm building a GridTableView code, which is to show the detail of each record in a RadGridView.

To establish the relationship between registration and the detail table, I add a GridRelationFields keys thereof.

When I run the program (developed in aspx), whenever I click on to expand, I get the error I show in the picture:

Help!!!
Carlos Rodriguez
Top achievements
Rank 1
 asked on 06 Apr 2011
5 answers
301 views
Hi,
I used following code for grid
<telerik:RadGrid runat="server" ID="grdLMA" EnableEmbeddedSkins="false" AutoGenerateColumns="false"
                                            CellPadding="4" ForeColor="#333333" GridLines="None">
                                            <MasterTableView AllowSorting="false" AllowPaging="false" >

                                            </MasterTableView>
                                            <HeaderStyle Wrap="false" BackColor="#5D7B9D" ForeColor="White" Font-Bold="true"/>
                                            <ExportSettings ExportOnlyData="true" FileName="Roll-up Live Report" Excel-FileExtension="xls" Excel-Format="ExcelML"
                                            OpenInNewWindow="true"></ExportSettings>
                                            <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                            <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                                            <ClientSettings>
                                                <Scrolling UseStaticHeaders="true" AllowScroll="true" SaveScrollPosition="true"/>
                                                <Resizing AllowColumnResize="true" AllowRowResize="true" ClipCellContentOnResize="false" ResizeGridOnColumnResize="true" />
                                            </ClientSettings>
                                            <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="true"/>
                                            </telerik:RadGrid>

In this grid i add columns dynamically. Please help me.

Thanks,
Abhinandan Bansal
Daniel
Telerik team
 answered on 06 Apr 2011
0 answers
75 views
Not a issue from telerik
Wendy
Top achievements
Rank 1
 asked on 06 Apr 2011
0 answers
98 views
I'm getting "Sys.WebForms.PageRequestManager is null or not an object" error when I add an ajaxloadingpanel to the MasterPage
I'm making enablepartialrender of the scriptmanager to false in the master page PageInit(to avoid javascript errors while loading the asp.net report viewer in the child pages).
Not sure if I'm doing anything wrong...below is the code for my master page.

<
telerik:RadScriptManager ID="RadScript1" Runat="server">
        </telerik:RadScriptManager>
          
     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
            DefaultLoadingPanelID="RadAjaxLoadingPanel1" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ViewChooser">
                <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="ViewChooser" 
                      />
                    <telerik:AjaxUpdatedControl ControlID="ContentPlaceHolder1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             
        </AjaxSettings>
    </telerik:RadAjaxManager>
        <div class="tabStripHeader">
            <asp:Panel runat="server" ID="ViewChooserWrapper">
              
                <telerik:RadTabStrip ID="ViewChooser" runat="server" Height="21px" 
                SelectedIndex="0" Width="100%" 
                ShowBaseLine="True">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Alerts" Value="alerts.ascx" ImageUrl="~/Images/s.png" 
                        CssClass="AlertsTab" SelectedCssClass="AlertsTabSelected" NavigateUrl="~/Aspx/Alerts/Alerts.aspx"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Orders" Value="Orders.ascx" ImageUrl="~/Images/s.png" 
                        CssClass="OrdersTab" SelectedCssClass="OrdersTabSelected" NavigateUrl="~/Aspx/Orders/Orders.aspx"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Commissions" ImageUrl="~/Images/s.png" 
                        CssClass="ReportsTab" SelectedCssClass="ReportsTabSelected"  NavigateUrl="~/Aspx/CommReports.aspx">
                        </telerik:RadTab>
  
                        <telerik:RadTab runat="server" Text="Copy" Value="Copy.ascx" ImageUrl="~/Images/s.png" 
                         CssClass="CopyTab" SelectedCssClass="CopyTabSelected" Visible="false"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Credit" NavigateUrl="~/Aspx/Credit.aspx" ImageUrl="~/Images/s.png" 
                         CssClass="CreditTab" SelectedCssClass="CreditTabSelected"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Clients" Value="Clients.ascx" ImageUrl="~/Images/s.png"  Visible="false"
                         CssClass="ClientTab" SelectedCssClass="ClientTabSelected"></telerik:RadTab>
                    </Tabs>
  
                </telerik:RadTabStrip>
            </asp:Panel>
        </div>
        <div>
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
              
            </asp:ContentPlaceHolder>
            <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
              
            </asp:ContentPlaceHolder>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="true">
            </telerik:RadAjaxLoadingPanel>
        </div>

 

 

 

sirisha
Top achievements
Rank 1
 asked on 06 Apr 2011
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?