Telerik Forums
UI for ASP.NET AJAX Forum
17 answers
699 views
There are 4 things that I'm trying to do and having trouble with.

I have my grid using the Telerik skin.  I have the rest of my controls using the Web20 skin (blue and silver basically).

I'm using the EditMode="Popup" on my grid and I'm specifying a custom template for it to use.  In this template I have a number of RadTextBox's that should be styling to Web20 but are being forced to use a grey/silver border (I assume from the Telerik skin).  Is this normal behaviour?  I've tried setting them via Skin="Web20" instead of using my theme but the problem persists.

Another problem I'm having is setting the window title of the popup.  I'd like it to say something like "Client Details" but I can't find the property to set this value.

I aso want this window to be modal but I don't see the option for it.

Finally I don't see the option to specify where the window opens.  I'd like to be able to tell the popup to open in the center of my screen instead of basing it off of the location of the grid that is opening it.

Thanks.
Dhawal
Top achievements
Rank 1
 answered on 18 Dec 2008
1 answer
89 views
I have EnableEmbeddedSkins set to false, as I am using a custom skin.

In my grid I have a GridButtonColumn which is generating a delete button.  In the declaration of the RadGrid I am setting OnDeleteCommand="DeleteCard_Click".  When I click the delete button, the page simply does a postback but does not execute this function.  If I set the grid back to one of the included skins, the delete button posts back and does execute the function. 

How do I get the page to postback and actually execute the function using a custom skin? 

I am using Q2 2008.

Thanks.



Shinu
Top achievements
Rank 2
 answered on 18 Dec 2008
1 answer
125 views
Hi Telerik team.

In a grid I have a view detail.

When exported to excel does not export  detail view.

If I can export the detail table with the Grid?

Thank's
Ruben Herrera
Shinu
Top achievements
Rank 2
 answered on 18 Dec 2008
2 answers
172 views
Hey Guys,
  I am using a custom user control to Edit/Insert records, but when I click the Add New record button I am getting an error when the RadNumericTextBox is about to be bind, I think its because the '<%# DataBinder.Eval( Container, "DataItem.CommissionRate") %>' is null as I am adding a new record, I have been trying to find away around this with no results.

Here is the html for the user control:
<telerik:RadNumericTextBox ID="TxCommissionRate" runat="server" EmptyMessage="Enter Comission Rate" MinValue="1.00"   MaxValue="99999.99" Skin="Forest" Width="94px" Value='<%# DataBinder.Eval( Container, "DataItem.CommissionRate") %>'  > </telerik:RadNumericTextBox> 


As I said I get no error if I am editing a record, but when I click the add record button I get an error saying: System.InvalidCastException was unhandled by user code
  Message="Specified cast is not valid."
  Source="App_Web_bc5zubk-"
  StackTrace:
       at ASP.BillerInfo.__DataBindingTxCommissionRate(Object sender, EventArgs e) in c:\Documents and Settings\NWilliams\My Documents\Visual Studio 2005\WebSites\WebExpress\Admin\Biller\BillerInfo.ascx:line 105
       at System.Web.UI.Control.OnDataBinding(EventArgs e)
       at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
       at System.Web.UI.Control.DataBind()
       at System.Web.UI.Control.DataBindChildren()

Any help will be greatly appreciated.
Regards,
Nyron.
Nyron
Top achievements
Rank 1
 answered on 18 Dec 2008
3 answers
289 views
Hi,

I am using the RadGrid to populate data. I am creating the columns dynamically using TemplateColumns. I am also adding GridEditCommandColumn and GridButtonColumn for Edit and delete of each row. I have disabled the viewstate for the grid since I will be creating the columns everytime and binding to grid. When I disable viewstate and click on edit or delete button, I get the following error. I know it is about viewstate being corrupted since I have disabled the viewstate. Any workaround for this?

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Sridhar
JustinWong
Top achievements
Rank 1
 answered on 18 Dec 2008
2 answers
238 views
Hi folks,

Got a small problem with my grid.

I have a grid with a template column as follows:
                                <ItemTemplate>
                                    <asp:Label ID="lblDiscountname" runat="server" Text=""></asp:Label>
                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/edit_icon.gif" CommandName="Edit" CausesValidation="False"
                                        CommandArgument=<%# Eval("DiscountID") %> />
                                    <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/delete_icon.gif" CausesValidation="False" CommandName="Delete" ToolTip="Delete Discount"
                                    CommandArgument=<%# Eval("DiscountID") %> />
                                    <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="ImageButton2" ConfirmText="Are you sure you want to delete this Discount?">
                                    </cc1:ConfirmButtonExtender>
                                </ItemTemplate>

This works great in a page I have, where I use the gridDiscounts_DeleteCommand
and
gridDiscounts_EditCommand

to do deletes and edits.

Now, on another page, I have embedded a clone of the grid into a databound standard microsoft accordion.

The events of course, no longer have the Handles clause on them, but they do fire.
The problem is, they fire every OTHER click.

So, If I click on record 1's edit button, I can see the event fire, If I click on any records edit buton again, it does NOT fire.
A third click again fires the appropriate edit command.

Here is the entire contents of the edit_command

    Sub gridMenuItems_EditCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs)

        e.Item.Edit = False

        GetItemForEditing(e.CommandArgument)
        Dim grid As RadGrid = source
        grid.DataBind()
    End Sub

As you can see, I thought it was maybe stuck in edit mode, so the buttons were all disabled behind the scenes, but setting item.edit = false had no effect.

I've tried debugging my way around the client, but had no luck so far.

If anyone has any idea what is eating the event, please let me know.
Or, if anyone can tell me where to set a breakpoint so I can find it, I'll take that too.


I would package this up, but the page is insane complex, so please don't ask.

I might try putting two standalone grids in 2 accordion panes and see if it does the same thing or not.

thanks in advance for any ideas.





Bob
Top achievements
Rank 1
 answered on 17 Dec 2008
3 answers
69 views
Is there any way to implement a "Pager Template" so that it could still show everything in the "NextPrevNumericAndAdvanced" but take up two rows so that when you have a smaller grid it still looks good? Currently if a grid is a little too small the items wrap in a strange way and it does not look very good. Otherwise you have to make your columns way bigger than they need to be just to get the pager looking good.

Thanks!
jfkrueger
Top achievements
Rank 1
 answered on 17 Dec 2008
14 answers
257 views
I am using a custom WebUserControl with popup editing mode in the RadGrid, however, any javascript that is included in the WebUserControl is never triggered.  Is this a limitation when using the popup editing mode or is there a way around this?

Steve Y
Top achievements
Rank 2
 answered on 17 Dec 2008
2 answers
155 views
Hello.

I am implementing custom sorting because my recordsets are huge (millions of rows).

I am creating recordset during a NeedDataSource event, not during a SortCommand event, because I don't want to run the SQL command twice.

Thus I am testing the RadGrid1.MasterTableView.SortExpressions. This collection contains fields which have been cleared by Clear sorting client side context menu. But RadGrid knows that the column has no sorting because the column header contains no triangle.

Thank you very much.

Tomas PAJER
tomas
Top achievements
Rank 1
 answered on 17 Dec 2008
4 answers
66 views
Hello,

Hope someone can help.  I have a two level grid with styles for item, alt item, select item and header on both levels (except select on inner level).  When I expand an inner grid and select an item on the inner grid, the previously selected item on the outer grid loses its style class according to the IE Debug Toolbar.  The resulting row visual is very ugly.

Does anyone know how to maintain the style class on the unselected row from the upper level grid.?

Thanks,

John
John
Top achievements
Rank 1
 answered on 17 Dec 2008
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?