Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
125 views
I have an Edit Command Template which is a ascx file.

The problem that I am having is setting up the control.  Usually I use the !Page.IsPostBack to know when I set my form values.

But since I have a RadGrid with in a RadTree, when I fire the Edit command, it is true.  How can I tell when the edit command was clicked/executed?

Thanks
John
Shinu
Top achievements
Rank 2
 answered on 15 Jan 2013
5 answers
259 views
Hi guys, I cant get the databinding to work, either on webservice or WCF. I have tried binding to both local webservice in same project and deployed webservice on remote server (both functioning), but when querying for data all I get is: "The server method 'GetKeywordList' failed"
(GetKeywordList is the name of the webmethod / operationcontract)

Any good advice?
Best regards,
Kim
Cat Cheshire
Top achievements
Rank 1
 answered on 15 Jan 2013
6 answers
329 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
84 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
150 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
142 views
How to set the button inside the rotator?
Slav
Telerik team
 answered on 15 Jan 2013
1 answer
111 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
76 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
115 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
74 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?