Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
210 views
I'm working with the RadTreeView, and I am writing to learn if it is possible to dynamically (with C#) set the border of the RadTreeView to Transparent - or width of 0px;

The RadTreeView is dynamically loaded in the C#, and when I try to set the border color | width, etc. properties on the RadTreeView - the changes do not affect the appearance of the RadTreeView;

Any insight is appreciated;  

Best regards - Rob  
Robert
Top achievements
Rank 1
 answered on 13 Oct 2011
4 answers
192 views
Hi,

question is simple:
protected void pageImageEditor_ImageSaving(object sender, ImageEditorSavingEventArgs args)
        {
            // maybe check is not required, but just in case
            if (args.Image != null && args.Image.Image != null)
            {
                // saved modified image clone to session for 'btnSaveImageChangesInternal_Click' usage
                SessionObjects.ImageEditorHelper.TempStorageForEditedProjectContentElementImage = (Image)args.Image.Image.Clone();
            }
 
            args.Cancel = true;
        }


will image resources be properly disposed automatically? As you can see I'm clonning modified image here and saving it to session, this custom property before setting value to session checks if there is object already, if so it calls Dispose on it.

My use case is that I trigger save on server from client side, on OnSaved client event I cause manual postback. This is needed because I need to modify the Viewstate once image is saved. I tried in server side's on saving, but Viewstate was reverting back, so this workaround was done.

Client side:
function imageEditorOnSaved(sender, e) {
            $("#<%= btnSaveImageChangesInternal.ClientID %>").click();
        }
 
        function saveChangesInImageEditor()
        {
            var imEditor = $find("<%= pageImageEditor.ClientID %>");
            imEditor.saveImageOnServer("<%= Guid.NewGuid().ToString() %>", true);
        }

in button's onclick server handler I pull image from session and save it with preprocessing I need, then remove session object.

Same applies to pageImageEditor_ImageLoading where this image is set:
protected void pageImageEditor_ImageLoading(object sender, ImageEditorLoadingEventArgs args)
        {
..
....
......
using (EditableImage image = new EditableImage(imgPath))
                {
                    args.Image = image.Clone();
                    args.Cancel = true;
                }
}

as soon as on that view I have image editing functionality for all pages, I force ImageEditor to load new image for page by:
pageImageEditor.ImageUrl = string.Empty;
otherwise it uses previously displayed image.

So does the handler properly disposes it's resources in my use cases?
Thank you!
Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 13 Oct 2011
3 answers
198 views
Hi,

I have read various posts related to this topic but not found the exact solution to what I am looking for.

I have a parent page which has a User Control on it. The usercontrol has a Radgrid which has a linkbutton on it. The linkbutton is used to open a Radwindow where I edit the details of the record. When I click on a button on the Radwindow, I want the Radwindow to close and refresh the grid.

Note that the Grid is in a user control and not a page.

If i use

GetRadWindow().BrowserWindow.refreshGrid(args);

it returns a error saying "BrowserWindow is null or not an object".

Please help
Stuart Hemming
Top achievements
Rank 2
 answered on 13 Oct 2011
1 answer
135 views
Hi, I'm exploring Telerik for asp.net but I can't find any documentation of server side code? Is there a Java API/MSDN like api where I can see all the classed and what each method call does and what it's arguments are?

I've searched on this site:
http://www.telerik.com/help/aspnet-ajax/introduction.html

But I can't find the server side documentation where it shows objects with its methods?
Stuart Hemming
Top achievements
Rank 2
 answered on 13 Oct 2011
1 answer
90 views
am using CSS
font-size: 8pt;
    color: #214013;
    font-weight: bold;
    font-family: verdana;
    vertical-align: top;
    text-decoration: none;
    width: 165px !important;
    padding-left: 5px;
for calender fields but calender width is working in IE8 but in IE9 it showing long not working
can give me suggestion how to fix this


thanks
Galin
Telerik team
 answered on 13 Oct 2011
1 answer
123 views
I have a radscheduler that uses recurrence.

I am using the advanced edit template - modal to display the title, description and some related data on double click.

The pop-up display works properly when the item is a unique (non recurrance) item.

When the item is a recurrance,  and it has been edited,  when I double click on the item (bring up the advanced edit window) the data being displayed is the subject and description from the original (master) recurrance. 

For example:
47 Test Beginning 10/10/2011 8:00:00 AM 10/10/2011 8:15:00 AM The Test Beginning Description. NULL DTSTART:20111010T080000Z
DTEND:20111010T081500Z
RRULE:FREQ=HOURLY;COUNT=6;INTERVAL=1
EXDATE:20111010T090000Z,20111010T100000Z
1 NULL
48 Test Beginning 2 10/10/2011 9:00:00 AM 10/10/2011 9:15:00 AM The Test Beginning Description. 2 47 NULL 1 NULL

Test Beginning is the original.  Test beginning was created via the recurrance,  and then edited to change the subject and description field data.

When I double click on 'Test Beginning' in any view,  it brings up my advanced template :

 

 

<AdvancedForm Modal="true" />

 

 

 

<AdvancedEditTemplate>

 

 

 

<div class="rsAdvancedEdit" style="position: relative; border: 1px solid black; background-color: white;

 

 

 

 

height: auto;">

 

 

 

<div class="rsAdvTitle" style="background-color: White; height: auto; padding:10px;">

 

 

 

<h3><%# eval("subject") %></h3>

 

 

 

<asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"

 

 

 

CommandName="Cancel" CausesValidation="false" >

 

 

 

 

</asp:LinkButton>

 

 

 

<div style="display: block; float: left; width: 320px; height: 400px;

 

 

 

 

background-color: transparent; padding: 10px;">

 

 

 

<b>Time slot specific information:</b><br />

 

<%

 

# Eval("description") %>

 

 

 

</div>

 

 

 

</div>

 

 

 

</AdvancedEditTemplate>

 


On the original,  it shows T'est Beginning' as the subject and 'The Test Beginning Description' as the description.
When I double click (bring up advanced edit template) on Test Beginning 2 (it displays test beginning 2 in all views for appointmentTemplate correctly)  the advanced edit shows the ORIGINAL recurrance items subject and description.

In this case,  'Test Beginning' and 'The Test Beginning description.' : NOTE: It shoudl have had a 2 at the end.

This does this in every instance where I have used the advancedEditTemplate to display the information. 

Somehow it is using the recordset subject/description for the master and not the one that was clicked.

If this is something I have done incorrectly please point me in the right direction.

NOTE:  entire scheduler markup:

 

 

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="description"

 

 

 

DataEndField="endTime" DataKeyField="id" DataRecurrenceField="recData" DataRecurrenceParentKeyField="recurranceParent"

 

 

 

DataSourceID="SqlDataSource1" DataStartField="startTime" DataSubjectField="subject"

 

 

 

AllowDelete="False" AllowInsert="False" EnableDescriptionField="True"

 

 

 

EnableRecurrenceSupport="False" OverflowBehavior="Expand" OnClientRecurrenceActionDialogShowing="OnClientRecurrenceActionDialogShowing"

 

 

 

OnClientAppointmentMoveStart="OnClientAppointmentMoveStart" OnClientAppointmentResizeStart="OnClientAppointmentResizeStart"

 

 

 

EnableCustomAttributeEditing="True"

 

 

 

CustomAttributeNames="classOverviewId,cssColor"

 

 

 

SelectedView="MonthView" >

 

 

 

<AdvancedForm Modal="true" />

 

 

 

<AdvancedEditTemplate>

 

 

 

<div class="rsAdvancedEdit" style="position: relative; border: 1px solid black; background-color: white;

 

 

 

 

height: auto;">

 

 

 

<div class="rsAdvTitle" style="background-color: White; height: auto; padding:10px;">

 

 

 

<h3><%# eval("subject") %></h3>

 

 

 

<asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"

 

 

 

CommandName="Cancel" CausesValidation="false" >

 

 

 

 

</asp:LinkButton>

 

 

 

<div style="display: block; float: left; width: 320px; height: 400px;

 

 

 

 

background-color: transparent; padding: 10px;">

 

 

 

<b>Time slot specific information:</b><br />

 

<%

 

# Eval("description") %>

 

 

 

</div>

 

 

 

</div>

 

 

 

</AdvancedEditTemplate>

 

 

 

</telerik:RadScheduler>

 



Plamen
Telerik team
 answered on 13 Oct 2011
1 answer
81 views
I'm trying to feed live data from my sql server to a radgrid. 

I'm using VWD2010 Express and I created a Web Service and then referenced that service in my project.  However, the project will not build because of the attached error. 

could not find sgen.exe  using the sdktoolspath

If this problem can not be fixed, is there another way that I can stream live data from my sql server to the radgrid.  I want to be able to see all records even as records are added from many different sources without having to refresh.  Ideally, as quickly as displayed in this http://demos.telerik.com/aspnet-ajax/grid/examples/client/livedata/defaultcs.aspx example.
Phillip
Top achievements
Rank 1
 answered on 13 Oct 2011
1 answer
86 views
Hello,

How to I have two tabs and when you click on a button on 1 tab / tab 2 it updates the tab and displays an auto update ajax image. Also the update of the tab would happen in a ajax way so that the pages doesn't re load ?

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

</telerik:RadScriptManager>

 

 

 

<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1">

 

</telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" DefaultLoadingPanelID="LoadingPanel1">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadTabStrip1">

 

 

<UpdatedControls>

 

<telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />

 

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />

 

</UpdatedControls>

 

</telerik:AjaxSetting>

 

<telerik:AjaxSetting AjaxControlID="RadMultiPage1">

 

<UpdatedControls>

 

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />

 

</UpdatedControls>

 

</telerik:AjaxSetting>

 

</AjaxSettings>

 

</telerik:RadAjaxManager>

 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Height="24px" SelectedIndex="0"

 

Width="335px" MultiPageID="RadMultiPage1">

 

<Tabs>

 

<telerik:RadTab runat="server" Text="Hotel Only" Selected="True" >

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Flight & Hotel">

 

</telerik:RadTab>

 

</Tabs>

 

</telerik:RadTabStrip>

 

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">

 

<telerik:RadPageView ID="RadPageView1" runat="server">

tab1

 

</telerik:RadPageView>

 

<telerik:RadPageView ID="RadPageView2" runat="server">

tab2

 

<asp:Button ID="Button2" runat="server" Text="Button" />

 

</telerik:RadPageView>

 

</telerik:RadMultiPage>



Iana Tsolova
Telerik team
 answered on 13 Oct 2011
9 answers
171 views
I'm using datetimepicker in xmlHttppanel.When i select date from datetimepicker i will not closing and also not allowing for another actions.
my url:http://localhost:2264/ProTrak/Default.aspx#. A '#' is adding after selecting the datetimepicker.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
   <AjaxSettings>
      <telerik:AjaxSetting AjaxControlID="RadTimePicker1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTimePicker1" />
                    </UpdatedControls>
             </telerik:AjaxSetting>
     </AjaxSettings>
</telerik:RadAjaxManager>
  <telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" EnableClientScriptEvaluation="true"
                                    runat="server" OnServiceRequest="XmlHttpPanel_ServiceRequest" RenderMode="Block"
                                    Width="750px">
                 <table id="tblControl" runat="server" style="width: 750px;">
                     <tr>
                       <td>
                          <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server" Culture="en-US" RegisterWithScriptManager="false" >                                            <Calendar ID="Calendar2" runat="server" EnableKeyboardNavigation="false" RegisterWithScriptManager="false">
                                   </Calendar>
                        </telerik:RadDateTimePicker>
                      </td>
                    </tr>
                  </table>
</telerik:RadXmlHttpPanel>


Tirumalesh
Top achievements
Rank 1
 answered on 13 Oct 2011
0 answers
117 views

Dear TELERIK,
I'm using custom user control as AdvancedEditTemplate in RadScheduler.

This user control has COMMIT and CANCEL buttons - both server side ones, with different command names: "Update" and "Cancel".

But I'm also planning to add some server side data validation in the user controls's code behind.

Imagine the COMMIT button had been pressed and then my server side validation passed UNsuccessfully.
Is it possible to avoid closing of the AdvancedEditTemplate pop-up, in the same way as if CANCEL button was pressed?

Many thanks!

- Stepan.
Stepan
Top achievements
Rank 1
 asked on 13 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?