Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
323 views
Hi,
i open the radwindow into page without navigaturl. This my code is:
<telerik:RadWindow ID="RadWindowAnteprimaProfile" runat="server" ShowContentDuringLoad="false" Title="Anteprima immagine" Behaviors="None"
Modal="True" Behavior="None" Font-Names="Verdana" Font-Size="Small" IconUrl="/image/iconlogo.png" Width="350px" Height="280px"
MaxHeight="300px" MaxWidth="400px"
ToolTip="Anteprima immagine" VisibleStatusbar="False" Skin="Simple"
ReloadOnShow="True">
<ContentTemplate>
<div class="Divviewimgprifile">
<div class="Divviewimgprifile1">
<table style="width:100%; margin:0px; padding:0px; border:0px">
<tr>
<td style="text-align:center">
<div runat="server" id="imgprofile" class="AnteprimaImgProfile">
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td style="text-align:center; padding-top:10px">
<asp:ImageButton ID="Imgbtnesci_1" runat="server" ImageUrl="~/Image/esci1.png" />
</td>
</tr>
</table>
</div>
</div>
</ContentTemplate>
</telerik:RadWindow>

Now into vb net code i've this code:

    Try
        Dim conString = ConfigurationManager.ConnectionStrings("TrycontactString")
        Dim strConnString As String = conString.ConnectionString
        Using db As New SqlConnection(strConnString)
            db.Open()
            Using sqlcmd As New SqlCommand("Sp_get_imageprofile", db)
                sqlcmd.CommandType = CommandType.StoredProcedure
                sqlcmd.Parameters.AddWithValue("@id", SqlDbType.Int).Value = Session.Item("Idutente")
                Dim _img As String = Replace(sqlcmd.ExecuteScalar, "~", "")
                imgprofile.Attributes("style") = "background-image: url('" + _img + "');"
            End Using
        End Using
    Catch ex As SqlException
        Exit Sub
    Catch ex As Exception
        Exit Sub
    End Try
End If

i would that when i pon the radwindow, start the vb code...How do it?

thanks bye



Marin Bratanov
Telerik team
 answered on 15 Jan 2013
5 answers
82 views
I am having an issue with Safari, it appears that events on my scheduler are not showing on my iPad or my windows machine in safari. My site is:

www.11sBlack.com  on the Schedule page.


Thanks,
Sam
Plamen
Telerik team
 answered on 15 Jan 2013
2 answers
149 views
Hi,

 I have got a radgrid and i am trying to export the grid to excel as ExcelML format.But i have a template column for which the data is biniding from radgrid item data bound event.While exporting i am not getting this template column. I have used he following code to export

rdtg.ExportSettings.IgnorePaging = true;
                rdtg.ExportSettings.FileName = "List";
                rdtg.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML;
                rdtg.ExportSettings.ExportOnlyData = true;
                rdtg.ExportSettings.OpenInNewWindow = true;                
                rdtg.MasterTableView.ExportToExcel();

How can i export the this template column whose data is binding from item data bound event?
deepak
Top achievements
Rank 2
 answered on 15 Jan 2013
10 answers
140 views
How to set the button inside the rotator?
Slav
Telerik team
 answered on 15 Jan 2013
1 answer
106 views
I have a default loading panel set because I want pretty much everything to use it except for one thing. Is there a way to exclude something? Here's a condensed version of what I'm hoping to make work:

<telerik:RadAjaxManager runat="server" DefaultLoadingPanelID="loadingPanel">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="btnLoad">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="rgResults"/>
        <telerik:AjaxUpdatedControl ControlID="lblResults"/>
      </UpdatedControls>
    </telerik:AjaxSetting>
    <telerik:AjaxSetting AjaxControlID="txtIDs">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="rtb1"/>
        <telerik:AjaxUpdatedControl ControlID="rtb2"/>
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

I know I can just leave out a default loading panel and explicitly set a loading panel for the ones I want, like so:

<telerik:AjaxUpdatedControl ControlID="rgResults" LoadingPanelID="loadingPanel"/>
<telerik:AjaxUpdatedControl ControlID="lblResults"/>

But if all but one are going to use the loading panel, it's less wordy to do it the other way.
Maria Ilieva
Telerik team
 answered on 15 Jan 2013
1 answer
73 views
Hi,

I have this scenario:
Two controls (say controlA and controlB), both contain some RadButtons. If a click occurs in controlA, it should update controlB and vice versa. But only case 1 works, case 2 doesn't work correctly.

This is my code:
protected override void OnPreRender(EventArgs e)
      {
         base.OnPreRender(e);
 
         RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
         manager.AjaxSettings.AddAjaxSetting(controlA, controlB, loadingPanel);
         manager.AjaxSettings.AddAjaxSetting(controlB, controlA, loadingPanel);
      }

The second case only works after one click, e.g. the second, third, ... click works correctly and the loading panel will be displayed.
Both controls don't have any conditional controls, all buttons are added in CreateChildControl. EnsureChildControls is called in OnLoad of both controls.

Which of the controls might be erroneous in this case? The control which does the trigger or the control which is updated?
Maria Ilieva
Telerik team
 answered on 15 Jan 2013
3 answers
113 views
Hi there,

In a section of our page, we have three radGrids, each of which control the visibility of a asp:button (for example if rows.count > 0). Now that we are rolling out AJAXified grids across our application, we have reached this page and noticed that there are a number of issues introduced once we apply AJAX on these grids.

We have a function that is called in pageLoad and ItemCreated (for the affected grids) which determines the visibility of the above button. However we have noticed that once the grid is AJAXified, and the button is added as an UpdatedControl of the grid, the visibility of the button is not affected by this function, even if we removed all items in the grid.

However, if I were to reload the page after removing all items in the grid, the button would be hidden as the above visibility function would return a False, but ideally we would like this to be done during the AJAX request of the grid.

Is there something that we are missing here??

Hope you can help

Regards

A.

<telerik:AjaxSetting AjaxControlID="radFScore">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="radFScore" LoadingPanelID="RadAjaxLoadingPanel1" />
    </UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="radFScore">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="btnPreview"/>
    </UpdatedControls>
</telerik:AjaxSetting>

Maria Ilieva
Telerik team
 answered on 15 Jan 2013
1 answer
72 views
I wonder how easy to persist the uploaded files in ASP.NET Session instead of writing them into the temporary folder?

Btw, is it allowed to prevent writing files into the temp folder? 
Peter Filipov
Telerik team
 answered on 15 Jan 2013
5 answers
90 views
I have a treeview and a context menu based on the examples on this website, with some added functionality.

When right clicking on a node and adding a new node, the node is put into edit mode. If I change the name of the newly created node (I set a default value in code behind), the NodeEdit server side event fires, which is what I want.

However, if I do not change the name, the server side event does not fire. This is likely by design. However, in the case where I am creating new nodes, I need that server event to fire anyway.

Is there a way to do this?

Greg
Martin
Top achievements
Rank 1
 answered on 15 Jan 2013
4 answers
104 views
I have a strange problem with recurring events.

I have a recurring event scheduled once a week with no end date.

When I start my application I open the RadScheduler in week view, and the recurring event is shown as it should. But if I go to the next week the event is not shown.

If I then switch to month view the recurring event is shown, but only the one in the week I was in before I switch to month view.
Then, if I switch back to week view, the event is shown for that week, even if it wasn't before.

In my application I also have a RadCalendar, where the dates with appointments are bold. To do this, in the AppointmentDataBound event of the RadScheduler I use the e.Appointment.RecurrenceRule to add the dates to the SpecialDays collection of the RadCalendar. This works fine, so I don't think there is anything wrong with the recurring event itself, just the way it is displayed in the RadScheduler.

The same behavior also happens if I have recurring event scheduled once a day, and also if I vary the number of occurrences, end dates etc

Any ideas?

Regards, Jill-Connie Lorentsen
Plamen
Telerik team
 answered on 15 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?