Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
Hi,

I have one grid which show list of stores with store image in one column.
i have added new store without store image and when i am trying to update that store with image it is giving error '_evts.load' is null or not an object.
i am using image uploader to upload the image.

I am trying to show radalert after successful updating the store.One more thing image is added successfully. so error is come when it is trying to show red alert.

while if i am not select image and update then it is updating perfectly and show rad alert too.

for your reference i am attaching image which shows the error kindly have a look.i have updated new store in which image is added successfully but error message is come.


Yavor
Telerik team
 answered on 18 Jun 2010
1 answer
70 views
How to display the multi-month view in Radscheduler?
Shinu
Top achievements
Rank 2
 answered on 18 Jun 2010
5 answers
144 views
Hello,


I have tree and i need to set MultipleSelect property when user click on Checkbox.

 <Telerik:RadTreeView ID="RadTreeView2" runat="server" EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="true"
                            BorderWidth="1px" Height="600px" >
                            <ContextMenus>
                            </ContextMenus>
</Telerik:RadTreeView>

 <asp:CheckBox ID="cbMerge" runat="server" Text="Click me" />

I do that using client call back but it is not working properly can you help me how to enable/disable MultipleSelect property using client script.


Thanks in Advance

Sadiq modan
Nikolay Tsenkov
Telerik team
 answered on 18 Jun 2010
5 answers
185 views

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"

 

 

GridLines="None" Skin="Outlook" AutoGenerateColumns="False" OnPageIndexChanged="RadGrid1_PageIndexChanged"

 

 

OnPageSizeChanged="RadGrid1_PageSizeChanged" VirtualItemCount="30000" OnSortCommand="RadGrid1_SortCommand"

 

 

OnItemCommand="RadGrid1_ItemCommand" PageSize="5" EnableHeaderContextMenu="True">

 

 

<MasterTableView DataKeyNames="company">

 

 

<PagerStyle AlwaysVisible="True" />

 

 

<Columns>

 

 

<telerik:GridTemplateColumn DataField="company" HeaderText="Code" UniqueName="company">

 

 

<ItemTemplate>

 

 

<asp:LinkButton runat="server" ID="lnkCompany" Text='<%#Eval("company")%>' CommandArgument='<%#Eval("company") +"," +Eval("name")%>'

 

 

OnClick="lnkCompany_Click"></asp:LinkButton>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn HeaderText="Companies ID" DataField="companiesid" UniqueName="companiesid" />

 

 

<telerik:GridBoundColumn HeaderText="UC" DataField="adnocsupplier" UniqueName="adnocsupplier" />

 

 

<telerik:GridBoundColumn HeaderText="Name" DataField="name" UniqueName="name" />

 

 

<telerik:GridBoundColumn HeaderText="Type (A,C,M,P,V)" DataField="type (A,C,M,P,V)"

 

 

UniqueName="type" />

 

 

<telerik:GridBoundColumn HeaderText="Status (A,C,M,P,V)" DataField="status (A,C,M,P,V)"

 

 

UniqueName="status (A,C,M,P,V)" />

 

 

<telerik:GridBoundColumn HeaderText="Rating (C,M,V)" DataField="rating (C,M,V)" UniqueName="rating (C,M,V)" />

 

 

<telerik:GridBoundColumn HeaderText="HSE Score" DataField="hsescore" UniqueName="hsescore" />

 

 

<telerik:GridBoundColumn HeaderText="QA Score" DataField="qascore" UniqueName="qascore" />

 

 

<telerik:GridBoundColumn HeaderText="OPCO" DataField="opco" UniqueName="opco" />

 

 

</Columns>

 

 

<CommandItemSettings ShowExportToCsvButton="True" ShowExportToExcelButton="True" />

 

 

</MasterTableView>

 

 

<ExportSettings HideStructureColumns="True" IgnorePaging="True" OpenInNewWindow="True" />

 

 

</telerik:RadGrid>

Hi,

I am trying to Export Radgrid to CSV.. But problem is getting exporting with html tags.. 

Please help me to ignore the html tags on gridboundcolumns and to export only the required data

Soon reply highly appreciated 

 

Daniel
Telerik team
 answered on 18 Jun 2010
1 answer
136 views
Hi

Would it be possible to programatically change which thumbnail appears on the left hand side from a list.

What I'm getting at is this, I have a list of actions some are complete and some are still to do. It would be nice if the list could start with the next to be completed action, but users could scroll left to see those that have already been done.

Andy
Shinu
Top achievements
Rank 2
 answered on 18 Jun 2010
3 answers
171 views
I'm looking to Ajaxify the RadListBox control with the RadAjaxPanel to accomplish the following:
1.  Template both lists utilizing the ItemTemplate tag.
2.  Transfer items from the first list to the second list.
3.  Reorder items in the second list.
4.  Perform code behind databinding... no in-line databinding with the DataBinder.Eval()

After studying the demo examples for drag and drop and templated items, I was able to get everything to work in a non-master/content web page.  But once the markup was placed into a content tag, it no longer continued to work once any item was transfered or re-ordered.  To eliminate "user" error, I copied the demo example for templated items into a master/content scenario and found it failed to work in exactly the same way. http://www.telerik.com/help/aspnet-ajax/listbox-templates-overview.html

I simplified the issue to the following code example.  It no longer has any ItemTemplate or code behind. If this code is placed within a form tag of a new web page without a master page, it works as excepted.  If it is placed in a content section in a web page that does utilize a master page, it does not work.  As soon as an item is transfered, no other action can be performed on either list.

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="800px" Width="800px">
        <telerik:RadListBox ID="RadListBox1" runat="server" TransferToID="RadListBox2"
            Height="600px" Width="400px"
            AllowTransfer="true" AutoPostBackOnTransfer="true"  SelectionMode="Multiple" >
        <Items>
            <telerik:RadListBoxItem Value="1" Text="image1.png" Caption="Stock 1"/>
            <telerik:RadListBoxItem Value="2" Text="image2.png" Caption="Stock 2"/>
            <telerik:RadListBoxItem Value="3" Text="image3.png" Caption="Stock 3"/>
        </Items>
        </telerik:RadListBox>

        <telerik:RadListBox ID="RadListBox2" runat="server" Height="600px" Width="400px" >
        </telerik:RadListBox>
    </telerik:RadAjaxPanel>

Environment Info:
XP sp3
Visual Studio 2010, solution is .net 4.0
IE 8.0
Telerik build: RadControls_for_ASP.NET_AJAX_2010_1_519_dev.msi

Thanks


Yana
Telerik team
 answered on 18 Jun 2010
1 answer
132 views
Hello is there any way to support bbcode in the editor?
Thanks!
Rumen
Telerik team
 answered on 18 Jun 2010
1 answer
54 views
I've got a calendar that has CalendarDayTemplates created dynamically on load and then assigns each one to a SpecialDay in the calendar. Please see below.

            If Not IsPostBack Then
                Dim i as Integer = 0

                For Each d As RadDate In cal.SelectedDates 
                    dvTimespots.RowFilter = "startdate <= #" & d.Date & "# AND enddate >= #" & d.Date & "#"
 
                    Dim cdt As New CalendarDayTemplate(d.Date.Day, dvTimespots.Count & " media item(s)") 
                    Dim dt As New DayTemplate 
                    With dt 
                        .Content = cdt 
                        .ID = i 
                    End With 
                    cal.CalendarDayTemplates.Add(dt) 
 
                    Dim rcd As New RadCalendarDay 
                    With rcd 
                        .Date = d.Date 
                        .TemplateID = i 
                    End With 
 
                    cal.SpecialDays.Add(rcd) 
 
                    i += 1 
                Next
            End If

This works great when the page is not postback, but on any postback I get this error:
System.Exception: Template with ID: 0 not found.

I'm assuming that's because the first special day rendered has a TemplateID of 0, which is not being persisted.

Is this expected functionality? Is there a workaround without re-running the above?



Iana Tsolova
Telerik team
 answered on 18 Jun 2010
0 answers
99 views
Hello Sir,

My appointment is showin  in Scheduler control. But When I Chnge 

ForeignKeyField at run time Then Appointment Not Showing in Scheduler Records Come In Our Dataset ant its bind Successfull bit Does Not Show In Scheduler. Why Please Help Me.

My Source Code :

 

ds = dl.FillDataSet(

CommandType.StoredProcedure, "uspGetAppointments", HashIn);

 

 

if (ds.Tables[0].Rows.Count > 0)

 

{

 

RadScheduler1.SelectedDate = CalApp.SelectedDate;

RadScheduler1.DayStartTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[0].ToString());

 

RadScheduler1.DayEndTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[1].ToString());

 

 

RadScheduler1.MinutesPerRow =

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.TimeLabelRowSpan = 60 /

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.DataKeyField =

"AppointmentId";

 

RadScheduler1.DataStartField =

"FromTime";

 

RadScheduler1.DataEndField =

"ToTime";

 

RadScheduler1.DataSubjectField =

"Subject";

 

RadScheduler1.GroupBy =

"Resource";

 

RadScheduler1.DataDescriptionField =

"StatusColor";

 

 

RadScheduler1.ResourceTypes.Clear();

 

ResourceType rt = new ResourceType("Resource");

 

rt.DataSource = ds.Tables[2];

rt.KeyField =

"ResourceId";

 

 

if (ddlFacility.SelectedValue == "0")

 

{

rt.ForeignKeyField =

"FacilityId";

 

}

 

else

 

 

 

 

 

{

rt.ForeignKeyField =

"DoctorId";

 

}

rt.TextField =

"ResourceName";

 

RadScheduler1.ResourceTypes.Add(rt);

 

RadScheduler1.DataSource = ds.Tables[1];

RadScheduler1.DataBind();

 

Thanks
Chandan

Chandan Kumar
Top achievements
Rank 1
 asked on 18 Jun 2010
3 answers
165 views
I want to display the all appointments in timeline view. As per the support I made a changes to display the 1 year appointments in Timeline view.


<
TimelineView UserSelectable="true" SlotDuration="365" NumberOfSlots="1" 
HeaderDateFormat="yyyy" ColumnHeaderDateFormat="yyyy" /> 

When I change the date (Back Year) from calendar it does not show the past year appointments. I cannot attach the code due to forum restrictions.

Is there any workaround for this? or can I disable the calendar when scheduler view is Timeline

Thanx.

-Deepak
Peter
Telerik team
 answered on 18 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?