Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
204 views
I have 4 tabs with 4 corresponding pageviews.  Under certain conditions, I set tab number 2 to visible = false.  This causes the contents of pageview 2 to appear in tab 3 (and the contents of pageview 3 to appear in tab 4).  However, if I set the visible property of pageview 2 to false,  it simply takes away the contents of tab 3.  So basically, how do I get rid of tab 2 and it's pageview at the same time?

Thanks for you help,
Lisa
Chris
Top achievements
Rank 2
 answered on 08 May 2009
0 answers
96 views

 

Hello,

I have an asp:UpdatePanel and I want to register an AsyncPostBackTrigger for a particular button on a RadToolBar.  Not for the entire toolbar.  How do I do this?

Regards.

 

Francisco
Top achievements
Rank 1
 asked on 08 May 2009
4 answers
214 views
Hi,

We are trying to enable/disable a datePicker control.  But unfortunately the following commands don't exist;

$find('control').enable();
$find('control').disable();

We have worked out from a previous thread that we can enable/disable the inputbox part using;

$find('control').get_dateInput().enable();
$find('control').get_dateInput().disable();
How can we enable/disable the popup calendar?  In the past we used something like;

control.PopupButton.onclick = null;
control.PopupButton.onclick = function(){control.TogglePopup();return false;};
Have tried the below with no success;

$find('control').get_popupButton().onclick = null;
Thanks
Tom Jaspering
Top achievements
Rank 1
 answered on 08 May 2009
2 answers
253 views
The RadPanel is not binding the data to my sqlDataSource. I keep getting "field cannot be NULL" when trying to insert the data to the db.

Here is my part of my code:
<asp:SqlDataSource ID="sqlDSProjInfo" runat="server"  
    ConnectionString="<%$ ConnectionStrings:JOBTRAKConnectionString %>"  
    InsertCommand="INSERT INTO [CASE_PROJ_INFO] ([JOB_ID], [CASE_NAME], [MEDIA], [MEDIA_LOC], [MEDIA_AVAIL], [MEDIA_SIZE]) VALUES (@JOB_ID, @CASE_NAME, @MEDIA, @MEDIA_LOC, @MEDIA_AVAIL, @MEDIA_SIZE)"  
    SelectCommand="SELECT * FROM [CASE_PROJ_INFO] WHERE [JOB_ID] = @JOB_ID" 
    UpdateCommand="UPDATE [CASE_PROJ_INFO] SET [CASE_NAME] = @CASE_NAME, [MEDIA] = @MEDIA, [MEDIA_LOC] = @MEDIA_LOC, [MEDIA_AVAIL] = @MEDIA_AVAIL, [MEDIA_SIZE] = @MEDIA_SIZE WHERE [JOB_ID] = @JOB_ID">
    <UpdateParameters> 
        <asp:SessionParameter Name="CASE_NAME" SessionField="CASE_NAME" Type="String" /> 
        <asp:SessionParameter Name="MEDIA" SessionField="MEDIA" Type="String" /> 
        <asp:SessionParameter Name="MEDIA_LOC" SessionField="MEDIA_LOC" Type="String" /> 
        <asp:SessionParameter Name="MEDIA_AVAIL" SessionField="MEDIA_AVAIL" Type="String" /> 
        <asp:SessionParameter Name="MEDIA_SIZE" SessionField="MEDIA_SIZE" Type="String" /> 
        <asp:SessionParameter Name="JOB_ID" SessionField="JOB_ID" Type="String" /> 
    </UpdateParameters> 
    <InsertParameters> 
        <asp:Parameter Name="JOB_ID" Type="String" /> 
        <asp:SessionParameter Name="CASE_NAME" SessionField="CASE_NAME" Type="String" /> 
        <asp:SessionParameter Name="MEDIA" SessionField="MEDIA" Type="String" /> 
        <asp:SessionParameter Name="MEDIA_LOC" SessionField="MEDIA_LOC" Type="String" /> 
        <asp:SessionParameter Name="MEDIA_AVAIL" SessionField="MEDIA_AVAIL" Type="String" /> 
        <asp:SessionParameter Name="MEDIA_SIZE" SessionField="MEDIA_SIZE" Type="String" /> 
    </InsertParameters> 
    <SelectParameters> 
        <asp:Parameter Name="JOB_ID" Type="String" /> 
    </SelectParameters> 
</asp:SqlDataSource> 
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="554px" Width="742px"> 
    <telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Height="100%" DataSourceID="sqlDSProjInfo" 
        Width="100%" AllowCollapseAllItems="True" ExpandMode="SingleExpandedItem"> 
        <CollapseAnimation Duration="100" Type="None" /> 
        <Items> 
            <telerik:RadPanelItem Expanded="true" Text="Project Information" runat="server"> 
                <Items> 
                    <telerik:RadPanelItem runat="server" Value="Project Information"> 
                        <ItemTemplate> 
                            <div> 
                                <p> 
                                    <table style="width: 100%"> 
                                        <tr> 
                                            <td> 
                                                <asp:Label ID="lblCaseName" runat="server" Text="Case Name" /> 
                                            </td> 
                                            <td colspan="3"> 
                                                <asp:TextBox ID="CASE_NAME" runat="server" Text='<%# Eval("CASE_NAME") %>' /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <asp:Label ID="lblMedia" runat="server" Text="Media:" /> 
                                            </td> 
                                            <td> 
                                                <asp:TextBox ID="MEDIA" runat="server" Text='<%# Eval("MEDIA") %>' /> 
                                            </td> 
                                            <td> 
                                                <asp:Label ID="lblMediaAvail" runat="server" Text="Media Availability:" /> 
                                            </td> 
                                            <td> 
                                                <asp:TextBox ID="MEDIA_AVAIL" runat="server" Text='<%# Eval("MEDIA_AVAIL") %>' /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <asp:Label ID="lblMediaLoc" runat="server" Text="Media Location:" /> 
                                            </td> 
                                            <td> 
                                                <asp:TextBox ID="MEDIA_LOC" runat="server" Text='<%# Eval("MEDIA_LOC") %>' /> 
                                            </td> 
                                            <td> 
                                                <asp:Label ID="lblMediaSize" runat="server" Text="Media Size (GB):" /> 
                                            </td> 
                                            <td> 
                                                <asp:TextBox ID="MEDIA_SIZE" runat="server" Text='<%# Eval("MEDIA_SIZE") %>' /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </p> 
                            </div> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
        <ExpandAnimation Duration="100" Type="None" /> 
    </telerik:RadPanelBar> 
 
 
 

Thanks,

Gunjan
Gunjan
Top achievements
Rank 1
 answered on 08 May 2009
1 answer
60 views
I am trying to run a customized version of the LinkManager dialog from my editor.  Below is my implementation of the editor in my HTML:

<tlk:RadEditor runat="server" ID="tlkEditor" ToolsFile="~/radcontrols/editor/ToolsFile.xml" ExternalDialogsPath="~/radcontrols/editor/dialogs/" Skin="Office2007" Width="600" EditModes="Design" OnClientLoad="OnClientLoad"> 
... 
</tlk:RadEditor> 

When I click on the LinkManager button in the toolbar the dialog comes up but with the following error message:

Parser Error Message: Unknown server tag 'tools:StandardButton'.

This error occurs in LinkManager.ascx, line 507:

 
<tools:StandardButton runat="server" id="DocumentManager" Name="DocumentManager"> 
</tools:StandardButton> 

The "tools" prefix is registered as:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI.Editor" TagPrefix="tools" %> 

However, after using the object browser and reflector, I can find no "StandardButton" implementation in the Telerik.Web.UI dll, much less in the Telerik.Web.UI.Editor namespace.  Am I missing a reference somewhere or is the StandardButton control depreciated in favor of something else?

Thanks very much for the help.
Chris Thompson
Top achievements
Rank 1
 answered on 08 May 2009
11 answers
397 views
Hello i am Faisal and i am facing some issues while loading usercontrols.
In my application i've successfully loaded usercontrols through AJAX(telerik ofcourse) and now my issue is i want to load a usercontrol multiple times.
For example: There is a usercontrol named "detail.ascx" and in this control there are only labels nothing else which is showing customer name, address, balance etc and if i click button the detail.ascx should be loaded 3 times and sometime 4 times (it depends) so please tell me how to load usercontrol multiple time so that i can view detail.ascx multiple times in a single page. Please let me know if it is possible in AJAX.

Thanks :)
Faisal Rehman
TonyG
Top achievements
Rank 1
 answered on 08 May 2009
5 answers
276 views
Hello,

I try to create an DetailTable by Code.
My Code:

GridRelationFields grf = new GridRelationFields(); 
            grf.DetailKeyField = "ris_per_id"; 
            grf.MasterKeyField = "per_id"; 
 
            GridTableView gridRis = new GridTableView(RadGrid1); 
            gridRis.DataKeyNames = new string[] { "ris_id" }; 
            gridRis.Name = "tblRis"; 
            gridRis.ParentTableRelation.Add(grf); 
            gridRis.EnableViewState = true; 
            gridRis.HierarchyDefaultExpanded = true; 
             
 
            GridBoundColumn colDetRis = new GridBoundColumn(); 
            colDetRis.UniqueName = "ris_id"; 
            colDetRis.DataField = "ris_id"; 
            colDetRis.HeaderText = "ID"; 
            colDetRis.Visible = false; 
            colDetRis.ReadOnly = true; 
            gridRis.Columns.Add(colDetRis); 
 
            GridButtonColumn edit = new GridButtonColumn(); 
            edit.ButtonType = GridButtonColumnType.ImageButton; 
            edit.CommandArgument = "edit"; 
            edit.CommandName = "detailaction"; 
            edit.ImageUrl = "../images/edit.png"; 
            gridRis.Columns.Add(edit); 
 
            RadGrid1.MasterTableView.DataKeyNames = new string[] { "per_id" }; 
            RadGrid1.MasterTableView.DetailTables.Add(gridRis); 
            gridRis.Rebind(); 

Databinding:
protected void RadGrid1_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e) 
        { 
            if (!e.IsFromDetailTable) 
                RadGrid1.DataSource = person.Data.DefaultView; 
 
            RadGrid1.MasterTableView.DetailTables[0].DataSource = ris.Data.DefaultView; // [0] = ris 
        } 

After Postback (any Postback - also any outside of the Grid) I get the following error:
[ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein. Parametername: index] System.Collections.ArrayList.get_Item(Int32 index) +7483656 Telerik.WebControls.GridColumnCollection.System.Web.UI.IStateManager.LoadViewState(Object savedState) +199 Telerik.WebControls.GridTableView.LoadStructureState(Object SavedStructure) +229 Telerik.WebControls.RadGrid.LoadTableViewStructure(IEnumerator stateEnumerator, GridTableView tableView) +101 Telerik.WebControls.RadGrid.LoadTableViewStructure(IEnumerator stateEnumerator, GridTableView tableView) +358 Telerik.WebControls.RadGrid.LoadViewState(Object savedStateObject) +276 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +183 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221 System.Web.UI.Page.LoadAllState() +312 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1661

It sounds like the DetailTable looses its columns.
The DetailTable Creation I placed into the Page_Load (With or without PostBack).

Do I miss something to do?

Regards,
Daniel
Telerik team
 answered on 08 May 2009
5 answers
163 views
Hi,

With jQuery already built in, I am planning to use the jQuery tabs functionality.

My scenario are:

All three tabs contains two asp.net controls each.

All six controls a defined inside RadInputManager.

When I press a "submit" button and, lets say one control inside tab 1 and one control inside tab 2 fails - then I first want to
open tab 1,the user can then enter some valid data here. He will press "submit" again, and now tab 2 should open because the validation fails here.

Can this behavior be controlled clientside?
Hessner
Top achievements
Rank 2
 answered on 08 May 2009
3 answers
134 views
This is my first day as an official Telerik user, so this might be a subject already touched on (I couldn't find it).

http://www.sjmed.com/images/csshelp.jpg

The main calendar table is fine, but the inner Day/Week/Month/etc. table is indented.  I'm sure it's because of another style somewhere else on the page, but how do I find that.  Or is there a way to have the Telerik control ignore outside stylesheets?

EDIT:  That screenshot is from Firefox and it seems to work in IE7+.
Peter
Telerik team
 answered on 08 May 2009
3 answers
237 views
Hi,

When i am placing RadChart on the web page, i found the following error:

1st time i got:
Error Creating Control - RadChart1
Failed to create designer 'System.Windows.Forms.Design.ComponentDocumentDesigner, system.............'

2nd time i got:
Error Creating Control - RadChart2
Duplicate component name 'RadChart2'. Component names must be unique and case-insensitive

Please tell me the solution.

Thanks.

Regards
Arshad





Dessy
Telerik team
 answered on 08 May 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?