Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
275 views
Hi guys,

I wan't to load multiple pages into a tabstrip preferably with load-on-demand functionality. I've read the TabStrip / Load on Demand RadPageView which describe how to load user controls, but is it possible to add an actual Page instead? The reason is that my wish is to have my website divided into separate files for increased clarity in each single file, and still have javascript possibilities. How should I do?

Thanks in advance! :o)
Ahrensberg
Top achievements
Rank 1
 answered on 02 Nov 2009
7 answers
253 views
Hello-
I have been trying to use the following example to help me build some new functions into my app but have been running into some issues.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

Are there any new demos/examples showing how to integrate the Upload control with a RadGrid that is bound to either a LinqDatasource or an EFDatasource?

My app continues to blow "Object of type 'System.Byte[]' cannot be converted to type 'System.Data.Linq.Binary'" but all fields/mappings look correct.

Thanks
MJD



ephillipe
Top achievements
Rank 2
 answered on 02 Nov 2009
1 answer
162 views
I'm trying to create a link column that displays text from the db.  It's currently a GridBoundColumn and it displays the text in the Status db field fine, but I want it to be a link so I tried this:
gridColumn = new GridButtonColumn();  
(gridColumn as GridButtonColumn).ButtonType = GridButtonColumnType.LinkButton;  
(gridColumn as GridButtonColumn).DataTextField = "Status";  
(gridColumn as GridButtonColumn).DataTextFormatString = "{0}";  
 
But the column shows this now 'System.Data.DataRowView' on every line instead of something like 'Accepted'.
What am I missing from setting up a Link column?
Status is defined as nvarchar(50) in the db.
Princy
Top achievements
Rank 2
 answered on 02 Nov 2009
1 answer
122 views
Hi All,

I have page with some grid and and some controls.

I have a RadDateTimePicker also which works fine in IE and it is not working in Mozilla Firefox.

<fieldset style="width:42%;" >  
            <table border="0"><tr><td align="left" >  
            <asp:Label ID="Label15" runat="server" Text="Meeting Date And Time :"></asp:Label>  
            </td>  
            <td>  
                <telerik:RadDateTimePicker ID="RadDTPMeeting" runat="server">  
                </telerik:RadDateTimePicker>  
            </td>  
            </tr><tr>  
            <td>  
            <asp:Label ID="Label16" runat="server" Text="Actual Meeting Date And Time :"></asp:Label>  
            </td>  
            <td>  
            <telerik:RadDateTimePicker ID="RadDTPActMet" runat="server">  
                </telerik:RadDateTimePicker>  
            </td>  
              
            </tr></table>  
            </fieldset>  

Is there any option to make it work in Mozilla also.

Thank You

-Anto
Shinu
Top achievements
Rank 2
 answered on 02 Nov 2009
3 answers
164 views
Hi Guys,
I have an ascx control (DNN module) with the RadGrid, RadAjaxManager and ASP.NET Timer controls.
The grid contains datetime column and edit form with the RadTimePicker control.

All looks great until I set the grid as a control to be updated by the ajax manager.
In this case, when the edit form is opened, there's no way to open the timer picker view. It doesn't appear by some reason.

I'm just wondering how to get it working. You help is highly appreciated.

Code snippet:

<asp:Panel ID="Panel1" runat="server">
    <asp:Timer ID="tmrActiveCampaigns" runat="server" Interval="10000" OnTick="Timer1_Tick" Enabled="false" />
</asp:Panel>

<div>
    <div>
        <rad:RadAjaxManager ID="ajaxManager" runat="server">
            <AjaxSettings>
                <rad:AjaxSetting AjaxControlID="ajaxManager">
                    <UpdatedControls>
                        <rad:AjaxUpdatedControl ControlID="tmrActiveCampaigns" LoadingPanelID="AjaxLoadingPanel" />
                    </UpdatedControls>
                </rad:AjaxSetting>
            </AjaxSettings>
        </rad:RadAjaxManager>

        ...
       
        <rad:RadGrid ID="grdActiveCampaigns"  runat="server" ... >
            <MasterTableView DataKeyNames="Id,TriggerId" GridLines="None" Width="100%" >
                <Columns>
                    <rad:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditButton" />
                    <rad:GridDateTimeColumn DataField="TriggerDate" HeaderText="Scheduled Date" UniqueName="TriggerDate" ItemStyle-Wrap="false" />
                </Columns>
                <EditFormSettings EditFormType="Template">
                    <FormTemplate>
                        <table id="Table4" cellspacing="1" cellpadding="1" width="100%" border="0" class="module">
                            <tr>
                                <td align="right">End Time:&nbsp;&nbsp;</td>
                                <td><rad:RadTimePicker Skin="Telerik" runat="server" ID="TriggerDate" /></td>
                            </tr>
                        </table>
                        <br /><br />
                    </FormTemplate>
                </EditFormSettings>
            </MasterTableView>
        </rad:RadGrid>
    </div>
</div>


Thank you for you help!



Shinu
Top achievements
Rank 2
 answered on 02 Nov 2009
1 answer
100 views
I have a Grid with a group by; is it possible to show the group header without showing the column name?

Here's what I mean; I have a column called CATEGORY. When I use the group by, I see;

Category: Some category
   [datacol 1,...datacol n]
   [datacol 1,...datacol n]
Category: Some other category
   [datacol 1,...datacol n]

What I want to do is show the column value without the columnname, i.e. "Some Category" by itself without the leading text. I tried setting the headertext to nothing, but the colon still remains.

Is this possible? Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 02 Nov 2009
1 answer
291 views
Hi;
I have a problem with RadAjaxManager and RadUpload.
I need to add an radiobutton check to a form that developed uses telerik functions such as RadTabStrip, RadMultiPage and RadUpload. I want to use RadAjaxManager.UpDatedControls instead of autopostback of radiobuttons to make a textbox invisible before clicking "upload" button and upload a excel or csv file.
But by the time AjaxUpdatedControls works, RadUpload stops working and I can not upload my file to the system. When I disabled the AjaxUpdatedControls and use radiobutton autopostback I can load the file.
Here is a part of my code. Please help and show my mistakes.

<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %> 
<%@ Register Assembly="odc.Web" Namespace="odc.Web.Controls" TagPrefix="odc" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
 
<asp:Content ID="Content1" ContentPlaceHolderID="phMain" runat="Server">  
      
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="excelRadioButton">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pnlDosyaBilgileri" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="csvRadioButton">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pnlDosyaBilgileri" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
<div runat="server" id="divExcelLoad">  
                                <asp:Panel ID="pnlDosyaBilgileri" runat="server" SkinID="webPanel" GroupingText="Dosya Bilgileri">  
                                    <table border="0" cellpadding="3" cellspacing="0" width="100%">  
                                        <tr> 
                                            <td class="strB">  
                                                <asp:Literal ID="Literal1" runat="server" Text="Please choose the file type:"/>  
                                            </td> 
                                            <td>                                              
                                                <asp:RadioButton ID="excelRadioButton" runat="server" GroupName="excelCsvRadio"   
                                                    SkinID="webRadio" Text="Excel Dosyası" Checked="true" AutoPostBack="True" oncheckedchanged="excelRadioButton_CheckedChanged"/>  
                                                <asp:RadioButton ID="csvRadioButton" runat="server" GroupName="excelCsvRadio"   
                                                    SkinID="webRadio" Text="Csv Dosyası" AutoPostBack="True" oncheckedchanged="csvRadioButton_CheckedChanged"   
                                                     /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td class="strB">  
                                                <asp:Literal ID="lblSelectExcel" runat="server" Text="Dosyayı Seçiniz:"/>  
                                            </td> 
                                            <td> 
                                                <telerik:RadUpload ID="RadUpload1" Skin="Vista" runat="server" OverwriteExistingFiles="true" InitialFileInputsCount="1" MaxFileInputsCount="1" TargetFolder="~/Temp" ControlObjectsVisibility="None" /> 
                                            </td> 
                                            <td> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td colspan="3" align="center">  
                                                <telerik:RadProgressManager ID="Radprogressmanager1" runat="server" /> 
                                                <telerik:RadProgressArea ID="progressArea1" runat="server" ProgressIndicators="FilesCountBar,FilesCountPercent,TransferSpeed" DisplayCancelButton="true" /> 
                                            </td> 
                                        </tr> 
 
                                        <tr> 
                                            <td class="strB">  
                                                <asp:Literal ID="lblWorkSheetName" runat="server" Text="Worksheet Name:" /> 
                                              
                                            </td> 
                                            <td> 
                                                <asp:TextBox ID="txtSheetName" SkinID="webTextbox" runat="server" Text="Sheet1" ></asp:TextBox>&nbsp;<asp:RequiredFieldValidator ID="rfvSheetName" runat="server" ErrorMessage="Please enter the worksheet name." ControlToValidate="txtSheetName"><img alt="" src="../Images/dikkat.gif"/></asp:RequiredFieldValidator> 
                                            </td> 
                                            <td valign="bottom" align="left">  
                                                <asp:Button ID="btnPreviousLoad" OnClick="Geri" runat="server" Text="Back" SkinID="webButtonM" /> 
                                                <asp:Button ID="btnLoadExcel" runat="server" SkinID="webButtonM" Text="Upload" OnClick="btnLoadExcel_Click" /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </asp:Panel> 
                            </div> 
Genady Sergeev
Telerik team
 answered on 02 Nov 2009
1 answer
128 views
Hi, my grid has a CommandName="DeleteSelected".
On RadGrid1_ItemCommand event
    If (e.CommandName = "DeleteSelected") Then   
                If Not (RadGrid1.SelectedIndexes.Count = 0) Then 
 
                    Dim myItem As GridDataItem 
 
                    For Each myItem In RadGrid1.SelectedItems                     
                        e.Item.OwnerTableView.PerformDelete(myItem, True) 
                    Next 
 
                    e.Item.OwnerTableView.Rebind() 
 
                End If 
 
            End If

it works fine, delete the selected rows.
Now my goal is to hide/show things depending on how may row the grid has (if 0.. else...)
I use ths: RadGrid1.MasterTableView.Items.Count
but that one returns the number of rows before the delete task.
I tried to put it on RadGrid1_ItemDeleted event but still not getting the new number of rows.

What event? What way?

Thanks



Shinu
Top achievements
Rank 2
 answered on 02 Nov 2009
2 answers
140 views
Hello, i got a problem make Upload module work.

"RadUpload Ajax Callback Error: source url was not found"

i followed that link to put what's normally needed in web.config by RadUploadProgress but still no changes :

http://www.telerik.com/help/aspnet-ajax/upload-configuration.html

Here's my web.config system.webServer section (using local Visual Studio webserver, which must be IIS7)





<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <!-- *******  Register the RadUploadModule for IIS 7  ****** -->
      <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <!-- *******  Register the RadUploadProgressHandler for IIS 7  ****** -->
      <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />
    </handlers>
  </system.webServer>

Also, cause i'm using forms, i have put a location section with this :

<location path="Telerik.RadUploadProgressHandler.ashx">
 
<system.web>
      
<authorization>
         
<allow users="*"/>
      
</authorization >
 
</system.web>
</
location>

and i changed my C:\Windows\System32\inetsrv\config\applicationHost.config by switching to allow that line :

<section name="requestFiltering" overrideModeDefault="Allow" />

still getting error, Thanks for help


Genady Sergeev
Telerik team
 answered on 02 Nov 2009
6 answers
249 views
I have a radPanelBar called rpbAgenda.

I have a user control located within this panel bar called abConsent. This user control has several properties that I have exposed such as idCouncilMtgDate, Title, etc that I can set programmatically.

Below is my HTML code for the user control:

<telerik:RadPanelItem value="Consent" Text="Consent Agenda - Action Items" Font-Bold="True" BorderStyle="None"> 
                <Items> 
                    <telerik:RadPanelItem> 
                        <ItemTemplate> 
                            <uc1:ab ID="abConsent1" runat="server" Visible="true" /> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 


In a normal occurrence, I can set the properties of this user control by the following:
abConsent1.idCouncilMeetingDate = rcmbCouncilMtgDate.SelectedValue 
        abConsent1.isConsentAgenda = "Yes" 
        abConsent1.isOrdinance = "No" 
        abConsent1.isApproved = "Yes" 
        abConsent1.idCommittee = "%" 
        abConsent1.title = "<b>Other Approvals</b>" 

However, since this user control is nested within a panelbar, I am unable to access it. I've tried the following but I was unsuccessful:

Dim abconsent1 As ab = rpbAgenda.FindControl("abconsent1") 

How can I access the user control and its corresponding exposed properties? Thanks. I've taken a look at the samples but seem to have run into a dead end no matter what.


PJ Rodriguez
Top achievements
Rank 1
 answered on 02 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?