Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
53 views

Hi Team,

I need to get the GridBoundColumn values into the new record row when we click the Add Record button.

I am able to find the previous values of lables under GridTemplateColumn but above mention is not clear.

Please let me know how it could be handled.

Regards

SS Bhogal

Shinu
Top achievements
Rank 2
 answered on 25 Jun 2012
2 answers
319 views
I am using RADchart control in an ASP.NET application.

The chart shows up nicely but the Axis label  for the chart does not show no matter how I set it.

I have set the Axis Label in ASPX markup as:

  <PlotArea XAxis-LayoutMode="Normal">
                    <XAxis LayoutMode="Normal" Appearance-ValueFormat="Currency" Appearance-EndCap="AnchorMask" Visible="True" VisibleValues="Positive">
                        <AxisLabel><TextBlock Text="Actual Price" Appearance-Position-AlignedPosition=Bottom Visible="true" Appearance-Border-PenStyle="Solid" Appearance-FillStyle-MainColor="Black"></TextBlock></AxisLabel>
                    </XAxis>
                    <YAxis AxisMode="Extended" Appearance-ValueFormat="Currency" Appearance-EndCap="AnchorMask" Visible="True" VisibleValues="Positive">
                        <AxisLabel><TextBlock Text="Predicted Price" Appearance-Position-AlignedPosition=Bottom Visible="true" Appearance-Border-PenStyle="Solid" Appearance-FillStyle-MainColor="Black"></TextBlock></AxisLabel>                                                
                    </YAxis>
                </PlotArea>


I am baffled, no matter how I set it, the labels just dont show up.

Any suggestions would be appreciated.

Thanks
Amol Ajgaonkar
Munish
Top achievements
Rank 1
 answered on 25 Jun 2012
7 answers
256 views
Hi,
I use RadPanelBars for the organization of structure of web page.
RadPanelBars and RadPanelItems are added dinamically.
Sometimes I need to add RadPanelBars inside another one. But internal RadPanelBars behaves in a different way. They look differently and they are not collapsible.
Sample code:

 

<form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
    </asp:ScriptManager> 
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="100%">  
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Panel 1" Expanded="true">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Expanded="true">  
                        <ItemTemplate> 
                            some text and controls some text and controls  
                            <br /> 
                            some text and controls some text and controls  
                            <br /> 
                            <telerik:RadPanelBar ID="RadPanelBar2" runat="server" Width="100%">  
                                <Items> 
                                    <telerik:RadPanelItem runat="server" Text="Sub Panel 1" Expanded="true">  
                                        <Items> 
                                            <telerik:RadPanelItem runat="server" Expanded="true">  
                                                <ItemTemplate> 
                                                    some text and controls some text and controls  
                                                    <br /> 
                                                    some text and controls some text and controls  
                                                    <br /> 
                                                </ItemTemplate> 
                                            </telerik:RadPanelItem> 
                                        </Items> 
                                    </telerik:RadPanelItem> 
                                </Items> 
                            </telerik:RadPanelBar> 
                            some text and controls some text and controls  
                            <br /> 
                            some text and controls some text and controls  
                            <br /> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
    </telerik:RadPanelBar> 
</form> 
Andre Light
Top achievements
Rank 1
 answered on 25 Jun 2012
1 answer
107 views
Hi all, I upgraded my webpages to NET 4 and i'm using the EntityFramework abilities, I working with Mysql database, cause i develop on php and .NET and using the Mysql .NET connector v 6.4.4 for Visual Studio 2010.
I tried to bind RadGrid (v 2012.1) with the EntityDataSource, it reads whole rows but CRUD operations on RadGrid didn't work, my surprise was CRUD works on original ASP.NET GridView  with EntityDS. here is my default.aspx code.

<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
 
</script>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
    <asp:EntityDataSource ID="EntityDataSourceTest" runat="server" ConnectionString="name=entity_testEntities"
        DefaultContainerName="entity_testEntities" EnableDelete="True" EnableFlattening="False"
        EnableInsert="True" EnableUpdate="True" EntitySetName="test_table">
    </asp:EntityDataSource>
    <br />
    Gridview<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id"
        DataSourceID="EntityDataSourceTest">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id" />
            <asp:BoundField DataField="test1" HeaderText="test1" SortExpression="test1" />
            <asp:BoundField DataField="test2" HeaderText="test2" SortExpression="test2" />
            <asp:BoundField DataField="test3" HeaderText="test3" SortExpression="test3" />
        </Columns>
    </asp:GridView>
    <br />
    RadGrid<br />
    <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" DataSourceID="EntityDataSourceTest"
        GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True">
        <ClientSettings>
            <Selecting CellSelectionMode="None"></Selecting>
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="EntityDataSourceTest"
            AllowAutomaticDeletes="False" AllowAutomaticInserts="False" AllowAutomaticUpdates="False"
            CommandItemDisplay="Top">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" FilterControlAltText="Filter EditCommandColumn column">
                </telerik:GridEditCommandColumn>
                <telerik:GridBoundColumn DataField="id" DataType="System.Int64" FilterControlAltText="Filter id column"
                    HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="test1" FilterControlAltText="Filter test1 column"
                    HeaderText="test1" SortExpression="test1" UniqueName="test1">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="test2" FilterControlAltText="Filter test2 column"
                    HeaderText="test2" SortExpression="test2" UniqueName="test2">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="test3" FilterControlAltText="Filter test3 column"
                    HeaderText="test3" SortExpression="test3" UniqueName="test3">
                </telerik:GridBoundColumn>
                <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton">
                </telerik:GridButtonColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
    </form>
</body>
</html>

For this example i created a database called entity_test and one table with 3 columns (test1,test2,test3) on my Mysql 5.5 server

I would like to use RadControls cause i have worked with them for 3 years.
Thanks all.
David
Top achievements
Rank 1
 answered on 23 Jun 2012
1 answer
206 views
 protected void RadAjaxManager1_AjaxRequest(object sender,Telerik.Web.UI.AjaxRequestEventArgs e)
        {
            if (e.Argument == string.Empty)
            {
                populategrid();
            }
            string[] editedItemIds = e.Argument.Split(':');
            int i;
            for (i = 0; i <= editedItemIds.Length - 2; i++)
            {
                int Rowindex =Convert.ToInt32(editedItemIds[i]);
                int ID =0;
                        ID = Convert.ToInt32(RadGrid1.MasterTableView.DataKeyValues[Rowindex]["id"]);
                   
            }
        }

my need is to update and insert data in rad grid by batch updating .  For inserting created new rows and get the row index using
script. how i  will get find control of text box by row index. How i handle inserting and updating by the above code. does any issue occurs or it will work fine. if there is any easy way please reply urgent. 


Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Jun 2012
1 answer
123 views
Hi,
I have a RadGrid with hierarchy structure. I have set EnablePostBackOnRowClick=True to handle some actions on master grid row click.
How i can disable this setting for detail grid? In the other word, no actions defined  on detail grid rows, and I want no postback occurs when user clicks on detail grid rows.

Regards.
Mohsen.
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Jun 2012
1 answer
111 views
Hi,
i have problem with Resize form and CropImage form. the controls of these forms is too long and some of them are out of form. i attach a
image of my problem.
Thanks,
Azadeh
Azadeh
Top achievements
Rank 1
 answered on 23 Jun 2012
2 answers
257 views
I went through the demo of hierarchical RadListView, is there a way to do databinding in server-side instead of using SqlDataSource control?

Thanks.
Shannnon
Top achievements
Rank 1
 answered on 23 Jun 2012
5 answers
298 views
I have a Radscheduler and RadToolTipManager in an ASPUpdate panel.  I set up my tooltip using the demo here http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx?product=tooltip .  Everything works fine on initial page load.  The data displayed can be filtered by using a dropdown box.  When the data refreshes, the tooltips no longer work.  If I navigate to another day using the calendar controls, the tooltips no longer work.  On tracing the flow, I no longer seem to get to the AjaxUpdate method for the RadToolTipManager if I change the data from the initial page load.  I cannot see the disconnect.  Please speak real slow as i am very new to this.  Thanks.
Scott
Top achievements
Rank 1
 answered on 22 Jun 2012
4 answers
239 views
Hi all, I've red many thread about similar problems but I'm still quite confused...

I have a page with 2 ajax panels in a master-detail classic configuration. In the left one I have a RagGrid with the list of my users. When I click on a row, in the other ajax panel (on the right) I show the detail information of the clicked RadGrid row.

Now, I have 2 buttons in this page:
  1. a button that opens a "Add new user" RadWindow to add a new user
  2. another button inside the detail ajax panel and opens another RadWindow to add/modify detail information about the specific clicked row

What I need is:
  1. when I click on the first button to insert a new user I would, on finish, close RadWindow and refresh both ajax panel in parent page to show the added user in the RadGrid
  2. when I click on the second button to add/modify detail information about a clicked row, on finish, I would refresh only the right side ajax panel with the detail informations of clicked row

How can I managed this scenarious?
Which are the fondametal elements I need in both parent page and RadWindow page to get it works fine?

Thanks very much!

Giulio Ferri
Hunter
Top achievements
Rank 1
 answered on 22 Jun 2012
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?