Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
42 views
I am using AjaxManager with a farily complex page. It's sometimes tough to reproduce, but I get a serialization error at the end of a request, during the response back to the client after all of my server code has run.  It is within some Telerik code.  The odd thing is that once I do a full page refresh, it doesn't happen again.

Any help you can provide will be greatly appreciated.
Iana Tsolova
Telerik team
 answered on 13 Oct 2011
1 answer
129 views
I'm trying to use the AfterClientCheck javascript event on a simple test page in a VS2008 test project, but it's not working.  OnClientMouseOver is working just fine, so javascript is working.

Any thoughts?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="myNamespace.WebForm1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function test(input, args) {
            alert("test");
        }
 
        function AfterCheckHandler(node) {
            alert("You have checked " + node.Text + " which is now " + node.Checked);
        } function AfterClickHandler(node) {
            alert(node.Text);
        }
 
 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadTextBox ID="RadTextBox1" runat="server" ClientEvents-OnKeyPress="test">
        </telerik:RadTextBox>
        <telerik:RadTreeView ID="RadTreeView1" CheckBoxes="True" runat="server" AfterClientClick="AfterClickHandler"
 AfterClientCheck="AfterCheckHandler" OnClientMouseOver = "test">
        <Nodes>
                    <telerik:RadTreeNode runat="server" Text="Books" ExpandMode="ClientSide">
                        <Nodes>
                            <telerik:RadTreeNode runat="server" Text="Fiction">
                            </telerik:RadTreeNode>
                            <telerik:RadTreeNode runat="server" Text="Non-Fiction">
                            </telerik:RadTreeNode>
                        </Nodes>
                    </telerik:RadTreeNode>
                </Nodes>
 
        </telerik:RadTreeView>
    </div>
    </form>
</body>
</html>


As you can see, I used one of the simple samples and only added the events I was interested in to test them.
Thanks
Eric Carlson
Top achievements
Rank 1
 answered on 13 Oct 2011
3 answers
84 views
HI Team,

I need to Validate a textBox if the RadUpload.UploadedFiles.Count !=0

Something Like this...
if (RadUpload.UploadedFiles.Count !=0)
then Validate TextBox should not be empty
if (RadUpload.UploadedFiles.Count ==0)
then TextBox can be empty.

And can we do this without post-back. Something on Client Side please.. Using JavaScript preferably...

Thanks,
Raja
Peter Filipov
Telerik team
 answered on 13 Oct 2011
7 answers
214 views
Hi, i'm studying the example
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

I replace all and it's ok, one thing is wrong in my example, when I add a new record after confirm the usercontrol don't hide as in Update event.
The usercontrol after confirm insert is cleared but is visible in grid.

I can try with
e.Canceled = true;
 
gvList.SelectedIndexes.Clear();
 
this.gvList.MasterTableView.Rebind();
in the InsertCommand of RadGrid but don't work.

This is my RadGrid
<telerik:RadGrid ID="gvList" runat="server" AllowPaging="True" AllowSorting="True"
                            ShowStatusBar="True" CellSpacing="0" GridLines="None" Skin="Office2010Blue" AutoGenerateColumns="False"
                            OnNeedDataSource="gvList_NeedDataSource" OnDeleteCommand="gvList_DeleteCommand"
                            AllowAutomaticUpdates="false" PageSize="20" OnInsertCommand="gvList_InsertCommand"
                            OnUpdateCommand="gvList_UpdateCommand">
                            <HeaderStyle Font-Bold="true" />
                            <MasterTableView CommandItemDisplay="Top" DataKeyNames="d61_n_tipo" AllowAutomaticInserts="True"
                                CommandItemSettings-AddNewRecordImageUrl="Images/Grid/add2.png" CommandItemSettings-AddNewRecordText="AGGIUNGI NUOVA TIPOLOGIA"
                                CommandItemSettings-RefreshImageUrl="Images/Grid/refresh.png" CommandItemSettings-RefreshText="AGGIORNA LISTA">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="d61_n_tipo" UniqueName="d61_n_tipo" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="d61_n_tipo" HeaderText="CODICE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="d61_c_descrizione" HeaderText="DESCRIZIONE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="d60_c_descrizione" HeaderText="TIPI BASE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridCheckBoxColumn DataField="d61_n_flag_obsoleto" HeaderText="OBSOLETO">
                                    </telerik:GridCheckBoxColumn>
                                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditImageUrl="~/Images/Grid/edit.png"
                                        EditText="Modifica" ItemStyle-HorizontalAlign="Center" ButtonType="ImageButton"
                                        ItemStyle-Width="3%">
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow"
                                        ConfirmText="Confermare l'eliminazione del record ?" ConfirmTitle="Conferma eliminazione"
                                        ImageUrl="~/Images/Grid/delete2.png" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%"
                                        Text="Elimina" UniqueName="DeleteColumn">
                                        <ItemStyle HorizontalAlign="Center" Width="3%" />
                                    </telerik:GridButtonColumn>
                                </Columns>
                                <EditFormSettings UserControlName="ucGridTipologieUfficiali.ascx" EditFormType="WebUserControl">
                                    <EditColumn UniqueName="EditCommandColumn1">
                                    </EditColumn>
                                </EditFormSettings>
                            </MasterTableView>
                            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                            </ClientSettings>
                            <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                        </telerik:RadGrid>

Thanks,
Marco




Tsvetina
Telerik team
 answered on 13 Oct 2011
3 answers
103 views
So I'm adding a new row to my radgrid.

Then, after I finish inserting the row... I press F5 to refresh the page and my most recently entered row disappears! I'm doing this in debug and running it off my local machine.

If I stop debugging, stop the development server, and then press play to debug...the row appears! However the same thing happens with the next row I insert if I refresh the page again.

I talked with a co-worker about this and he seemed to think it has something to do with the viewstate. Regardless... we're having trouble figuring it out. It's like something is not getting refreshed with my radgrid when the page refreshes.

Any help is greatly appreciated.





Brock
Top achievements
Rank 1
 answered on 13 Oct 2011
1 answer
101 views
Can someone explain why FilterExpression is LINQ syntax for List but SQL syntax for others.

Here is what I have tested:
public class TheData
{
    public string Subject { get; set; }
}
 
protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    MyEntity ent = new MyEntity();
    IQueryable<TheData> gridData = from t1 in ent.Documents
                                   join t2 in ent.Approve on t1.Id equals t2.DocumentId
                                   where (t1.InsertById == 1 || t1.ApprovedById == 1)
                                   select new TheData
                                              {
                                                  Subject = t1.Subject
                                              };
    string filterExpression = RadGrid1.MasterTableView.FilterExpression.Replace(".ToString()", String.Empty);
    RadGrid1.VirtualItemCount = filterExpression != string.Empty
                                    ? gridData.Where(filterExpression).Count()
                                    : gridData.Count();
 
    var testData = (filterExpression != string.Empty
                                               ? gridData.Where(filterExpression)
                                               : gridData).ToList();
 
    var finalData = (from f in testData
                               select new
                                          {
                                              Subject = f.Subject.Replace("someval", "tosomeval"),
                                          }).ToList();
    RadGrid1.DataSource = finalData;
}

If I call .ToList() for the finalData filterExpressions syntax is
(iif(Subject == null, "", Subject).Contains("sometext"))

but if I do not call .ToList() filterExpression syntax is
([Subject] LIKE '%sometext%')

PS: EnableLinqExpressions="true" doesnt reflect any changes.

TIA.
Veli
Telerik team
 answered on 13 Oct 2011
2 answers
63 views

Posted on Mar 1, 2010 (permalink)

Hi,

Is it possible to make the confirmation delete box to be displayed just beside the appointment to delete or at center of the screen?
Because if I have a scheduler page that is in full view (24 hrs) and I try to delete the meeting at 8AM, the confirmation box is in the center of the scheduler and we have to Scroll it down to click on OK.

we are using version "2011.1.519.40" of the dll Telerik.web.ui.


Thanks,
Mayur
Mayur
Top achievements
Rank 1
 answered on 13 Oct 2011
1 answer
66 views
Hi, I upgraded my iPad to iOS5 this morning. I note that the upgrade allows the contenteditable property to work in the default safari browser on the iPad, so in theory this should mean that you can now use RadEditor on it. I tried the demos on this website and none of them work. Other rich text editors like CKEditor do work fine in iOS5 though.

Is there a css hack or workaround to get the editor working on the ipad or do we need to wait for Q3 2011 before this will be available?

thanks.
Rumen
Telerik team
 answered on 13 Oct 2011
5 answers
175 views
Hi,


I am doing some works with RadGrid to export pdf format, have questions:
(1) Is there a way to output graphics in pdf's header area? I tried to use html img tag  in PageTitle property without success
(2) Is there a way to output "Page x of y"? I would prefer to output this into footer area.
(3) I can not get rid of page margins on header and footer areas no matter what values I set PageTopMargin and PageBottomMargin properties to. PageRightMargin and PageLeftMargin seem to function well.

TIA
Daniel
Telerik team
 answered on 13 Oct 2011
2 answers
133 views
HI

Can we filter Negative values in RadGrid Filter. I am getting a javascript error i am just simply using normal Filtering scenario
and in ItemCommand Event i am rebinding the grid again. but i am getting the following Javascript error when im filtering the negative values as i shown.
sudheer kamana
Top achievements
Rank 1
 answered on 13 Oct 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?