Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
125 views
Hi All :

protected void radgrdList_EditCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        this.radgrdList.MasterTableView.Items[e.Item.ItemIndex].Edit = true;
        GridEditableItem item = (GridEditableItem)e.Item;
        Guid id = (Guid)item.GetDataKeyValue("CatalogID");
        ContentCatalog catalog = new ContentCatalog().GetOne(id);
        DropDownList ddlPosition = (DropDownList)item["position"].FindControl("ddlPosition");
        if (!String.IsNullOrEmpty(catalog.Position))
        {
            ddlPosition.Items.FindByValue(catalog.Position);
        }
        this.radgrdList.MasterTableView.Rebind();
    }

I cant't findcontrol "ddlPosition" and return null

Thanks in advance.
Or Huang
Top achievements
Rank 1
 answered on 02 Apr 2010
0 answers
78 views
Hello, we have an intermittent RAD upload error in IE7: "Ajax callback error. Source url  returned error:12029  Unknown " All the handlers are registered correctly according to your instructions. It works fine in FF and IE8 but occasionally gives us this error in IE7.
Thanks.
Argo Abramian
Top achievements
Rank 1
 asked on 01 Apr 2010
3 answers
512 views
Hi, I am using the RadWindow to let the users add information.  What I want to be able to do is, when the user adds a record, the window should close and then redirect the user to a different page.  Also, the user should be redirected only when the user has added record successfully.  How can I go about doing this?

[Note: the information is being stored server side.]

Prateek
Prateek Bahl
Top achievements
Rank 1
 answered on 01 Apr 2010
1 answer
113 views
I'm getting javascript errors ('isClientSelectCheckBox is not defined') every time when trying to select a single row.  I'm able to drag to select multiple rows, but when I try to select a single row I get the error.  I'm using an ASP.NET skin for most of the grid structure.  Any ideas?

Skin:
<telerik:RadGrid SkinID="RadGridSkinOne" runat="server" AllowMultiRowSelection="True" AllowMultiRowEdit="True"  
        AllowPaging="True" AllowSorting="True" GridLines="Vertical"
    <MasterTableView AutoGenerateColumns="False" AllowMultiColumnSorting="True" PageSize="15" CommandItemDisplay="Top"
        <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" /> 
    </MasterTableView> 
    <ClientSettings EnableRowHoverStyle="true"
        <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> 
        <Scrolling AllowScroll="false" /> 
    </ClientSettings>    
    <ItemStyle HorizontalAlign="Left" /> 
    <HeaderStyle HorizontalAlign="Center" /> 
</telerik:RadGrid> 

Grid:
<telerik:RadGrid ID="radgOne" SkinID="RadGridSkinOne" runat="server" Height="100%"
    <MasterTableView DataKeyNames="ID"
        <CommandItemTemplate> 
                    <!-- Command Template Here --> 
        </CommandItemTemplate> 
        <Columns> 
                    <!-- Columns Here --> 
        </Columns> 
    </MasterTableView> 
</telerik:RadGrid> 


Telerik Version - 2009.3.1419.20
MD
Top achievements
Rank 1
 answered on 01 Apr 2010
0 answers
89 views
Hi,

this is shanker MY requirement is linq distinct query my code this 

 public static List<sch_view_parent_student_search_lookup> sch_view_parent_student_search_lookup(int? faciltyid)
        {
            ComponentsDataContext db = DBManager.DataContext;
            var sch_view_class_student_list = (from even in db.sch_view_parent_student_search_lookup
                                              where even.facility_id==faciltyid
                                              select even. parent_person_id ).Distinct();
            return sch_view_class_student_list.ToList();
        }

Here i have one column parent_person_id that column must be in distinct how to write that .

i face one error this  is 

1 Cannot implicitly convert type 'System.Collections.Generic.List<int?>' to 'System.Collections.Generic.List<TelerikComponentsBL.sch_view_fee_student_schedule_fee_list>' D:\sama\asp\TelerikComponentsBL\feetranscationmanager.cs 25 20 TelerikComponentsBL

how to solve this  problem.and how to write Distinct of above query .

thanks and regards
shanker.B

shanker bangari
Top achievements
Rank 1
 asked on 01 Apr 2010
6 answers
250 views

Hi,
We have a display problem with Scheduler control when we have 15 minutes time slots. After we set MinutesPerRow="15" we started seeing the problem. We have the DayStartTime="06:00:00" DayEndTime="22:00:00". If the appointment was done for a chunk of time longer than 12 hours, the calendar gets only visually blocked for 12 hours. I have out of office set  on my scheduler from 6:00 am to 10:00 pm. but the property seetings MinutesPerRow="15" has caused my calendar visually blocked only for 12 hrs (which is till 6:00pm) and it is supposed to block till 10:00pm .  See the attached screen shots. rs3.jpg is after we set MinutesPerRow="15" and rs5.jpg is with default MinutesPerRow settings. Please suggest a solution for this problem.

.

 

<telerik:RadScheduler runat="server" ID="RadScheduler1" EnableEmbeddedSkins="True"

 

 

Height="630px" Skin="Outlook" DayStartTime="06:00:00" DayEndTime="22:00:00" TimeZoneOffset="00:00:00"

 

 

DataKeyField="REP_APPT_ID" OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick"

 

 

OnClientTimeSlotClick="OnClientTimeSlotClick" DataSubjectField="Subject" CustomAttributeNames="RECUR_SERIES_ID"

 

 

DataStartField="START_DT_TIME" DataEndField="END_DT_TIME" AllowDelete="false"

 

 

AllowEdit="false" AllowInsert="false" ShowViewTabs="false" NumberOfHoveredRows="1" MinutesPerRow="15" TimeLabelRowSpan="2"

 

 

HoursPanelTimeFormat="h:mm tt"

 

 

>

 

 

</telerik:RadScheduler>

 

Sreedevi Dyapa
Top achievements
Rank 1
 answered on 01 Apr 2010
0 answers
90 views
Hi All,

OK I've had enough of the .net formview control.  If you are doing basic forms it's great but the second that you try and do some complex stuff in it such as cascading drop downs and the like you need to add in excessive javascript code and code in the code behind.It gets very complex working with these forms.

In a previous job I did a form generation component that compiled the HTML for a form including that of cascading drop downs.  This was all basic HTML (with an early form of AJAX) but used no .NET server side controls.  Looking back it was pretty damn fast and very easy to new forms for. 

Before I go and start on this, does anyone know of any code that already does this that would save me wasting my time?

Regards,

Jon
Jon
Top achievements
Rank 1
 asked on 01 Apr 2010
1 answer
106 views
Hi,

I have downloaded RadControls_for_ASP.NET_AJAX_2010_1_309_Source.zip and tried to compile it under Debug and Release-NET35 configs. Under debug it goes fine, but under Release I've got the following error message:

------ Build started: Project: Telerik.Web.UI, Configuration: Release-NET35 Any CPU ------
Combining and compressing JavaScript files...
Combining JavaScript Documentation files...
D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Telerik.Web.UI.csproj(7212,5): error MSB4018: The "MergeFiles" task failed unexpectedly.
D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Telerik.Web.UI.csproj(7212,5): error MSB4018: System.IO.FileNotFoundException: Could not find file 'D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Rating\RadRating–vsdoc.js'.
D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Telerik.Web.UI.csproj(7212,5): error MSB4018: File name: 'D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Rating\RadRating–vsdoc.js'
D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Telerik.Web.UI.csproj(7212,5): error MSB4018:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Telerik.Web.UI.csproj(7212,5): error MSB4018:    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Telerik.Web.UI.csproj(7212,5): error MSB4018:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Telerik.Web.UI.csproj(7212,5): error MSB4018:    at System.IO.File.ReadAllBytes(String path)
D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Telerik.Web.UI.csproj(7212,5): error MSB4018:    at Telerik.MSBuildTasks.MergeFiles.Execute()
D:\Dev\Sources\3rdParty\RadControlsAjaxSource\Telerik.Web.UI\Telerik.Web.UI.csproj(7212,5): error MSB4018:    at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)
Done building project "Telerik.Web.UI.csproj" -- FAILED.

There's no RadRating–vsdoc.js file, however it's included in project.

In fact, filename looked pretty strange in zip achive (see attached file).

Only after I copied filename from Output and renamed it on disk, the compilation succeded. Looks like there's a problem with filename in project and zip archive.
T. Tsonev
Telerik team
 answered on 01 Apr 2010
4 answers
136 views
Hi,

I have a gridview full of data and I am trying to display a tool-tip for each cell. This amounts to around 1550 tool-tips. When i do this I get an IE pop-up : "Stop running this script?" since the javascript takes a long time to execute. I also get this pop-up warning everytime I do a post-back to redisplay the data. I tried doing this with both RadToolTip as well as RadToolTipManager with similar result. Is there a way to efficiently display 1500 tool-tips on a page without this IE pop-up warning?

I am using version 2008.2.723.20 of the RadToolTip.

Thanks,

Shashi
Shashi Gupta
Top achievements
Rank 1
 answered on 01 Apr 2010
1 answer
99 views
Hi,
In my app i need to display html content like we see in normal html browser in a grid column. The html code will have image tag which when displayed in the grid column should be replaced with  the original image linked, maintaining the position. Also, please tell me how can i scroll bar to a particular column only.

Thanks.

Regards,
John

Schlurk
Top achievements
Rank 2
 answered on 01 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?