Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
102 views
Hi,

I have a standard grid and when the EnableLinqExpressions is not set on the grid (ie is True I think) the grid won't find values properly.  Ie say that there are two rows in the grid and in the filtered column there are values of Abb in the first row and Cdd in the second row.  If I enter a as the filter the Abb row isn't found.  If I enter A then the row is found.  When I set EnableLinqExpressions to false the filter works properly.

Is there a case option on the filter when EnableLinqExpressions = True?

I assume that as EnableLinqExpressions is true by default is there some performance benefit to it? 

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 02 Sep 2009
11 answers
320 views

To my loving Telerik Community:

I write this post just in case there are others who get themselves into a situation as did I. 
I have been using 2009 Q1 release since purchasing the Telerik suite of controls.   The steps I took to upgrade to 2009 Q2 gave me a bit of a headache and took 2 days of productive time away. Here are the steps I took and advice what not to do.

  1. When I ran the Q2 Installer it reported back that a previous version was already installed and that I must remove prior to installation.
    • I later fould a fourm that talked about an upgrade installer.  I never did find such a download.  If you can find it, use it.  The normal installer requires the previous version to be removed, which did not fully work for me.
    • If such an upgrade installer is not available.  It is my advice to download the mannual install zip file. (Go to step 3)
  2. I removed the telerik using the normal process.  Everything was removed as expected except the Visual Studios Extentions.  When I went to install Q2, I got an error "Visual Studios Extension Installed, please remove ..
    • I am not sure why the Q1 Extension were not removed.  This is something Telerik folks may want to look at.  One possibilty is I am using Vista 64 and was not removing as Admin.  I am willing to bet that is the root cause. 
    • I had a heck of a time figuring out how to remove Visual Studios Extensions.  I am using VS 2005 and 2008 (I find that 2005 works best for ASP 2 and 2008 for ASP 3.5).  I found a post on how to remove extensions with 2010 but nothing for 2005 and 2008.
    • Advice:  make sure your Admin when you deinstall.  Not positive that will help, but it might work better.   If you know how to manually remove extensions, then that is another route you can take.  I never did figure that out.
  3. I downloaded the Manual Install zip and extracted the files to similar location as q1, Changing the folder to reflect Q2 (It is Not important where you extract).
  4. I moved the Q2 DLLs to my local wesite bin folder (Obviously Mandatory)
  5. I went back to one of my projects (A WAP DotNetNuke module) and found multiple errors for obvious reasons.
    • Looking in Visual Studios Object browser, the deinstall rightfully removed the telerik controls.  I added the custom by going to Edit Custom Component set (an option in the Object Browser).  I added a reference to the telerik dll.
    • If you did not uninstall then you will have a potential path issue, as it will be looking for the component in the Q1 path.  You will obviously change that so it finds the right dll.
  6. Interestingly my project compiled without error, but I was getting run time errors.  I then looked at the ascx file and saw an error in the Register tag.  It indicated a mismatch.  The error made it obvious that my project was still looking for the Q1 version
    • I looked at the project's References, located the Telerik.Web.UI and saw that it was, as expected still looking for the Q1 version.
  7. I removed the Q1 Telerik.Web.UI from the project's reference and then added a new reference using the Path to the new dll.
  8. Everything now compiles and I am happy.
  9. I add a control to the page.  As expected the deinstall removed them from the Toolbox.  I can still type them in mannually, but what a pain.  Fortunatly it is easy to add tools to the toolbox
    • If you did not remove the previous version and took the Manual Install approach, you probably have a path issue.
  10. I restored the tool box to default (not mandatory but all references to Q1 controls need to either change or be removed.  This seemed the easies)
  11. I right clicked the Toolbox and added a new tab in which I added the telerik controls
  12. I right clicked the newly created tab in the tool box and selected "Choose Items"   From there I pointed to the Q2 dll and all is working again

          

Marcos Roque Villa
Top achievements
Rank 2
 answered on 02 Sep 2009
2 answers
1.7K+ views
Hello,

I want to call a javascript method from the server side using the RadAjaxManager when the user clicks a button.  The javascript method is:

    function RunReport(viewId) { 
        var reportWindow = window.open('DisplayView.aspx?viewId=' + viewId, '_blank', "height=700,width=900,left=20,top=20,scrollbars=auto,status=no,resizable=yes,toolbar=no,menubar=no,location=no"); 
    } 
 

and the server-side handler for the button is:

        protected void testReport_Click(object sender, EventArgs e) 
        { 
            radViewAjaxManager.ResponseScripts.Add(string.Format("RunReport(\"{0}\");", workingView.Id)); 
        } 
 

The text I'm passing as the viewId has a backslash in it, like "sometext\moretext".  When debugging on the server side, I see that the value of workingView.Id is "sometext\\moretext", so the backslash is being escaped.  However, when I debug the javascript line on the client side as it's being called I see that the viewId is being set to "sometextmoretext", with NO backslash at all in it.

I also tried wrapping the parameter in the server side in single quotes RunReport('{0}') but that didn't change the behavior.  I feel like I'm overlooking something obvious, but can't quite figure it out.

Any help would be much appreciated.

Thanks!

Eddie

Eddie
Top achievements
Rank 2
 answered on 02 Sep 2009
1 answer
72 views
On the aspx page i have:

<telerik:RadGrid ID="grdAvailActions" runat="server" Width="200px" OnRowDrop="grdAvailActions_RowDrop" AllowMultiRowSelection="false" PageSize="30" OnNeedDataSource="grdAvailActions_NeedDataSource" GridLines="None">
.
.
.

and on the code behind I have:

protected void grdAvailActions_RowDrop(object sender, GridDragDropEventArgs e)
    {
.
.
.   

grdAvailActions_RowDrop is not being called when I drag an item.  What's up with this?






Mira
Telerik team
 answered on 02 Sep 2009
0 answers
153 views

Hello All,

Is it possible to code using Telerik components a dynamic BreadCrumb without any fancy Menus and get those BreadCrumb items from URLs not from xml files or Database? Like below, and those items should be links.

Home > Customer Search > Customer Results > Customer

I looked basic SiteMap control from asp.net but it seemed to have so tight connection to xml/databases.

So, has Telerik ASP.NET Ajax components have anything to offer to this issue?

I would be very glad to find a sample and/or article how to impelment it.

Cheers.

MiK

Mike
Top achievements
Rank 1
 asked on 02 Sep 2009
4 answers
339 views
Hi,

I'm trying to bind a radgrid from client side with a ASMX web service using this markup:

<telerik:RadGrid ID="RadGrid1" AllowSorting="true" AllowPaging="true" AllowFilteringByColumn="true" 
            AutoGenerateColumns="false" runat="server"> 
            <MasterTableView> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="Id" HeaderText="Id" DataType="System.Guid" Visible="false" /> 
                    <telerik:GridBoundColumn DataField="Title" HeaderText="Title" /> 
                    <telerik:GridBoundColumn DataField="Cause.Name" HeaderText="Cause"/> 
                    <telerik:GridBoundColumn DataField="StartDate" HeaderText="Start Date" DataFormatString="{0:d}" DataType="System.DateTime"/> 
                </Columns> 
            </MasterTableView> 
            <PagerStyle AlwaysVisible="true" /> 
            <ClientSettings> 
                <DataBinding Location="WebService.asmx" 
                    SelectMethod="GetEvents" SelectCountMethod="GetEventCount" />                 
            </ClientSettings> 
        </telerik:RadGrid> 

The JSON being returned by the webservice is like so:

{"d":{"__type":"EventDTO","EntityId":"20669908-bf86-4d72-90b0-38239eb6dfa5", 
"Type":{"Name":"Entertainment","Description":"Test","Id":"1228a7b5-43e1-4cd5-b66d-b4afd43004b7",
"CreateDate":"\/Date(1240385834617)\/","LastUpdatedDate":"\/Date(1240385834617)\/","DeletedDate":null,"TimeStamp":[0,0,0,0,0,0,35,152]}, 
"Cause":{"Name":"Global Warming1","Description":"Test","Id":"399fcb2e-0bdc-4e4b-879f-0ee0e97a5db5", 
"CreateDate":"\/Date(1240384333727)\/","LastUpdatedDate":"\/Date(1248085361140)\/","DeletedDate":null,"TimeStamp":[0,0,0,0,0,0,164,19]},"Title":"97979978978","Sites":null,"Location":"Pakistan","Description":"Testing Description \n",
"StartDate":"\/Date(1240574400000)\/","CompletionDate":"\/Date(1246230000000)\/","RequiresVolunteerApproval":false,"Id":"0da73022-7d8d-4f79-a108-61c916a49fe8","CreateDate":"\/Date(1240389765160)\/","LastUpdatedDate":"\/Date(1240389765160)\/","DeletedDate":null,"TimeStamp":[0,0,0,0,0,0,148,192]}} 

Problem is that the Cause column shows up empty. Cause is a nested object inside the main event object...how can I get the radgrid to display nested object's properties?
Sebastian
Telerik team
 answered on 02 Sep 2009
4 answers
140 views
We have used Rad Calender to pick dates and pass to next page to display details depends on complete date selected. eg 26/08/2009.

This code was working since Apr.2009 on server,  it started giving error form 19/08/2009. On selecting date from calander. calender event not passing  date to next page.

Same code is working on local PC with same server environment  SQL 2008, VS 2005  Dot net frame work 2.0
 protected void SelectedDateChange(object sender, Telerik.WebControls.Base.Calendar.Events.SelectedDatesEventArgs e)  
        {  
            objDailyReportBL = new DailyReportBL();  
            objDailyReportSchema = new DailyReportSchema();  
            objRoleMasterBL = new RoleMasterBL();  
            objRoleMasterSchema = new RoleMasterSchema();  
 
 
            if (e.SelectedDates.Count > 0)  
            {  
 
                IsHoliday = false;  
 
                if (e.SelectedDates[0].Date.DayOfWeek == DayOfWeek.Sunday)  
                {  
                    IsHoliday = true;  
                }  
                else  
                {  
                    if (dstHolidayList != null)  
                    {  
                        if (dstHolidayList.Tables.Count > 0)  
                        {  
                            if (dstHolidayList.Tables[0].Rows.Count > 0)  
                            {  
                                DataRow[] foundRows = dstHolidayList.Tables[0].Select("HolidayDate='" + e.SelectedDates[0].Date + "'");  
 
                                if (foundRows.Length != 0)  
                                {  
                                    IsHoliday = true;  
                                }  
                            }  
                        }  
                    }  
                }  
 
                  
                if (QueryStringProfileEmployeeID != Guid.Empty)  
                {  
 
                    if (SessionRoleName != MasterDataHelper.USER_BDE && SessionRoleName != MasterDataHelper.USER_ADMIN)  
                    {  
                        if (e.SelectedDates[0].Date > SessionLastSubmittedDate || SessionLastSubmittedDate.IsNull)  
                        {  
                            Response.Write("<script language=javascript>alert(' " + MoleKule.Resources.Molekule.SuperiorCantViewDailyReportUntilSelfSubmits + "');self.location=('DailyReport.aspx?pid=" + GetProfileEmployeeID.ToString() + "');</script>");  
                            return;  
                        }                         
                    }  
 
                    objDailyReportSchema = objDailyReportBL.DailyReportRetrieve(SqlDateTime.Parse(e.SelectedDates[0].Date.ToString()), QueryStringProfileEmployeeID);  
 
                    if ((objDailyReportSchema != null) && (objDailyReportSchema.IsReportSubmitted))  
                    {  
                        Response.Redirect(MasterDataHelper.NAVIGATE_DAILYREPORT + (e.SelectedDates[0]).Date.ToString() + "&pid=" + GetProfileEmployeeID.ToString() + "&holiday=" + IsHoliday);  
                    }  
                    else  
                    {  
                        Response.Write("<script language=javascript>alert(' " + MoleKule.Resources.Molekule.DailyReportNotYetSubmitted + "');self.location=('DailyReport.aspx?pid=" + GetProfileEmployeeID.ToString() + "');</script>");  
                        //Response.Redirect(MasterDataHelper.NAVIGATE_CLIENT_DAILYREPORT + "?pid=" + QueryStringProfileEmployeeID.ToString());  
                    }  
                }  
                else  
                {  
 
                    SqlDateTime WebConfigDT, ReportStartDate, DOJ, DateOfAct, PreDt;  
 
                    DateOfAct = SqlDateTime.Null;  
                    DOJ = SqlDateTime.Null;  
 
 
                    DataSet dstDailyReport;  
                    objDailyReportBL = new DailyReportBL();  
 
                    dstDailyReport = objDailyReportBL.DailyReportGetDOJAndDtOfActivation(SessionProfileEmployeeID);  
 
                    if (dstDailyReport.Tables.Count > 0)  
                        if (dstDailyReport.Tables[0].Rows.Count > 0)  
                        {  
                            DateOfAct = SqlDateTime.Parse(dstDailyReport.Tables[0].Rows[0]["ActivationDate"].ToString());  
                            DOJ = SqlDateTime.Parse(dstDailyReport.Tables[0].Rows[0]["JoiningDate"].ToString());  
                        }  
 
                    try  
                    {  
                        WebConfigDT = SqlDateTime.Parse(ConfigurationManager.AppSettings["DailyReportStartDate"].ToString());  
                    }  
                    catch (Exception)  
                    {  
                        Response.Write("<script language=javascript>alert(' " + "Report can't submit. Contact Admin." + "');self.location=('DailyReport.aspx');</script>");  
                        //WebConfigDT = SqlDateTime.Null;  
                        return;  
                    }  
 
 
                    if (!WebConfigDT.IsNull)  
                    {  
 
                        ReportStartDate = WebConfigDT;  
 
                        if (DOJ > ReportStartDate)  
                            ReportStartDate = DOJ;  
 
                        if (DateOfAct > ReportStartDate)  
                            ReportStartDate = DateOfAct;  
 
 
                        if (e.SelectedDates[0].Date < ReportStartDate)  
                        {  
                            DateTime tmp = Convert.ToDateTime(ReportStartDate.ToString());  
                            Response.Write("<script language=javascript>alert(' " + "Your start date of daily report is " + tmp.ToString("dd/MM/yyyy") + ". You can create report from " + tmp.ToString("dd/MM/yyyy") + " onwards." + "');self.location=('DailyReport.aspx');</script>");  
                            //Response.Redirect("DailyReport.aspx");  
                            return;       
                        }  
                    }  
                    else  
                    {  
                        Response.Write("<script language=javascript>alert(' " + "Report can't submit. Contact Admin." + "');self.location=('DailyReport.aspx');</script>");  
                        return;  
                    }  
 
                    objRoleMasterSchema = objRoleMasterBL.RoleMasterRetrieveByProfileEmployeeID(SessionProfileEmployeeID);  
                      
                    if (objRoleMasterSchema.RoleName != MasterDataHelper.USER_ADMIN)  
                    {  
                        Response.Redirect(MasterDataHelper.NAVIGATE_DAILYREPORT + (e.SelectedDates[0]).Date.ToString() + "&holiday=" + IsHoliday);  
                    }                      
                }  
            }  
        } 
Georgi Krustev
Telerik team
 answered on 02 Sep 2009
2 answers
150 views
I am trying to export a grid on the client by using a context menu.  The grid has an ajax manager on it so when I click the export option it starts an ajax request and never does the export.   When i used a button i would  have this code in place to stop the request.

 

if (args.get_eventTarget().indexOf("DownloadPDF") > 0)

 

args.set_enableAjax(

false);

 



but the export option is part of the context menu the event target is the grid.
I am trying to find a way to detect that the context menu was fired and the value while  canceling the ajax requests on the grid for  those values and fire the ajax on others.


you have to stop the request on the ajax manager  like this

ClientEvents-OnRequestStart

 

="requestStart"

 


I just need to find how to find child controls of the requesting event


Sebastian
Telerik team
 answered on 02 Sep 2009
1 answer
69 views
Sorry for this post in this forum (no other forum subject for this question ...)

Does the R.A.D. controls MCMS still supported ?
I see in this post http://www.telerik.com/community/forums/aspnet/editor/rad-editor-mcms-placeholder.aspx  that:
"RadEditorPlaceholderControl's  ....  was supported until the end of 2008"



No information are available in the telerik web site about this specifique question ...

Thx,
Nicolas.



Ivo
Telerik team
 answered on 02 Sep 2009
1 answer
82 views
Hi, I'm trying to add some spacing in a list element (linebreaks).

Try to add some linebreaks in the editor here: http://demos.telerik.com/aspnet-ajax/editor/examples/saveindatabase/defaultcs.aspx and then push the "Submit to database"-button. You'll se that the linebreaks gets removed.

So to the question: how can I add spacingin a list element?
Rumen
Telerik team
 answered on 02 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?