Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
190 views
Hi,
I was wondering if there is any plan to allow for custom toolbar buttons/commands in a future update.

I am also interested in knowing whether there are any plans to allow for custom context menu items?

I think that these would be great additions to the new control, and hope to see them added soon. Is there any solid plan or date when this might happen?

Thanks,
Jenna
Fiko
Telerik team
 answered on 01 Jun 2009
6 answers
349 views
I want to have two hierarchy columns for each row in a telerik radgrid....

if any solution found please give ...................
Sebastian
Telerik team
 answered on 01 Jun 2009
3 answers
147 views
Same setup; a UserControl with a grid which has a ToolBar as the CommandItem.

I'm reacting to events on my calling page to enable/disable buttons on the ToolBar using code like this ...
          function NodeClicked(sender, args) { 
            var node = args.get_node(); 
 
            if (GridCommandItem != null) { 
              GridCommandItem.trackChanges(); 
              var btn = GridCommandItem.findItemByValue("doStuff"); 
              btn.set_enabled(true); 
              GridCommandItem.commitChanges(); 
            } 
            AjaxRequest("ShowDocuments;" + node.get_value()); 
          } 
Where "GridCommandItem" is a reference to the ToolBar.

Now, this works but only without the AjaxRequest call. The button is enabled and subsequent postbacks honour the enabled state of the control. However, my handler for the "ShowDocuments" AjaxRequest calls ReBind() on the Grid control and this resets the state of the ToolBar buttons.

Why? And what can I do about it?

--
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 01 Jun 2009
1 answer
102 views
Hi All,

I have a client side process taking some time to do. how can I display the redajaxloadingpanel while the client side fucntion is runing?


TIA

Jerry

Pavlina
Telerik team
 answered on 01 Jun 2009
1 answer
227 views
How does one go about setting the VisibleControls property of the FileExplorer declaratively?
Fiko
Telerik team
 answered on 01 Jun 2009
1 answer
118 views
Ive built a website and used the defaull skin for combo boxes.  Everything works ok on my development machine, but after delpoying the site, the combos dont have any styling, the actual drop down box is transparent and the text is centred.  Ive copied the RADControls directory and the default skin folder am I missing something else ?

Is there some documentation outlining all the files necessary for deployment ?
Princy
Top achievements
Rank 2
 answered on 01 Jun 2009
1 answer
255 views
Is there a way to remove the toolbar?   I just want to use the RadEditor as textbox with its AutoResizeHeight capability.

Currently I use a workaround of EmptyTools.xml, ToolsWidth of 1 px and ToolbarMode = PageTop.
It displays a slight border.
Rumen
Telerik team
 answered on 01 Jun 2009
2 answers
152 views
I am new to rad grid. I have tried the following sample code for <EditItemTemplate>. But when I clicked the edit button, nothing was in the grid. When I saw the demo, everything was done using SQLDataSource. So I have confusion on what I have missed. Can anyone suggest me what I have missed in the following code.

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Black" OnItemDeleted="RadGrid1_ItemDeleted" OnItemUpdated="RadGrid1_ItemUpdated">
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="ProductID" CommandItemDisplay="Top"
                    EditMode="InPlace">
                    <Columns>
                        <telerik:GridTemplateColumn DataField="ProductID" HeaderText="Product ID" UniqueName="ProductID">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblProductID" Text='<%# Eval("ProductID") %>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="ProductName" HeaderText="Product Name" UniqueName="ProductName">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblProductName" Text='<%# Eval("ProductName") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox runat="server" ID="txtProductName" Text='<%# Bind("ProductName") %>'></asp:TextBox>
                                <span style="color: Red">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtProductName"
                                    ErrorMessage="Required" runat="server">
                                </asp:RequiredFieldValidator>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="UnitPrice" SortExpression="UnitPrice" UniqueName="TemplateColumn"
                            EditFormColumnIndex="1">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblUnitPrice" Text='<%# Eval("UnitPrice", "{0:C}") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox runat="server" ID="txtUnitPrice" Text='<%# Bind("UnitPrice") %>'></asp:TextBox>
                                <span style="color: Red">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtUnitPrice"
                                    ErrorMessage="Required" runat="server">
                                </asp:RequiredFieldValidator>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton">
                            <ItemStyle CssClass="MyImageButton" />
                        </telerik:GridEditCommandColumn>
                        <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                            ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                            UniqueName="DeleteColumn">
                            <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

Code Behind: 

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindProducts();
        }
    }

private void BindProducts()
{
        try 
   {
            conn = new SqlConnection("Data Source=server1;Initial Catalog=Northwind;User ID=sa;Password=sa");
            conn.Open();
            SqlCommand cmd = new SqlCommand("select * from Products", conn);
            SqlDataAdapter ad = new SqlDataAdapter(cmd);
            DataSet ds = new DataSet();
            ad.Fill(ds);
            RadGrid1.DataSource = ds;
            RadGrid1.DataBind();
   }
   finally
   {
            if (conn != null)
            {
                conn.Close();
            }
   }
}

    protected void RadGrid1_ItemDeleted(object source, GridDeletedEventArgs e)
    {
        GridDataItem dataItem = (GridDataItem)e.Item;
        String id = dataItem.GetDataKeyValue("ProductID").ToString();
....
        // code to handle deletion process
....
    }

    protected void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
    {
            GridEditableItem item = (GridEditableItem)e.Item;
            String id = item.GetDataKeyValue("ProductID").ToString();
     ....
             // code to handle Updation process
     ....           
     }
Thanks in advance,
Katte
Katte
Top achievements
Rank 1
 answered on 01 Jun 2009
4 answers
111 views
hi,

I have tried the example given for "Using the URL for Server Arguments" . For the first time its working fine. But next time onwards the same data is loaded. The data was not changed deponds on argument (I have wrote some logic to change the data based on  argument). And also I found that for the first time break point gets hitted. Next time onwards it was not hitted. Kindly reply me ASAP

Regards,
Katte.
Katte
Top achievements
Rank 1
 answered on 01 Jun 2009
1 answer
105 views
Is there a way to tell the grid to export the Column headers with the data?

Shinu
Top achievements
Rank 2
 answered on 01 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?