Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
1.5K+ views
Hello,

I am using the 

telerik:RadAjaxManager

in my main.aspx page which, in turn, loads usercontrols. In my usercontrol I have a 

RadTabStrip

which also calls other usercontrols which i also want  AJAXified. So I'm trying the RadAjaxManagerProxy but as soon as I put in my user control I get this error message:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Collection was modified; enumeration operation may not execute.

Any clues?

Thank you

Bodevain Svensson
Top achievements
Rank 1
 answered on 07 Apr 2011
2 answers
214 views
Is it possible to add an event handler to the grid (e.g. for the RowSelected event) from the client-side javascript?

Example:

<telerik:RadGrid ID="grid" runat="server" ...>
    ...
    <ClientSettings>
        <ClientEvents OnGridCreated="gridCreated" />
    </ClientSettings>
</telerik:RadGrid>
...
<script>
function gridCreated(sender, eventArgs) {
    if (someCondition) {
        //
        Can I add function rowSelected() as a handler to
        the grid's OnRowSelected event?
        //
    }
}
 
function rowSelected(sender, eventArgs) {
    // do stuff
}

I tried calling the grid's add_rowSelected() function, but couldn't get it to work.
Thanks for your help.

-Martin
Martin
Top achievements
Rank 1
 answered on 07 Apr 2011
1 answer
98 views
What I have is a grid that I am loading questions with a asp radiobutton with a go or a no\go.  I have a set of questions and then some question might have sub questions that i load into the grid.  a nested radgrid with the main question and sub questions.  What I need to happen if a sub question radio button is picked as a no\go I need the main question button to automatically be changed to a no\go as well.  Is this possible with a nested grid.  Here is an example of my radgrid.  I also need to save all of them to a table with the question answer on a asp submit button, how do you itterate through the main and then sub tables to save the information.


<table width="100%">
                <tr>
                    <td align="center"><telerik:RadGrid ID="RadGrid2" runat="server" CellSpacing="0" GridLines="both" Skin="WebBlue" Width="90%" GroupingSettings-ShowUnGroupButton="false"  >
                        <MasterTableView AutoGenerateColumns="false" DataKeyNames="intQuestionID">
                            <Columns>
                                <telerik:GridBoundColumn DataField="strQuestion" HeaderText="Question" UniqueName="strQuestion" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                                <telerik:GridTemplateColumn HeaderText="GO\NOGO" HeaderStyle-HorizontalAlign="Center" ShowSortIcon="True" Visible="True">
                                    <ItemTemplate>
                                        <asp:RadioButtonList ID="rblAnswer" runat="server" RepeatDirection="Horizontal" TextAlign="Right" CellPadding="5" >
                                            <asp:ListItem Value="0">GO</asp:ListItem>
                                            <asp:ListItem Value="1">NO\GO</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Data" HeaderStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <telerik:RadTextBox runat="server" Width="100"></telerik:RadTextBox>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                 <telerik:GridTemplateColumn HeaderText="Remarks" HeaderStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <telerik:RadTextBox ID="txtRemarks" runat="server" Width="100"></telerik:RadTextBox>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Date" HeaderStyle-HorizontalAlign="Center">
                                      <ItemTemplate>
                                        <telerik:RadDatePicker ID="radDate" runat="server"></telerik:RadDatePicker>
                                      </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                            <DetailTables>
                                <telerik:GridTableView Name="RadGrid2Sub" runat="server" DataKeyNames="intsubQID" TableLayout="Fixed" AutoGenerateColumns="false">
                                    <ParentTableRelation>
                                        <telerik:GridRelationFields DetailKeyField="intQuestionID" MasterKeyField="intQuestionID" />
                                    </ParentTableRelation>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="strSubQ" HeaderText="Sub-Question" UniqueName="strSubQ" HeaderStyle-HorizontalAlign="Center" />
                                         <telerik:GridTemplateColumn HeaderText="GO\NOGO" HeaderStyle-HorizontalAlign="Center" ShowSortIcon="True" Visible="True">
                                            <ItemTemplate>
                                                <asp:RadioButtonList ID="rblAnswer2" runat="server" RepeatDirection="Horizontal" TextAlign="Right" CellPadding="5" >
                                                    <asp:ListItem Value="0">GO</asp:ListItem>
                                                    <asp:ListItem Value="1">NO\GO</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                    </telerik:GridTableView>
                            </DetailTables>
                        </MasterTableView>
                    </telerik:RadGrid></td>
                </tr>
            </table>
Marin
Telerik team
 answered on 07 Apr 2011
1 answer
388 views
Has anything improved with Q1 2011 on filtering of Enums ?

Unfortunately it's quite common to use eNums in C# and to need to bind objects containing enum properties to the Telerik grid.

Whilst the values display ok in the grid the filters offer integer choices only rather than a selection list of the string equivalents. Also when editing values in cells it is the integer values that are requested (unfamiliar to the users of a system).

Martin
Veli
Telerik team
 answered on 07 Apr 2011
1 answer
116 views
I installed the developer version of Ajax control over the demo version and I still get a Trial Noticiation. How can I remove this?
Sebastian
Telerik team
 answered on 07 Apr 2011
0 answers
66 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
71 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
273 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
537 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
162 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?