Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
In a radgrid filtering can be done by
1. A filter text box and a filter menu next to it. This gives flexibility to search with various criteria like 'equal to' , 'contains', etc.
2. By drop down where we select a value and filter criteria is only 'equal to'.

Can we combine both of the above ? I want to select a value from drop down then open the filter menu and select a criteria like 'equal to' , 'contains', etc.
Is this possible? If so then pls provide any code snippet or link.
alo
Top achievements
Rank 1
 answered on 29 Jan 2009
2 answers
156 views
Hello,

I am using .NET 2.0 and Telerik 2008.1.515.20.  I have a RadGird in my page.  The grid has one GridEditCommandColumn. 

This is the problem:
I sorted one of the column and navigated to another page.  Then I came back to my page using the browser back button.  When I clicked on the edit button under the GridEditCommandColumn, I got the the following error:

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.

Does anyone know how to fix this error?  I tired to set EnableHistory property in RadAjaxManager, but it's still not working.  Is it because it requires .NET3.5?

Thanks a lot,

Wai
Wai
Top achievements
Rank 1
 answered on 29 Jan 2009
0 answers
93 views
Dear Sir,

I am testing upload control at http://demos.telerik.com/aspnet-ajax/upload/examples/customprogress/defaultcs.aspx

I found the following...

1. If I use IE7, the upload speed is around 130KB, but Firefox3 is only around 40KB (why firefox3 upload speed is slower?)

2. If I use Firefox3 to upload the file (10mb), the upload process always break down (around 40%).  It looks like the progressing monitor stop working, but it still uploading....(I have tried telerik website and my website...same result)

Do you have any suggestion?
Jason Lee
Top achievements
Rank 1
 asked on 29 Jan 2009
1 answer
151 views
I've been trying the FireCommandEvent() to post grid updates from outside the grid (via "Save" button).  Some of my grids are using InPlace mode, and others using EditForm.  For the those using InLine, I've been able to iterate through the EditItems collection and fire the event successfully.  Unfortunately, the EditItems collection does not contain EditFormItem is not accessible for items in the EditItems collection.  In the meantime, I've been able to cast it as GridDataItem and access the EditFormItem for firing the event.

for(int i=0; i < this.RadGrid1.EditItems.Count; i++)
{
  (this.RadGrid1.EditItems[i] as GridDataItem).EditFormItem.FireCommandEvent(RadGrid.UpdateCommandName, String.Empty);
}

It's not the most elegant solution, but it works.  Is that something that'll be available eventually?
Daniel
Telerik team
 answered on 29 Jan 2009
1 answer
102 views
Hi,  I have a grid and in the page load I create a default sort express when !ispostback - that works

            GridSortExpression expression1 = new GridSortExpression();
            expression1.FieldName = "description";
            expression1.SortOrder = GridSortOrder.Ascending;
            productsViewRG1.MasterTableView.SortExpressions.AddSortExpression(expression1);

I also have a dropdown list above the grid during OnSelectedIndexChanged for the dropdown I want to change the sort order based on the users selection.

    protected void sortDDL1_OnSelectedIndexChanged(object sender, EventArgs e)
    {
        GridSortExpression expression1 = new GridSortExpression();
        expression1.FieldName = sortDDL1.Text;
        expression1.SortOrder = GridSortOrder.Ascending;
        productsViewRG1.MasterTableView.SortExpressions.AddSortExpression(expression1);

        productsViewRG1.Rebind();
    }

if I don't set the default search expression in the page load then setting the sort expression works from the drop down list,  but it doesn't allow me to set a default sort expression when the page is loaded.

Am I missing something

Thanks
-Keith
SonicImaging
Top achievements
Rank 1
 answered on 29 Jan 2009
4 answers
281 views
Hi!!

I have created this example but me does not work the script because what mistake? you indicate to me l' error and what I must fix and if you put to me l' example without l' error that I commit.

Thanks

I attend a solution

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%

@ 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">

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head runat="server">

<title></title>

<script type="text/javascript">

function SetFirstRowActive() {

alert(

"ee");

var grid = $find("RadGrid1.ClientID");

grid.set_activeRow(grid.MasterTableView.get_dataItems()[0].get_element());

}

</script>

</

head>

<

body onload="SetFirstRowActive">

<form id="form1" runat="server">

<div style="height: 114px">

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"

GridLines="None">

<

MasterTableView AutoGenerateColumns="False" DataKeyNames="Id_Categoria"

DataSourceID="SqlDataSource1">

<

RowIndicatorColumn>

<

HeaderStyle Width="20px"></HeaderStyle>

</

RowIndicatorColumn>

<

ExpandCollapseColumn>

<

HeaderStyle Width="20px"></HeaderStyle>

</

ExpandCollapseColumn>

<Columns>

<telerik:GridBoundColumn DataField="Id_Categoria" DataType="System.Int32"

HeaderText="Id_Categoria" ReadOnly="True" SortExpression="Id_Categoria"

UniqueName="Id_Categoria">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Categoria" HeaderText="Categoria"

SortExpression="Categoria" UniqueName="Categoria">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="InizCat" HeaderText="InizCat"

SortExpression="InizCat" UniqueName="InizCat">

</telerik:GridBoundColumn>

</Columns>

</

MasterTableView>

<ClientSettings AllowKeyboardNavigation="true">

<Selecting AllowRowSelect="True" />

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

</ClientSettings>

<

FilterMenu EnableTheming="True">

<

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

</

FilterMenu>

</telerik:RadGrid>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"

ConnectionString="Data Source=WINXPSP2NET;Initial Catalog=Example;Persist Security Info=True"

ProviderName="System.Data.SqlClient"

SelectCommand="SELECT [Id_Categoria], [Categoria], [InizCat] FROM [Categoria_Libri]">

</asp:SqlDataSource>

</div>

</form>

</

body>

</

html>

CharlesM
Top achievements
Rank 1
 answered on 29 Jan 2009
1 answer
111 views
Hi,

I feel really dumb, because I'm sure someone has done this before. 
What would the best way to have the radeditor have some default text into a new posting?

What I'm really after is on a new page for the default text to be and empty paragraph tag.  <p>&nbsp;</p>

Thanks for your help!
Stanimir
Telerik team
 answered on 29 Jan 2009
2 answers
146 views
How can I change the allowable upload file extensions for the document manager?
Roger
Top achievements
Rank 1
 answered on 29 Jan 2009
3 answers
119 views

Sir,

My page is divided into three parts vertically..For this i used spiltters.First splitter is used for menu on left side of the page which is done by the master page as  given below
In master page.aspx

   
    html, body, form  
    {  
        height: 100%;  
        overflow: hidden;  
        margin: 0px;  
        padding: 0px;  
    }  
      
 
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager2" runat="server" /> 
      
        <div id='Div1' style="margin: 0 auto; width: 100%; height: 100%; background-color: #FFFFFF;  
            overflow: hidden; border: 1px"> 
            <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" 
                Style="background-color: #FFFFFF; border: 1px !important">  
                <telerik:RadPane ID="LeftPane" runat="server" Width="100%" Height="100%">  
                    <div>  
                        
                         
                        <div>  
                            <telerik:RadAjaxPanel runat="server" ID="radajaxpanelmenu" Width="100%">  
                                <telerik:RadPanelBar PersistStateInCookie="true" runat="server" ID="RadPlBMasterMenu">  
                                    <ItemTemplate> 
                                        <asp:Label ID="Label1" runat="server" Text="Menu"></asp:Label> 
                                    </ItemTemplate> 
                                    <Items> 
                                        <telerik:RadPanelItem runat="server" Text="test">  
                                        </telerik:RadPanelItem> 
                                    </Items> 
                                    <CollapseAnimation Duration="100" Type="None" /> 
                                    <ExpandAnimation Duration="100" Type="InBounce" /> 
                                </telerik:RadPanelBar> 
                            </telerik:RadAjaxPanel> 
                        </div> 
                       
                       
                    </div> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadSplitBar2" runat="server" CollapseMode="Forward" Height="100%" 
                    Width="100%" /> 
                <telerik:RadPane ID="MiddlePaneMaster" runat="server" Width="100%" Scrolling="none" Height="100%">  
                    <div id="Div2" style="width: 100%">  
                        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">  
                        </asp:ContentPlaceHolder> 
                    </div> 
                    <!--rightcontent--> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </div> 
    </form> 
</body> 
</html> 


In content page,I divided the content page spitter into two parts(middlepane,rightpane),the problem is i want to put the last division ie ,rightpane, in the right most part of the page.Now its shown in the middle of the page ..


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">  
    <telerik:RadSplitter ID="RadSplitter2" runat="server" CssClass="Office2007" Width="100%" 
        Orientation="vertical">  
        <telerik:RadPane ID="MiddlePane" runat="server" Width="98%" Style="float: left;">  
            <div style="border: none;">  
                <asp:Label runat="server" Text="PaneMiddle"></asp:Label> 
            </div> 
        </telerik:RadPane> 
        <telerik:RadSplitBar ID="Radsplitbar3" runat="server" CollapseMode="backward" /> 
        <telerik:RadPane ID="RightPane" runat="server" Style="float: right">  
            <telerik:RadSlidingZone ID="SlidingZone1" runat="server" ClickToOpen="true" SlideDirection="left">  
                <telerik:RadSlidingPane ID="Contacts" Title="Filter" runat="server">  
                    <div> 
                        <asp:Label ID="Label1" runat="server" Text="PaneRight"></asp:Label> 
                    </div> 
                </telerik:RadSlidingPane> 
            </telerik:RadSlidingZone> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
</asp:Content> 

I thk my code wil explain wht i really mean..In short

I want to show the middlepane fully stretched.and the right pane shuld be visible only when i click on it,then on tht time the middlepane should adjust its width to include the rightpane also..
If u just cut and paste my code u can see the probm


Plz help me....

Thanks in advance...
Svetlina Anati
Telerik team
 answered on 29 Jan 2009
27 answers
292 views
We have a CMS that is using RadEditor. Most of the time, the content is being copied from word, stripping everything out, which works fine. The content comes in in propert <p> tags. The problem arises when the user starts applying styles.
For example, if I have a style set as:
.BodyText
{
   font-family: Arial;
   ...
}
In my content I have
<p class="Word class">Test</p>
I highlight the text and apply my style from the dropdown. Sometimes it works, other times it will format the following:
<span class="BodyText"><p class="Word class">Test</p></span>
OR
<p class="Word class"><span class="BodyText">Test</span><p>

Unfortunately, this html content has to be converted into a structured xml document that using the class definitions as attributes. This will not work if the content editor cannot apply styles consistently. Has anyone had similar problems, and/or any recommendations for how to approach this issue?

Regards,

Mick
Rumen
Telerik team
 answered on 29 Jan 2009
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?