Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
170 views

I'm using the following SqlDataSource to populate a RadGrid and it works as expected:

SqlDataSource sdsRgVens = new SqlDataSource();
            sdsRgVens.ID = "sdsRgVens";
            this.Page.Controls.Add(sdsRgVens);
            sdsRgVens.DataSourceMode = SqlDataSourceMode.DataSet;
            sdsRgVens.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["drappConnectionString"].ConnectionString;
            sdsRgVens.SelectCommand = "SELECT venIdPk, venNm, venCity, venStateAcro, venZipCode FROM vendors";
 
            rgVens.DataSource = sdsRgVens;
            rgVens.DataBind();


Here's the code for the RadGrid:

<telerik:RadGrid ID="rgVens" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" ShowGroupPanel="True" OnPreRender="rgVens_PreRender" OnItemCommand="rgVens_ItemCommand" >
                <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" ReorderColumnsOnClient="True"></ClientSettings>
                <MasterTableView DataKeyNames="venIdPk" PagerStyle-AlwaysVisible="true">
                    <Columns>
                        <telerik:GridButtonColumn CommandName="Select" Text="Select" ButtonType="LinkButton"></telerik:GridButtonColumn>
                        <telerik:GridBoundColumn DataField="venIdPk" ReadOnly="True" HeaderText="venIdPk" SortExpression="venIdPk" UniqueName="venIdPk" DataType="System.Int32" FilterControlAltText="Filter venIdPk column"></telerik:GridBoundColumn>                                               
                        <telerik:GridBoundColumn DataField="venNm" HeaderText="Name" SortExpression="venNm" UniqueName="venNm" FilterControlAltText="Filter venNm column" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="venCity" HeaderText="City" SortExpression="venCity" UniqueName="venCity" FilterControlAltText="Filter venCity column" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true"></telerik:GridBoundColumn>                       
                        <telerik:GridBoundColumn DataField="venStateAcro" HeaderText="State" SortExpression="stateProvAcro" UniqueName="stateProvAcro" FilterControlAltText="Filter stateProvAcro column" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="venZipCode" HeaderText="Zip Code" SortExpression="venZipCode" UniqueName="venZipCode" FilterControlAltText="Filter venZipCode column" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true"></telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

When a row is selected in the first RadGrid another RadGrid is populated as expected. 

Here's the SqlDataSource for the second RadGrid

<asp:SqlDataSource ID="sdsRgVenDocs" runat="server"
                ConnectionString='<%$ ConnectionStrings:drappConnectionString %>'
                SelectCommand="SELECT [docIdPk], [docTitle], [venIdFk] FROM [docs] WHERE ([venIdFk] = @venIdFk)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="rgVens" PropertyName="SelectedValue" Name="venIdFk" Type="Int32"></asp:ControlParameter>
                </SelectParameters>
            </asp:SqlDataSource>

Here's the code for the second RadGrid:

<telerik:RadGrid ID="rgVenDocs" runat="server" DataSourceID="sdsRgVenDocs" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" ShowGroupPanel="True" Skin="Default">
                <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" ReorderColumnsOnClient="True"></ClientSettings>
                <MasterTableView DataKeyNames="docIdPk" DataSourceID="sdsRgVenDocs">
                    <Columns>
                        <telerik:GridButtonColumn CommandName="Select" Text="Select" ButtonType="LinkButton"></telerik:GridButtonColumn>
                        <telerik:GridBoundColumn DataField="docIdPk" ReadOnly="True" HeaderText="docIdPk" SortExpression="docIdPk" UniqueName="docIdPk" DataType="System.Int32" FilterControlAltText="Filter docIdPk column"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="docTitle" HeaderText="docTitle" SortExpression="docTitle" UniqueName="docTitle" FilterControlAltText="Filter docTitle column"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="venIdFk" HeaderText="venIdFk" SortExpression="venIdFk" UniqueName="venIdFk" DataType="System.Int32" FilterControlAltText="Filter venIdFk column"></telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

At this point I should be able to select a row in the second RadGrid, but when I click on the "Select" link button the row is not selected.  

How can I get the row in the second RadGrid to be selectable like the first RadGrid?  I can get this to work as expected if I just use the asp:GridView controls.

Jerald
Top achievements
Rank 1
 answered on 12 Dec 2017
4 answers
296 views

Hello,

I have a radgrid and in each row I have a radslider. I want to change the value of the radslider and save it into the database at the same time by clicking on the radslider. Below you can find the radslider in radgrid:

 

<telerik:GridTemplateColumn>
     <ItemTemplate>
                  <telerik:RadSlider RenderMode="Lightweight" ID="RS_Severity" runat="server" Orientation="Horizontal"  
                    LargeChange="1" TrackPosition="TopLeft" ShowIncreaseHandle="false"
                  AutoPostBack="true"  OnValueChanged="RS_Severity_ValueChanged" ShowDecreaseHandle="false" Width="170"
                  ItemType="item" Font-Size="Smaller" Height="35" Skin="Web20" CssClass="TicksSlider ml-1 mr-1">
                                                            
             <Items>
                    <telerik:RadSliderItem Text="Normal"  ToolTip="Normal" runat="server"></telerik:RadSliderItem>
                   <telerik:RadSliderItem Text="Average"  ToolTip="Average" runat="server"></telerik:RadSliderItem>
                    <telerik:RadSliderItem Text="Bad"  ToolTip="Bad" runat="server"></telerik:RadSliderItem>
                    <telerik:RadSliderItem Text="Very bad"  ToolTip="Very bad" runat="server"></telerik:RadSliderItem>
            </Items>
   </telerik:RadSlider>
       </ItemTemplate>
 </telerik:GridTemplateColumn>

 

In code behind I have a function for OnValueChanged event. 
the event will fire correctly by clicking on the slider. the problem is that I cannot get the id of the row on which i am clicking.

I have tried CommandName property for radslider but it did not work.

 

I appreciate any suggestion and help.

 

Eyup
Telerik team
 answered on 12 Dec 2017
0 answers
59 views

Dear Developer,

 

I'm finding the problem when i'm using column freez and multi header option together, its not working and other features like column filters are not working.

Please let me know anyone come across this problem and resolved it. Thanks in advance.

Krishna
Top achievements
Rank 1
 asked on 12 Dec 2017
4 answers
230 views
I have created a grid using telerik radgrid and I am trying to delete a record using the auto delete built in to the grid. I have set up my dataosourcebject as follows

<

 

asp:ObjectDataSource ID="ObjectDataSource2" SelectMethod="GetList" DeleteMethod="Delete"

 

OldValuesParameterFormatString

 

="{0}" DataObjectTypeName = "IngredientSourceBusinessObject.IngredientSource"

 

 

TypeName="IngredientSourceBusinessObjectManager.IngredientSourceManager" runat="server">

 

</

 

asp:ObjectDataSource>

The source for my grid is as follows


 

<

 

telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"

 

 

AllowSorting="True"

 

 

DataSourceID="ObjectDataSource2" DataKeyNames="Id" GridLines="None"

 

 

Skin="Sunset" AllowAutomaticDeletes="True" AutoGenerateDeleteColumn="True"

 

 

AutoGenerateColumns="False">

 

<

 

HeaderContextMenu EnableTheming="True">

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

HeaderContextMenu>

 

 

 

 

 

<PagerStyle AlwaysVisible="True" Mode="NextPrevAndNumeric" />

 

<

 

MasterTableView datasourceid="ObjectDataSource2"

 

 

overridedatasourcecontrolsorting="True">

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridBoundColumn DataField="EntryDate" DataFormatString="{0:d}"

 

 

DataType="System.DateTime" HeaderText="Entry Date" UniqueName="column1">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="column2">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="FullName" HeaderText="Company Name"

 

 

SortExpression="FullName" UniqueName="column">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

</Columns>

 

 

 

 

 

<PagerTemplate>

 

 

 

 

 

<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="First"

 

 

CommandName="Page">First</asp:LinkButton>

 

 

 

 

 

<asp:LinkButton ID="LinkButton3" runat="server"

 

 

CommandArgument="Prev" CommandName="Page">Prev</asp:LinkButton>

 

 

 

 

 

<asp:TextBox ID="TxtPageNumber" runat="server"

 

 

Text='<%# Convert.ToInt32(DataBinder.Eval(Container, "OwnerTableView.CurrentPageIndex")) + 1 %>'

 

 

style="z-index: 1" Width="48px"></asp:TextBox>

 

 

 

 

 

<asp:LinkButton ID="LinkButton5" runat="server" CommandName="CustomChangePage">Go</asp:LinkButton>

 

 

 

 

 

<asp:LinkButton ID="LinkButton4" runat="server"

 

 

CommandArgument="Next" CommandName="Page">Next</asp:LinkButton>

 

 

 

 

 

<asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Last"

 

 

CommandName="Page">Last</asp:LinkButton>

 

 

 

 

 

</PagerTemplate>

 

</

 

MasterTableView>

 

 

 

 

 

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">

 

 

 

 

 

<selecting allowrowselect="True" />

 

 

 

 

 

</ClientSettings>

 

<

 

FilterMenu EnableTheming="True">

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

FilterMenu>

 

</

 

telerik:RadGrid>

 

When i click on the delete link the progam sends an empty object to my business layer.

I have tried this with a gridview from visual studio 8 and it works fine.

I am guessing that maybe this problem has to do with binding but I am unclear about that.
I have enabled sorting on the grid so overridedatasourcecontrolsorting is set to true but I tried it also set to false and that did not work either.
I would appreciate any help with this
Thank you
Judith

 

Mike
Top achievements
Rank 1
 answered on 11 Dec 2017
1 answer
278 views

I have a problem with binding text property. How can i set the text property of the RadPanelItem?

    <telerik:RadPanelBar RenderMode="Lightweight" ID="RadPanelbar2" runat="server" ExpandMode="MultipleExpandedItems" Width="100%">
                                        <Items>
                                            <telerik:RadPanelItem runat="server" Value="1" Text='<%# String.Format("General info {0:000000}", Eval("Id")) %>'     Expanded="true">
                                                <Items>
                                                    <telerik:RadPanelItem runat="server">
                                                        <ItemTemplate>
                                                            <asp:FormView runat="server" ID="fvGeneral" DataSourceID="odsGeneral" DataKeyNames="TaskId" Width="100%" OnDataBound="fvGeneral_DataBound">
                                                                <ItemTemplate>

Rumen
Telerik team
 answered on 11 Dec 2017
1 answer
80 views

Hi Team,

while binding data to HTML Chart, for X axis i have a data '<others>', which i can't able to display in x axis. for that one it is coming as blank. How can I handle this. Please help.

 

Thanks,

Rosalini

Vessy
Telerik team
 answered on 11 Dec 2017
3 answers
1.2K+ views
Hi All,

In my application I need to implement countdown timer for session time out. Is any control available in telerik rad controls for this.
Thanks in advance.

Regards,
Pavan
Rumen
Telerik team
 answered on 11 Dec 2017
11 answers
1.2K+ views
I just updated to the new Q3 release of telerik controls. I am utilizing the header context menu attribute of radgrid by setting  EnableHeaderContextMenu="true". Some of my grids contain GridTemplateColumns which contain controls such as image buttons, etc... I don't want these types of columns to show up in the header context menu. I have been unable to find a way to stop certain columns from being added to the header context menu of a radgrid. Is this possible? I would assume that there would be some kind of attribute on a column I can set to not show in headercontextmenu. I found that I can catch the click using OnColumnContextMenu but at that point I have been unable to get a handle on the headercontextmenu of the grid to remove items/options. Thanks in advance for any help...
G
Top achievements
Rank 1
 answered on 11 Dec 2017
2 answers
847 views

I am getting a post error from a calendar object.

An error has occurred because a control with id 'ctl00$MainContent$tsupcontrol_4' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.

 

I adding a few lines of code that generates all this HTML.

<div class="form-group">
                    <label for="ctl00_MainContent_tsupcontrol_4" class="control-label col-md-3">Birth Date</label><div class="col-md-9">
                        <div id="ctl00_MainContent_tsupcontrol_4_wrapper" class="RadPicker RadPicker_MetroTouch" style="display:inline-block;width:300px;">
                            <input style="visibility:hidden;display:block;float:right;margin:0 0 -1px -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="ctl00_MainContent_tsupcontrol_4" name="ctl00$MainContent$tsupcontrol_4" type="text" class="rdfd_ radPreventDecorate" value="1980-12-12" title="Visually hidden input created for functionality purposes." /><table cellspacing="0" class="rcTable rcSingle" summary="Table holding date picker control for selection of dates." style="width:100%;">
                                <caption style="display:none;">
                                    RadDatePicker
                                </caption><thead style="display:none;">
                                    <tr>
                                        <th scope="col">RadDatePicker</th>
                                    </tr>
                                </thead><tbody>
                                    <tr>
                                        <td class="rcInputCell" style="width:100%;"><span id="ctl00_MainContent_tsupcontrol_4_dateInput_wrapper" class="riSingle RadInput RadInput_MetroTouch" style="display:block;width:100%;"><input id="ctl00_MainContent_tsupcontrol_4_dateInput" name="ctl00$MainContent$tsupcontrol_4$dateInput" class="riTextBox riEnabled" value="Friday December 12, 1980" type="text" /><input id="ctl00_MainContent_tsupcontrol_4_dateInput_ClientState" name="ctl00_MainContent_tsupcontrol_4_dateInput_ClientState" type="hidden" /></span></td><td><a title="Open the calendar popup." href="#" id="ctl00_MainContent_tsupcontrol_4_popupButton" class="rcCalPopup">Open the calendar popup.</a><div id="ctl00_MainContent_tsupcontrol_4_calendar_wrapper" style="display:none;">
                                            <table id="ctl00_MainContent_tsupcontrol_4_calendar" cellspacing="0" class="RadCalendar RadCalendar_MetroTouch">
                                                <caption>
                                                    <span style='display:none;'>Calendar</span>
                                                </caption><thead>
                                                    <tr>
                                                        <td class="rcTitlebar"><table cellspacing="0">
                                                            <caption>
                                                                <span style='display:none;'>Title and navigation</span>
                                                            </caption><thead>
                                                                <tr style="display:none;">
                                                                    <th scope="col">Title and navigation</th>
                                                                </tr>
                                                            </thead><tbody>
    <tr>
        <td><a id="ctl00_MainContent_tsupcontrol_4_calendar_FNP" class="t-button rcFastPrev" title="<<" href="#"><<</a></td><td><a id="ctl00_MainContent_tsupcontrol_4_calendar_NP" class="t-button rcPrev" title="<" href="#"><</a></td><td id="ctl00_MainContent_tsupcontrol_4_calendar_Title" class="rcTitle">December, 2017</td><td><a id="ctl00_MainContent_tsupcontrol_4_calendar_NN" class="t-button rcNext" title=">" href="#">></a></td><td><a id="ctl00_MainContent_tsupcontrol_4_calendar_FNN" class="t-button rcFastNext" title=">>" href="#"><<</a></td>
    </tr>
</tbody>
                                                        </table></td>
                                                    </tr>
                                                </thead><tbody>
    <tr>
        <td class="rcMain"><table id="ctl00_MainContent_tsupcontrol_4_calendar_Top" class="rcMainTable" cellspacing="0">
    <caption>
        <span style='display:none;'>December, 2017</span>
    </caption><thead>
        <tr class="rcWeek">
            <th class="rcViewSel" scope="col"> </th><th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_cs_1" title="Sunday" scope="col">S</th><th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_cs_2" title="Monday" scope="col">M</th><th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_cs_3" title="Tuesday" scope="col">T</th><th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_cs_4" title="Wednesday" scope="col">W</th><th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_cs_5" title="Thursday" scope="col">T</th><th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_cs_6" title="Friday" scope="col">F</th><th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_cs_7" title="Saturday" scope="col">S</th>
        </tr>
    </thead><tbody>
        <tr class="rcRow">
            <th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_rs_1" scope="row">48</th><td class="rcOtherMonth" title="Sunday, November 26, 2017"><a href="#">26</a></td><td class="rcOtherMonth" title="Monday, November 27, 2017"><a href="#">27</a></td><td class="rcOtherMonth" title="Tuesday, November 28, 2017"><a href="#">28</a></td><td class="rcOtherMonth" title="Wednesday, November 29, 2017"><a href="#">29</a></td><td class="rcOtherMonth" title="Thursday, November 30, 2017"><a href="#">30</a></td><td title="Friday, December 01, 2017"><a href="#">1</a></td><td class="rcWeekend" title="Saturday, December 02, 2017"><a href="#">2</a></td>
        </tr><tr class="rcRow">
            <th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_rs_2" scope="row">49</th><td class="rcWeekend" title="Sunday, December 03, 2017"><a href="#">3</a></td><td title="Monday, December 04, 2017"><a href="#">4</a></td><td title="Tuesday, December 05, 2017"><a href="#">5</a></td><td title="Wednesday, December 06, 2017"><a href="#">6</a></td><td title="Thursday, December 07, 2017"><a href="#">7</a></td><td title="Friday, December 08, 2017"><a href="#">8</a></td><td class="rcWeekend" title="Saturday, December 09, 2017"><a href="#">9</a></td>
        </tr><tr class="rcRow">
            <th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_rs_3" scope="row">50</th><td class="rcWeekend" title="Sunday, December 10, 2017"><a href="#">10</a></td><td title="Monday, December 11, 2017"><a href="#">11</a></td><td title="Tuesday, December 12, 2017"><a href="#">12</a></td><td title="Wednesday, December 13, 2017"><a href="#">13</a></td><td title="Thursday, December 14, 2017"><a href="#">14</a></td><td title="Friday, December 15, 2017"><a href="#">15</a></td><td class="rcWeekend" title="Saturday, December 16, 2017"><a href="#">16</a></td>
        </tr><tr class="rcRow">
            <th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_rs_4" scope="row">51</th><td class="rcWeekend" title="Sunday, December 17, 2017"><a href="#">17</a></td><td title="Monday, December 18, 2017"><a href="#">18</a></td><td title="Tuesday, December 19, 2017"><a href="#">19</a></td><td title="Wednesday, December 20, 2017"><a href="#">20</a></td><td title="Thursday, December 21, 2017"><a href="#">21</a></td><td title="Friday, December 22, 2017"><a href="#">22</a></td><td class="rcWeekend" title="Saturday, December 23, 2017"><a href="#">23</a></td>
        </tr><tr class="rcRow">
            <th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_rs_5" scope="row">52</th><td class="rcWeekend" title="Sunday, December 24, 2017"><a href="#">24</a></td><td title="Monday, December 25, 2017"><a href="#">25</a></td><td title="Tuesday, December 26, 2017"><a href="#">26</a></td><td title="Wednesday, December 27, 2017"><a href="#">27</a></td><td title="Thursday, December 28, 2017"><a href="#">28</a></td><td title="Friday, December 29, 2017"><a href="#">29</a></td><td class="rcWeekend" title="Saturday, December 30, 2017"><a href="#">30</a></td>
        </tr><tr class="rcRow">
            <th id="ctl00_MainContent_tsupcontrol_4_calendar_Top_rs_6" scope="row">53</th><td class="rcWeekend" title="Sunday, December 31, 2017"><a href="#">31</a></td><td class="rcOtherMonth" title="Monday, January 01, 2018"><a href="#">1</a></td><td class="rcOtherMonth" title="Tuesday, January 02, 2018"><a href="#">2</a></td><td class="rcOtherMonth" title="Wednesday, January 03, 2018"><a href="#">3</a></td><td class="rcOtherMonth" title="Thursday, January 04, 2018"><a href="#">4</a></td><td class="rcOtherMonth" title="Friday, January 05, 2018"><a href="#">5</a></td><td class="rcOtherMonth" title="Saturday, January 06, 2018"><a href="#">6</a></td>
        </tr>
    </tbody>
</table></td>
    </tr>
</tbody>
                                            </table><input type="hidden" name="ctl00_MainContent_tsupcontrol_4_calendar_SD" id="ctl00_MainContent_tsupcontrol_4_calendar_SD" value="[]" /><input type="hidden" name="ctl00_MainContent_tsupcontrol_4_calendar_AD" id="ctl00_MainContent_tsupcontrol_4_calendar_AD" value="[[1800,1,1],[2023,1,1],[2017,12,6]]" />
                                        </div></td>
                                    </tr>
                                </tbody>
                            </table><input id="ctl00_MainContent_tsupcontrol_4_ClientState" name="ctl00_MainContent_tsupcontrol_4_ClientState" type="hidden" />
                        </div>
                    </div>
                </div><div class="form-group">
                    <span class="control-label col-md-3"><span></span></span><div class="col-md-9">
                        <span id="MainContent_tsupcontrol_5"><table class="SignupChecks">
                            <tr>
                                <td><span class="checkbox"><input id="MainContent_SignUpCheck_4_1" type="checkbox" name="ctl00$MainContent$SignUpCheck_4_1" /><label for="MainContent_SignUpCheck_4_1"><strong>Period One</strong></label></span></td>
                            </tr><tr>
                                <td><span class="checkbox"><input id="MainContent_SignUpCheck_4_2" type="checkbox" name="ctl00$MainContent$SignUpCheck_4_2" checked="checked" /><label for="MainContent_SignUpCheck_4_2"><span style="color: #ff0000;">Second Period</span></label></span></td>
                            </tr><tr>
                                <td><span class="checkbox"><input id="MainContent_SignUpCheck_4_6" type="checkbox" name="ctl00$MainContent$SignUpCheck_4_6" checked="checked" /><label for="MainContent_SignUpCheck_4_6"><span style="color: #7030a0;">Third Period</span></label></span></td>
                            </tr>
                        </table></span>
                    </div>
                </div><div class="form-group">
                    <span class="control-label col-md-3"><span></span></span><div class="col-md-3">
                    </div><div class="col-md-9">
                        <span id="MainContent_tsup_JoinButton"><table id="MainContent_CommandButtonTable" class="FormButtonTable">
                            <tr>
                                <td><span id="ctl00_MainContent_CommandButtonSubmit" class="RadButton RadButton_MetroTouch rbSkinnedButton"><input class="rbDecorated" type="submit" name="ctl00$MainContent$CommandButtonSubmit_input" id="ctl00_MainContent_CommandButtonSubmit_input" value="Update" /><input id="ctl00_MainContent_CommandButtonSubmit_ClientState" name="ctl00_MainContent_CommandButtonSubmit_ClientState" type="hidden" /></span></td><td><span id="ctl00_MainContent_CommandButtonClose" class="RadButton RadButton_MetroTouch rbSkinnedButton"><input class="rbDecorated" type="submit" name="ctl00$MainContent$CommandButtonClose_input" id="ctl00_MainContent_CommandButtonClose_input" value="Close" /><input id="ctl00_MainContent_CommandButtonClose_ClientState" name="ctl00_MainContent_CommandButtonClose_ClientState" type="hidden" /></span></td>
                            </tr>
                        </table></span>
                    </div>
                </div>
            </div></div>
                           
        </div>
    </div>

 

And it also produces this code in the HTML.

Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadDateInput, {"_displayText":"Friday December 12, 1980","_focused":false,"_initialValueAsText":"1980-12-12-00-00-00","_postBackEventReferenceScript":"__doPostBack(\u0027ctl00$MainContent$tsupcontrol_4\u0027,\u0027\u0027)","_skin":"MetroTouch","_validationText":"1980-12-12-00-00-00","clientStateFieldID":"ctl00_MainContent_tsupcontrol_4_dateInput_ClientState","dateFormat":"yyyy-MM-dd","dateFormatInfo":{"DayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"MonthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"AbbreviatedDayNames":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"AbbreviatedMonthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"AMDesignator":"AM","PMDesignator":"PM","DateSeparator":"-","TimeSeparator":":","FirstDayOfWeek":0,"DateSlots":{"Month":1,"Day":2,"Year":0},"ShortYearCenturyEnd":2029,"TimeInputOnly":false,"MonthYearOnly":false},"displayDateFormat":"dddd MMMM d, yyyy","enabled":true,"incrementSettings":{InterceptArrowKeys:true,InterceptMouseWheel:true,Step:1},"maxDate":"2023-01-01-00-00-00","minDate":"1800-01-01-00-00-00","styles":{HoveredStyle: ["width:100%;", "riTextBox riHover"],InvalidStyle: ["width:100%;", "riTextBox riError"],DisabledStyle: ["width:100%;", "riTextBox riDisabled"],FocusedStyle: ["width:100%;", "riTextBox riFocused"],EmptyMessageStyle: ["width:100%;", "riTextBox riEmpty"],ReadOnlyStyle: ["width:100%;", "riTextBox riRead"],EnabledStyle: ["width:100%;", "riTextBox riEnabled"]}}, null, null, $get("ctl00_MainContent_tsupcontrol_4_dateInput"));
});
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadCalendar, {"_DayRenderChangedDays":{},"_FormatInfoArray":[["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MMMM d, yyyy h:mm:ss tt","MMMM d, yyyy","h:mm:ss tt","d MMMM","ddd, dd MMM yyyy HH\u0027:\u0027mm\u0027:\u0027ss \u0027GMT\u0027","yyyy-MM-dd","h:mm tt","yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss","yyyy\u0027-\u0027MM\u0027-\u0027dd HH\u0027:\u0027mm\u0027:\u0027ss\u0027Z\u0027","MMMM, yyyy","AM","PM","-",":",0],"_ViewRepeatableDays":{},"_ViewsHash":{"ctl00_MainContent_tsupcontrol_4_calendar_Top" : [[2017,12,1], 1]},"_calendarWeekRule":0,"_culture":"en-CA","_enableKeyboardNavigation":false,"_enableViewSelector":false,"_firstDayOfWeek":7,"_postBackCall":"__doPostBack(\u0027ctl00$MainContent$tsupcontrol_4$calendar\u0027,\u0027@@\u0027)","_rangeSelectionMode":0,"clientStateFieldID":"ctl00_MainContent_tsupcontrol_4_calendar_ClientState","enableMultiSelect":false,"enabled":true,"monthYearNavigationSettings":["Today","OK","Cancel","Date is out of range.","False","True","300","1","300","1","False"],"skin":"MetroTouch","specialDaysArray":[],"stylesHash":{"DayStyle": ["", ""],"CalendarTableStyle": ["", "rcMainTable"],"OtherMonthDayStyle": ["", "rcOtherMonth"],"TitleStyle": ["", ""],"SelectedDayStyle": ["", "rcSelected"],"SelectorStyle": ["", ""],"DisabledDayStyle": ["", "rcDisabled"],"OutOfRangeDayStyle": ["", "rcOutOfRange"],"WeekendDayStyle": ["", "rcWeekend"],"DayOverStyle": ["", "rcHover"],"FastNavigationStyle": ["", "RadCalendarMonthView RadCalendarMonthView_MetroTouch"],"ViewSelectorStyle": ["", "rcViewSel"]},"titleFormat":"MMMM, yyyy","useColumnHeadersAsSelectors":false,"useRowHeadersAsSelectors":false}, null, null, $get("ctl00_MainContent_tsupcontrol_4_calendar"));
});

 

I have no idea why the error happens. All the HTML is generated by the RadCalendar Telerik control.

Any help is greatly appreciated, I have no idea how to proceed.

George

 

 

George
Top achievements
Rank 2
 answered on 08 Dec 2017
14 answers
641 views
I have a scenario where I would like to use User Controls as items of a my Panel Bar and I only want the contents for the User Controls to be loaded (i.e. made visible on the server-side) when the Panel Item that contains the control is expanded. I.e. I would like the contents of a Panel Item to be "loaded on demand". (I am aware that if a User Control is not visible, that the control "is processed" until the rendering stage of the page life cycle, but my aim with this "load on demand" functionality is to minimize the amount of HTML on the clients side until it is "really needed"/requested)

Do you guys have any examples of such a scenario? Or would you not suggest using a RadPanelBar for this?
Nagendra
Top achievements
Rank 1
 answered on 08 Dec 2017
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?