Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
Where can I find the name for those standard toolbar groups?
Richard
Top achievements
Rank 1
 answered on 27 Jan 2012
1 answer
122 views
Hi,

I've been looking at http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx but I can't get it to work for my scenario. Is there an example of how to implement a radtooltip from a scheduler appointment item where:

- The Scheduler is generated entirely from the codebehind and implements a custom Appointment template
- The markup uses an AjaxManager and not UpdatePanels

Also, why do the examples not separate Client Side and Server side creation? I eventually found a good client side example (http://www.telerik.com/community/code-library/aspnet-ajax/scheduler/show-radtooltip-on-appointment-click-entirely-client-side-implementation.aspx) but it uses UpdatePanels and I couldn't get it to work because the javascript

var apt = $find("<%=RadScheduler.ClientID %>").getAppointmentFromDomElement(element);

causes an error.

I'm happy to use Client side or Server Side - but I don't want code for both in my project.

Thanks

Mark
Marin Bratanov
Telerik team
 answered on 27 Jan 2012
1 answer
195 views
Hello,

I am trying to get async refresh (on button click) for an radgrid, but im getting the following error: 

"Microsoft JScript runtime error: Sys.InvalidOperationException: No se pudo encontrar UpdatePanel con el id. 'ctl00_ContentPlaceHolder1_ctl00_ContentPlaceHolder1_RadGrid0Panel'. Si se está actualizando dinámicamente, debe estar dentro de otro UpdatePanel."

The RagGrid ID is "RadGrid0".

The page i'm using is based on a MaterPage, so my aspx code looks like this:

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ajaxsettings>
            <telerik:AjaxSetting AjaxControlID="btnBuscar">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid0" />                   
                 </UpdatedControls>
            </telerik:AjaxSetting>
        </ajaxsettings>
    </telerik:RadAjaxManager>
    <!-- content start -->
    <table>
        <tr>           
            <td>
                <asp:Button ID="btnBuscar" runat="server" Text="Buscar" OnClick="btnBuscar_Click"
                    ValidationGroup="buscar" />
            </td>
        </tr>
    </table>
         
    <table runat="server" id="PrincipalContainer" visible="False">
        <tr>
            <td valign="top">               
                <telerik:RadGrid ID="RadGrid0" runat="server" AllowFilteringByColumn="false" GridLines="None"
                    AllowPaging="false" AllowSorting="true" BorderStyle="None" ShowHeader="True"
                    AutoGenerateColumns="False" onitemdatabound="RadGrid0_ItemDataBound">
                    <mastertableview>
                    <Columns>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column1" HeaderText="Cedula">
                            <ItemTemplate>
                                <asp:Label ID="lblCedula" runat="server" Text='<%# Eval("UserId")%> '></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column2" HeaderText="Nombre">
                            <ItemTemplate>
                                <asp:Label ID="lblNombre" runat="server" Text='<%# Eval("UserName")%> '></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column3" HeaderText="Bloque">
                            <ItemTemplate>
                                <telerik:RadComboBox ID="cbBloque" Runat="server" OnSelectedIndexChanged="cbBloque_SelectedIndexChanged" AutoPostBack="True">
                                </telerik:RadComboBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column4" HeaderText="Habitacion">
                            <ItemTemplate>
                                <telerik:RadComboBox ID="cbHabitacion" Runat="server" Width="30">
                                </telerik:RadComboBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column5" HeaderText="">
                            <ItemTemplate>
                                <asp:LinkButton ID="btnAsignarHabitacion" runat="server" OnClick="btnAsignarHabitacion_Click">Asignar</asp:LinkButton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </mastertableview>
                </telerik:RadGrid>
</td>
</tr>
</table>
</asp:Content>

Thanks :)
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2012
1 answer
110 views
Hello -

I would like to hide the "Edit" column in the DetailTableView for those records which do not have a child record.  However, I would still like the "Add New Record" button to show in the DetailTable.  I would like to check the DataValueKey, and then hide the column if it is null.
I have tried a number of things and none of them seem to work.  

Thanks for your ongoing help.

K
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2012
2 answers
120 views
I have a grid with a template column that has a checkbox in it. I have it as autopostback and am calling onCheckedChanged. In that routine I need to right out to the database that the select/deselect has changed. I can get the value of the checkbox easy. But how can I get a unique ID for the record. I am already storing the record ID in an invisible field - I just can't figure out how to access the field in the onCheckedChanged.

TIA - Jeff.
Jeff Bradshaw
Top achievements
Rank 1
 answered on 27 Jan 2012
3 answers
73 views
I want to have a grid that has a couple of fields and one will be a checkbox that the user can check to say they want to include the record. Because of the way our customers work, I need to do this without a save button. So I want to have an autopostback when the box is checked and update that record in the database.

How can I do this?

TIA - Jeff.
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2012
3 answers
235 views
Hello,

recently i have been working with telerik controls , and while loading page we have an image which i have attached below(loader.gif),it will be displayed,but i want to display a loaderbar like radprogressbar in blue color how to do this ,please reply if u have any idea about this .

Regards,
Madhukar.
Princy
Top achievements
Rank 2
 answered on 27 Jan 2012
1 answer
92 views
I have a grid with a Master/Detail table, the detail table's formatting looks perfect when I'm in DEV (ie Visual Studio) but when I push it to our dev server the formatting of the detail isn't right (it's OK but not the best).

Any suggestion on how to fix this would be of great help.

Here's how it looks running directly from VS:

Here's how it looks running from the server
Tsvetina
Telerik team
 answered on 27 Jan 2012
1 answer
92 views
Hi,

I tried this in the DetailTableDataBind event handler

GridBoundColumn b = new GridBoundColumn();
e.DetailTableView.Columns.Add(b);
b.HeaderText = "test";

the column is successfully added, but as soon as a postback occurs, the new column disappears. But adding a column the exact same way to the MasterTableView works as intended.

I have also tried this:

protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
    {
        if (item.Expanded)
        {
           dynamic data = new[] {
            new { ID = "1", Name ="Name11",ParentID = "0"},
            new { ID = "2", Name ="Name11",ParentID = "1"},
            new { ID = "3", Name ="Name11",ParentID = "2"},
            new { ID = "4", Name ="Name11",ParentID = "3"}
              };
  
       
  
            GridBoundColumn b = new GridBoundColumn();
            b.HeaderText = "test";
            b.DataField = "Name";
            item.ChildItem.NestedTableViews[0].Columns.Add(b);
            item.ChildItem.NestedTableViews[0].DataSource = data;
            item.ChildItem.NestedTableViews[0].DataBind();
        }
  
    }
}

Doing this works if I need to programmatically add columns to the first level of the hierarchy (you loop over each item in the MasterTableView and check whether or not each item is expanded or not), but how could you add columns to a detail grid at any level of the hierarchy?


I am having the same issue as an unanswered question in the second half of this thread (by Bruno):
http://www.telerik.com/community/forums/aspnet-ajax/grid/dynamically-add-columns-to-existing-radgrid.aspx

Thanks,
Donald
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2012
2 answers
107 views
Hi,
I am using a RadGrid that contains 5 columns. The first 3 columns in the grid are a GridBoundColumn, the fourth column is a GridDropDownColumn, and the fifth column is a GridEditCommandColumn. At runtime, when the grid is populated, the fourth column (the GridDropDownColumn) displays &nbsp; instead of the expected data. If I change the fourth column from a GridDropDownColumn to a GridBoundColumn, the grid displays the proper data. This problem only occurs when I use the GridDropDownColumn. Is there something magical about the Grid*Bound*Column? IOWs, am I having this problem b/c the GridDropDownColumn is not a *bound* column?

I have found and reviewed the "forum log" GridDropdownColumn in RadGrid not working, which indicates that the solution to this problem is to install the latest version of the Telerick Ajax controls, but the version that I have installed (2011.2.712.40) is already higher than what is indicated in the "forum log".

I want to use the GridDropDownColumn so that when a user clicks the grid's edit button (GridEditCommandColumn), I can control which values they are allowed to enter via a dropdown list.

So the grid displays &nbsp; in the GridDropDownColumn when it is populated. But when I click the edit button on the grid, the GridDropDownColumn then displays valid values, instead of &nbsp;

Actually, to state what I just said more accurately, valid values only display in the GridDropDownColumn for that row on which I clicked the edit button and for every row that appears below the row that I am editing. But for the rows that appear above the one that I am editing, they still display &nbsp; in the GridDropDownColumn.

How do I resolve this problem?
Antonio Stoilkov
Telerik team
 answered on 27 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?