Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
Is there a way to increase the font face selection to include more font types?
And is there a way to have a custom color picker added?
I'm using ASP.NET AJAX  2009 Q3.
Rumen
Telerik team
 answered on 14 Dec 2010
6 answers
113 views
Hi,

I have recently upgraded our application to use 2008.3 1314 (Jan 14, 2009)

We now get the following error when using the Editor control in IE8 only:

Message: 'Telerik.Web.UI.FormDecoratorDecoratedControls.Default' is null or not an object

This was not occuring in the previous version we were using before, is there a fix / patch available to allow us to use the control in IE8 or can we download the previous (older) version that works?
Rumen
Telerik team
 answered on 14 Dec 2010
7 answers
147 views
Hi,
         I have Radrotator placed inside my sharepoint webpart. The datasource for the Radrotator contains the different sizes of images.
for example one image can be width of 200 and height of 300px, and other can be width of 100 and height of 250px. So i dont want to specify any specific height to the Radrotator. If i did not mention any height and i can see rotator taking default height as "200Px".
With this behaviour i'm unable to see the desired output.
Following two approaches i tried.

If i set the height>200 px, but still i dont see any change to the image height but there is some gap below the image.
If i set the height below 200px then the image height  are coming down to 100px.

So, please help in removing default height of rotator and the rotator height should be the default height of actual image.

Thanks,
Srikanth.

Fiko
Telerik team
 answered on 14 Dec 2010
3 answers
109 views
I have implemented something very similar to the RadToolTip for RadCalendar example on the demo site.

http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipcalendar/defaultcs.aspx

My problem is there is a slight delay while the tooltip content is loaded, so at first glance, to the user, it looks like it doesn't work.  The demo has a ajax loading indicator to get around this problem.  However, when I look at the code for the example I don't see what is causing this to happen.

Would someone please show me where the code is in the demo that makes the ajax loading image appear?

Dallas
Dallas Gaddis
Top achievements
Rank 1
 answered on 14 Dec 2010
1 answer
68 views
Hello,

How can we add pager control of RadGrid to panel outside Radgrid?how can we display paging of RadGrid(Paging visible in RadGrid header or Footer) in panel which is outside radgrid.

i tried in the following way

<

 

 

telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" ShowHeader="true"

 

 

 

ShowFooter="false" AllowSorting="True" Skin="ManageInventory" EnableEmbeddedSkins="false"

 

 

 

PageSize="10" AllowPaging="true" OnItemCreated="RadGrid1_ItemCreated">

 

 

 

<ItemStyle />

 

 

 

<MasterTableView AutoGenerateColumns="False" DataKeyNames="Reg_id" DataSourceID="SqlDataSource1">

 

 

 

 

<PagerTemplate>

 

 

 

<asp:Panel ID="PagerPanel" Style="padding: 6px; line-height: 24px" runat="server">

 

 

 

<div style="float: left">

 

 

 

<span style="margin-right: 3px;">Page size:</span>

 

 

 

<telerik:RadComboBox ID="RadComboBox1" DataSource="<%# new object[]{10, 20, 30, 40, 50} %>"

 

 

 

Style="margin-right: 20px;" Width="40px" SelectedValue='<%# DataBinder.Eval(Container, "Paging.PageSize") %>'

 

 

 

runat="server" OnClientSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">

 

 

 

</telerik:RadComboBox>

 

 

 

</div>

 

 

 

<div style="margin: 0px; float: right;">

 

Displaying page

<%

 

# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>

 

of

<%

 

# DataBinder.Eval(Container, "Paging.PageCount")%>

 

, items

<%

 

# (int)DataBinder.Eval(Container, "Paging.FirstIndexInPage") + 1 %>

 

to

<%

 

# (int)DataBinder.Eval(Container, "Paging.LastIndexInPage") + 1 %>

 

of

<%

 

# DataBinder.Eval(Container, "Paging.DataSourceCount")%>

 

 

 

</div>

 

 

 

<div style="width: 260px; margin: 0px; padding: 0px; float: left; margin-right: 10px;

 

 

 

 

white-space: nowrap;">

 

 

 

<asp:Button ID="Button1" runat="server" OnClientClick="changePage('first'); return false;"

 

 

 

CommandName="Page" CommandArgument="First" Text=" " CssClass="PagerButton FirstPage" />

 

 

 

<asp:Button ID="Button2" runat="server" OnClientClick="changePage('prev'); return false;"

 

 

 

CommandName="Page" CommandArgument="Prev" Text=" " CssClass="PagerButton PrevPage" />

 

 

 

<span style="vertical-align: middle;">Page:</span>

 

 

 

<telerik:RadNumericTextBox ID="RadNumericTextBox1" Width="25px" Value='<%# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>'

 

 

 

runat="server">

 

 

 

<ClientEvents OnValueChanged="RadNumericTextBox1_ValueChanged" />

 

 

 

<NumberFormat DecimalDigits="0" />

 

 

 

</telerik:RadNumericTextBox>

 

 

 

<span style="vertical-align: middle;">of

 

<%

 

# DataBinder.Eval(Container, "Paging.PageCount")%>

 

 

 

</span>

 

 

 

<asp:Button ID="Button3" runat="server" OnClientClick="changePage('next'); return false;"

 

 

 

CommandName="Page" CommandArgument="Next" Text=" " CssClass="PagerButton NextPage" />

 

 

 

<asp:Button ID="Button4" runat="server" OnClientClick="changePage('last'); return false;"

 

 

 

CommandName="Page" CommandArgument="Last" Text=" " CssClass="PagerButton LastPage" />

 

 

 

</div>

 

 

 

</asp:Panel>

 

 

 

</PagerTemplate>

 

 

 

 

<PagerStyle Mode="NumericPages" PageButtonCount="10" Position="TopAndBottom"/>

 


Code Behind:---

 

 

protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)

 

{

 

 

if (e.Item is GridPagerItem)

 

{

 

 

GridPagerItem gridPager = e.Item as GridPagerItem;

 

 

 

Control numericPagerControl = gridPager.GetNumericPager();

 

 

 

if (gridPager.NamingContainer is GridFooterItem)

 

{

 

 

Panel pagerpanel=(Panel)gridPager.FindControl("PagerPanel");

 

pnl1.Controls.Add(pagerpanel);

}

pnl.Controls.Add(numericPagerControl);

}

Client Functions:-

var

 

 

tableView = null;

 

 

 

function pageLoad(sender, args) {

 

tableView = $find(

 

"<%= RadGrid1.ClientID %>").get_masterTableView();

 

}

 

 

function RadComboBox1_SelectedIndexChanged(sender, args) {

 

tableView.set_pageSize(sender.get_value());

}

 

 

function changePage(argument) {

 

tableView.page(argument);

}

 

 

function RadNumericTextBox1_ValueChanged(sender, args) {

 

tableView.page(sender.get_value());

}

here i want this paging should be displayed on panel which is outside radgrid.so i added it in panel but i am getting an error as:--

Unable to cast object of type 'System.Web.UI.HtmlControls.HtmlGenericControl' to type 'System.Web.UI.WebControls.WebControl'.

Line 17:         var tableView = null;
Line 18:         function pageLoad(sender, args) {
Line 19: //tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();Line 20:         }
Line 21

Any Suggestion how can i fullfill my requirement...

Thanks
Iana Tsolova
Telerik team
 answered on 14 Dec 2010
5 answers
192 views
I have an application that has been running for over a month now with no problems. Suddenly I am getting the following error when executing an inset or updated on the grids.

Server Error in '/' Application.
--------------------------------------------------------------------------------
  
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. 

Description: An unhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and where it originated
in the code. 
  
Exception Details: System.ArgumentException: 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.
  
Source Error: 
  
An unhandled exception was generated during the execution of the current web request. Information
regarding the origin and location of the exception can be identified using the exception stack trace
below.  
  
Stack Trace: 
  
  
[ArgumentException: 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.]
   System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +8627289
   System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +72
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +35
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
  
   
  
  
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

Can someone tell me what is happening here and how to overcome it? It's hopefully a simple fix. I can't figure out it is suddenly acting so bizzare.
Iana Tsolova
Telerik team
 answered on 14 Dec 2010
3 answers
172 views

Hello,

I've got a trouble with dropdown column databinding in a RadGrid :
I've got 2 columns in my grid, one dropdown binded to a "Code" column, and one griddatabound column binded to a "Libelle" column
When I display the RadGrid, the "Code" column always display the first element of the dropdown column.
So the selected item in the drop down list is always the first element, not the data item.
When I am in edit mode, the dropdownlist is well binded.
Note that the RadGrid and The GridDropDown column are binded on objects of the same type.
Thanks for your help.
Here is my aspx code :

<%@ Control AutoEventWireup="false" CodeBehind="wucAdminEditions.ascx.vb" Inherits="FilsRSSInternes.wucAdminEditions" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
    <script language="javascript" type="text/javascript">
        function verifierSelectionEditions() {
            var grid = $find("<%=GrilleAdminEditions.ClientID %>");
            if (grid != null) {
                if (grid.get_selectedItems().length > 0) {
                    return true;
                } else {
                    alert('Aucune édition sélectionnée');
                    return false;
                }
            }
        }
    </script>
</telerik:RadScriptBlock>
<telerik:RadAjaxPanel ID="PanelEditions" runat="server" EnableAJAX="true">
    <div style="text-align:left;width:80%;padding:10px;">
        <asp:Label ID="lblMsg" runat="server" CssClass="MessageErreur"></asp:Label>
    </div>
    <div style="text-align:right;width:80%;padding:10px;">
        <telerik:RadGrid runat="server" ID="GrilleAdminEditions" ShowStatusBar="true" ShowHeader="true"
            AutoGenerateColumns="false" AllowSorting="true" AllowMultiRowSelection="true"
            EnableEmbeddedSkins="true" Width="100%" Skin="Windows7" SkinID="Windows7"
            AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
            PageSize="20" PagerStyle-AlwaysVisible="true" AllowPaging="true" 
            GroupingEnabled="false" ShowGroupPanel="false" 
            ClientSettings-AllowDragToGroup="false" ClientSettings-Selecting-AllowRowSelect="false"
            SortingSettings-SortToolTip="Cliquer pour trier la colonne" SortingSettings-SortedDescToolTip="Tri ascendant" SortingSettings-SortedAscToolTip="Tri descendant"
            DataSourceID="ListeEditionsADM"
            OnItemDataBound="GrilleAdminEditions_ItemDataBound">
                <MasterTableView runat="server" PageSize="20" NoMasterRecordsText="Aucun abonnement disponible pour les éditions de la mise à jour" NoDetailRecordsText="Aucun abonnement disponible pour les éditions de la mise à jour"
                        ShowHeadersWhenNoRecords="true"
                        AllowAutomaticDeletes="true"
                        AllowAutomaticInserts="true"
                        AllowAutomaticUpdates="true"
                        CommandItemDisplay="Top"
                        EditMode="InPlace"
                        AutoGenerateColumns="false"
                        DataSourceID="ListeEditionsADM"
                        >
                    <Columns>
                        <telerik:GridDropDownColumn HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" UniqueName="Code" DataField="Code" DataSourceID="ListeEditionsABO" ListTextField="Code" ListValueField="Code" DropDownControlType="DropDownList">
                        </telerik:GridDropDownColumn>
                        <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" HeaderText="Titre" UniqueName="Libelle" DataField="Libelle">
                        </telerik:GridBoundColumn>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                            <ItemStyle HorizontalAlign="Center" 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>
                        <telerik:GridButtonColumn ButtonType="ImageButton" ItemStyle-HorizontalAlign="Center" UniqueName="imgAbonner">
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric"
                    FirstPageText="" FirstPageToolTip="Aller à la première page"
                    NextPageText="" NextPageToolTip="Aller à la page suivante"
                    LastPageText="" LastPageToolTip="Aller à la dernière page"
                    PrevPageText="" PrevPageToolTip="Aller à la page précédente"
                    NextPagesToolTip="Afficher les pages suivantes" PrevPagesToolTip="Afficher les pages précédentes"
                    PagerTextFormat="{4}{5} édition(s) sur {1} page(s)"
                />
        </telerik:RadGrid>
    </div>
</telerik:RadAjaxPanel>
<asp:ObjectDataSource ID="ListeEditionsABO" runat="server" SelectMethod="GetListeEditionsABO" TypeName="FilsRSSInternes.EditionMAJ"></asp:ObjectDataSource>
<asp:ObjectDataSource ID="ListeEditionsADM" runat="server" SelectMethod="GetListeEditionsADM" TypeName="FilsRSSInternes.EditionMAJ"></asp:ObjectDataSource>
Veli
Telerik team
 answered on 14 Dec 2010
1 answer
181 views
i'll be blunt - i DO NOT like the new keyboard navigation feature of the radgrid.  the idea is great but it needs heavy work.

If you do not use the keys to navigate and instead click on a row, it always scrolls the page so that the top of the radgrid is in the browser window.  This is especially annoying if you scroll to the bottom of the page and want to double click on a row to edit it.  The radgrid instead opens some other random row to edit.

you can use the up and down arrow keys to highlight a row but why can you not click on a row to highlight it?

if i have 200 rows in my radgrid and i want to edit the 100th row using keyboard navigation, it is horribly inconvenient to step through the entire grid with the arrow keys.  Am i missing something? can someone tell me how to use the keyboard to get to that row faster?
[update] so i found out how to select a specific row by clicking on it but if this row is down on the page, click on it will select it but it will cause the radgrid to scroll to the top of the page - VERY FRUSTRATING [/update]

i like the old style where you could use javascript to double click on a row to edit it and then press enter to save the changes.  Now, pressing enter causes the radgrid to cancel the changes you made in the edit row and instead put the top row in edit mode.  What do i have to do so that i can keep the double-click-to-edit functionality and then press enter to save those changes in the current row being edited and avoid the screwey things the radgrid is doing now.
Tsvetina
Telerik team
 answered on 14 Dec 2010
3 answers
209 views
Just wanted to state i think these controls are great!! just having a little trouble adapting.

This is what im trying to do.

protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)   
{         
  
this.TextBox1.Text = GridView1.SelectedRow.Cells[1].Text;
}

but using the new radgrid its different. can someone help? thanks!


-EricPacheco

Veli
Telerik team
 answered on 14 Dec 2010
1 answer
30 views
So I've fixed my other problem with the grid not calling my web service and now things are half working. I've got a background thread that's adding objects to a collection (thread safe) every second, and the grid simply refreshes every second and displays all of these objects. This works fine until there are more than 10 objects in the collection, then the grid stops displaying all of the objects fields except one. Screen shot below:

The EventTime is a DateTime property of the object, so the grid is for some reason displaying that property, but ignoring all of the other properties on all objects after Message 21. Any idea's what's going on?
Iana Tsolova
Telerik team
 answered on 14 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?