Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
489 views
We identified a glitch in the RadControls for ASP.NET AJAX Q1 2011 installer, causing an installation interrupt.

The problem happens when the Visual Studio 2010 documentation hasn't already been initialized and the installer is started with the Windows User Account Control turned on.

We are still in a search of a good fix for the problem and in the meantime there are the following two workarounds (posted originally in the Setup failing (2011 Q1) thread, thanks Daryl!):

Workaround1:
  1. Ensure you have the documentation library store set up
    (Visual Studio 2010 -> Help -> Manage Help Settings)
  2. Run the RadControls installer

Workaround2:
  1. Start a Command Prompt as administrator (right-click the command prompt icon and choose "Run as Administrator")
  2. Navigate to the folder where the RadControls for ASP.NET AJAX installer was downloaded
  3. Run the following command:
    msiexec /i [RadControlsInstallationMSIFileName].msi /limev InstallLog.txt

Update:
   Another reason for the documentation deployment to fail was discovered. It is the lack of the Root Certificates (shipped with (KB931125)). Having that, please, check if you have the latest Windows Updates installed (as explained in the MS Help 3 documentation deployment issues blog post.
Please, excuse the inconvenience.

Kind regards,
Erjan Gavalji
Telerik
Andrey
Telerik team
 answered on 13 Oct 2011
2 answers
306 views
Hello
I have a Radgrid in a webform that contain only one combobox in each row. That combo box contain city. It is used to calculate how many kilometers it has between each city. (Like google). I am able to add line dynamicly and remove line too. When I remove line, it's always the last row that I'm taking off. And after, I rebind my datagrid. The thing is, all my combobox before lose there value the user selected. It put back the default value.
How can I keep the values the user selected in others combobox?
Here is my code:
<telerik:RadGrid 
       ID="RadGrid2" 
       Skin="Vista" 
       runat="server" 
       ShowFooter="true" 
       CommandItemStyle-HorizontalAlign="Center" Width="200px">  
                                   
       <MasterTableView 
            ShowFooter="true" 
            CommandItemDisplay="bottom" 
            EditMode="InPlace" >  
            <CommandItemTemplate>
                <asp:LinkButton ID="LinkButton1" Visible="false" CommandName="CalculDistance" Runat="server" CssClass="TexteBlanc16">Calculer</asp:LinkButton>
            </CommandItemTemplate>
            <Columns>                     
                 <telerik:GridTemplateColumn UniqueName="CodePostal" HeaderText="Destinations">  
                        <ItemTemplate>  
                                 <asp:DropDownList ID="LstCodePostal" runat="server"></asp:DropDownList>
                         </ItemTemplate>  
                  </telerik:GridTemplateColumn>  
            </Columns>  
      </MasterTableView>  
</telerik:RadGrid
<asp:Panel ID="Panel1" runat="server">
      <asp:LinkButton ID="LKBtnAjouterDestination" runat="server">Ajouter une destination</asp:LinkButton>
      <asp:LinkButton ID="LKBtnEnleverDestination" runat="server">Enlever une destination</asp:LinkButton>
 </asp:Panel>


Public dt As DataTable 
  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 
      If Not IsPostBack = True Then 
          dt = New DataTable() 
          dt.Columns.Add(New DataColumn("RowNumber", GetType(String))) 
          AjouterLigne(dt) 
      End If 
    
 Private Sub LKBtnAjouterDestination_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LKBtnAjouterDestination.Click 
        Dim countitem As Integer 
        Dim dt As DataTable = DirectCast(ViewState("dt"), DataTable) 
    
        countitem = RadGrid2.Items.Count 
        Dim cpt As Integer = 0 
        For Each Item As GridDataItem In RadGrid2.Items 
    
            Dim Lstcode As DropDownList = DirectCast(Item("CodePostal").FindControl("LstCodePostal"), DropDownList) 
            If Not (Lstcode.Text Is Nothing) And Lstcode.Text <> "" Then 
                liste.Add(Lstcode.Text) 
            End If 
    
        Next 
        ViewState("dt") = AjouterLigne(dt) 
        listcount = liste.Count 
    
        RadGrid2.Rebind() 
    
        While cpt < listcount
            Dim Lstcode As DropDownList = DirectCast(RadGrid2.Items(cpt)("CodePostal").FindControl("LstCodePostal"), DropDownList) 
            Lstcode.Text = liste.Item(cpt) 
            cpt = cpt + 1 
        End While 
    End Sub 
    
    Private Sub LKBtnEnleverDestination_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LKBtnEnleverDestination.Click 
        Dim countitem As Integer 
        Dim dt As DataTable = DirectCast(ViewState("dt"), DataTable) 
    
        countitem = RadGrid2.Items.Count 
    
        ViewState("dt") = EnleverLigne(dt, countitem) 
        listcount = liste.Count 
    
        RadGrid2.Rebind() 
    
    End Sub 
    
    Public Function AjouterLigne(ByVal dt As DataTable) As DataTable 
        ' method to create row  
        Dim dr As DataRow = dt.NewRow() 
        dr("RowNumber") = "" 
        dt.Rows.Add(dr) 
        Return dt 
    End Function 
    
    Public Function EnleverLigne(ByVal dt As DataTable, ByVal IndexDernier As Integer) As DataTable 
        ' method to delete row  
        If IndexDernier > 0 Then 
            dt.Rows(IndexDernier - 1).Delete() 
        End If 
        Return dt 
    End Function 
    
    Private Sub RadGrid2_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles RadGrid2.ColumnCreated 
        If (e.Column.UniqueName = "RowNumber") Then 
            e.Column.Visible = False 
        End If 
    End Sub 
    
    Private Sub RadGrid2_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid2.ItemDataBound 
        Dim cpt As Integer = 0 
        Do While cpt < RadGrid2.Items.Count 
            'Dim Lstcode As DropDownList = DirectCast(Item("CodePostal").FindControl("LstCodePostal"), DropDownList) 
            Dim Lstcode As DropDownList = DirectCast(RadGrid2.Items(cpt)("CodePostal").FindControl("LstCodePostal"), DropDownList) 
            Lstcode.DataSource = DsVilleCodePostal 
            Lstcode.DataTextField = "VILLE" 
            Lstcode.DataValueField = "CODE_POSTAL" 
            Lstcode.DataBind() 
            Lstcode.SelectedValue = "G5Y7R7" 
            cpt = cpt + 1 
        Loop 
    
           
    End Sub 
    
    Private Sub RadGrid2_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid2.NeedDataSource 
        If Not IsPostBack Then 
            dt = AjouterLigne(dt) 
            ' call the method to create row  
            ViewState("dt") = dt 
        End If 
        dt = DirectCast(ViewState("dt"), DataTable) 
        RadGrid2.DataSource = dt 
           
    End Sub 
    
  Private Sub RadGrid2_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid2.PreRender 
        RadGrid2.MasterTableView.RenderColumns(1).Display = False 
    End Sub


Thank you
Myriam
Myriam
Top achievements
Rank 1
 answered on 13 Oct 2011
1 answer
52 views
I looked around on the forums to find a way to close the menu on an item click and found that I could add a handler to the itemclicked event and use send.closer().

Which does the job, but has a side effect.  When I close the menu it now shows when I hover over the menu, which is set to click to open.
However, when I click the menu it goes back to normal and it works fine again...until I click a menu item again.

Then hover is activated again.

any advice?
Javier
Top achievements
Rank 1
 answered on 13 Oct 2011
1 answer
144 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
128 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
144 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
78 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
61 views
am using CSS
font-size8pt;
    color#214013;
    font-weightbold;
    font-familyverdana;
    vertical-aligntop;
    text-decorationnone;
    width165px !important;
    padding-left5px;
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
79 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
57 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?