Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Hello, i've got a couple of the comboboxes (combo1 and combo2) on a page, each of them has checkboxes...now, while I have seen and used the javascript method to update combo2 based on what someone checks on combo1, for certain requirements, I need to do this on the server side, using the checkbox's oncheckedchanged event, with autopostback true (otherwise, it doesn't do squat)

I also have everything withing an ajax update panel, but the checkboxes still cause a full postback...if I try to set the checkbox as the trigger for an async postback, I get the error saying the update panel can't find a control names chk1 (the name of the checkbox in the item template)

I even tried placing everything inside a RadAjaxPanel, and even then, the checkbox event causes a full postback...can anyone help me with this?

-----------------------------------

With that said, I'm trying to work from the server because when I work with the javascript, once I hit a button to do some server side process, combo2 acts, from the server side like it hadn't been changed at all...if I could resolve this, I wouldn't need to fire events from the checkboxes server-side...so if anyone has the solution for this, i'd be very grateful

I'm using both the combobox item template demo as sources as well as the Related Combobox demos, here are the links

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

Thank you all in advance

----------------

Update:

Tried using RadAjaxManager instead of updatepanel:
<telerik:RadAjaxManager ID="rManager" runat="server">       
    <
AjaxSettings>           
       <
telerik:AjaxSetting AjaxControlID="chk1" EventName="CheckedChanged">
           <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="chk2" />
                <telerik:AjaxUpdatedControl ControlID="silverlightControlHost" />           
           </
UpdatedControls>
       </
telerik:AjaxSetting>
    </
AjaxSettings><br>       
</
telerik:RadAjaxManager>  


chk1 is the checkbox item with the event. chk2 will be updated depending on what you check/uncheck, and silverlightControlHost is a div that contains a silverlight app that will also be updated...

While it doesn't give me the error the updload panel did, it still does a full postback...

Hope you can help me
Iana Tsolova
Telerik team
 answered on 02 May 2011
1 answer
138 views
Hi Telerik Team

What are max values allowed in MAXTextLength and MaxHTMLLength properties in RAD editor latest 2010 version?

Regards
Varun
Rumen
Telerik team
 answered on 02 May 2011
1 answer
82 views
Hi;
 We inherit our Asp.Net pages from a page which is called PageBase instead of System.Web.UI.Page . PageBase which has controls over buttons and other things on the page also is inherited from System.Web.UI.Page. Well; the problem starts from here;
 When we tried to write the example from " http://localhost:8301/radcontrols_aspnetajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=upload " page our RadGrid1_InsertCommand is not fired. However; whenever Asp.Net pages are inherited  from System.Web.UI.Page, RadGrid1_InsertCommand is fired. How can i solve this issue? Why this happens?
Tsvetina
Telerik team
 answered on 02 May 2011
1 answer
182 views
hi

i have a problem whit radgrid in insert/edit mode!
i want in edit and insert mode see a dropdown box for a column that show all avilable string in the database table.

for example:
i have a course table whit courseid and coursename
and lesson table whit lessonid , lessonname , courseid(FK)

the radgrid will show the coursename and lessonname from a innerjoin of tables in datasource

now i want when click on insert or edit , see a dropdown box for coursename that show all avilable row in course table.

whit thanks
Shinu
Top achievements
Rank 2
 answered on 02 May 2011
5 answers
78 views
I'd like to use the RadMenu with our search engine appliance from Adobe (ie. Omniture). Typically search engines don't support ajax well. How can I configure RadMenu manually to not require ajax?


Eric
Simon
Telerik team
 answered on 02 May 2011
1 answer
87 views
I have a RadGrid which displays a list of lesson plans.
When I click "edit" the text appears in the RADeditor (see Atached Image)
When I click the "save" button the data is saved in the database but the grid isn't updated.
If I click "Refresh" to rebind the grid, all the items are displayed in the list except the one I was editing.
Do you have any idea what I need to do to ensure updates are shown in the list when I click  "Save"?

The code for the grid and editor are displayed below

<     <asp:Panel ID="ListViewPanel1" runat="server">
                <asp:LinkButton ID="btnRebind" runat="server" CommandName="RebindGrid">Refresh Plan</asp:LinkButton>
  
                    <telerik:RadGrid ID="AssessmentGrid" runat="server" ShowHeader="True" ShowFooter="true"
                        BorderWidth="1" CellPadding="3" AutoGenerateColumns="false" Width="620px" Skin="WebBlue"
                        AllowPaging="true" PageSize="10" AllowCustomPaging="true" VirtualItemCount="50"
                        OnNeedDataSource="AssessmentGrid_NeedDataSource" OnItemCommand="OnSelectRecords"
                        AllowAutomaticUpdates="true">
                        <PagerStyle Mode="NumericPages" />
                        <MasterTableView ShowFooter="true" DataKeyNames="assessment_plan_reference" EditMode="InPlace">
                            <RowIndicatorColumn Visible="true" UniqueName="RowIndicator">
                                <HeaderStyle Width="20px" BackColor="LightSkyBlue" />
                            </RowIndicatorColumn>
                            <Columns>
                                <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Edit" ItemStyle-Width="50px"
                                    HeaderStyle-Width="50px" HeaderText="Edit" Text="Edit" />
                                <telerik:GridBoundColumn UniqueName="assessment_plan_reference" DataField="assessment_plan_reference"
                                    Visible="false" runat="server" ItemStyle-Width="50px" />
                                <telerik:GridBoundColumn UniqueName="week_number" DataField="week_number" HeaderText="Week"
                                    HeaderStyle-HorizontalAlign="left" HeaderStyle-Width="50px" ItemStyle-Width="40px"
                                    runat="server" ReadOnly="true" />
                                <telerik:GridBoundColumn UniqueName="content" DataField="content" ItemStyle-Wrap="true"
                                    HeaderText="Content" HeaderStyle-Width="270px" ItemStyle-Width="270px" ItemStyle-HorizontalAlign="left"
                                    runat="server" ReadOnly="true" />
                                <telerik:GridBoundColumn UniqueName="activity" DataField="activity" ItemStyle-Wrap="true"
                                    HeaderText="Activity" ItemStyle-Width="270px" ItemStyle-HorizontalAlign="left"
                                    runat="server" ReadOnly="true" />
                            </Columns>
                        </MasterTableView>
                        <ClientSettings>
                            <Selecting AllowRowSelect="true" />
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="false">
                            </Scrolling>
                        </ClientSettings>
                    </telerik:RadGrid>
                </asp:Panel>
            </div>
            <div style="padding: 10px; float: left; border-width: 1px; border-style: solid; border-color: #33ff99;">
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxGridLoadingPanel">
                    <telerik:RadTabStrip ID="RadTabStripEditor" runat="server" Skin="WebBlue" MultiPageID="RadMultiPage1"
                        SelectedIndex="0" Align="Justify" ReorderTabsOnSelect="true" Width="400px" Orientation="HorizontalBottom"
                        OnTabClick="RadTabStripEditor_TabClick">
                        <Tabs>
                            <telerik:RadTab Text="Content">
                            </telerik:RadTab>
                            <telerik:RadTab Text="Activity">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView"
                        Width="700px" Height="1000px">
                        <telerik:RadPageView ID="RadPageView1" runat="server">
                            <table cellspacing="0" cellpadding="0">
                                <tr>
                                    <td style="vertical-align: top;">
                                        <telerik:RadSpell ID="RadSpell1" runat="server" DictionaryPath="~/App_Data/RadSpell/"
                                            ControlToCheck="RadEditor1" Enabled="true" SupportedLanguages="en-US,English,fr-FR,French"
                                            ControlsToCheck="RadEditor1" DictionaryLanguage="en-US" />
                                        <telerik:RadEditor runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" Height="515px"
                                            SpellCheckSettings-DictionaryPath="~/App_Data/RadSpell/">
                                            <Modules>
                                                <telerik:EditorModule Name="RadEditorHtmlInspector" Visible="false" Enabled="true" />
                                            </Modules>
                                            <Languages>
                                                <telerik:SpellCheckerLanguage Code="en-US" Title="English" />
                                            </Languages>
                                            <Tools>
                                                <telerik:EditorToolGroup Tag="MainToolbar"> ....
                                                    
                                                </telerik:EditorToolGroup>
                                            </Tools>
                                            <Content>
                                              
                                            </Content>
                                            <SpellCheckSettings DictionaryPath="~/App_Data/RadSpell/" />
                                        </telerik:RadEditor>
                                        <asp:Button ID="btnSubmit" runat="server" Text="Save Plan" OnClick="btnSave_Click" />
                                        <input type="hidden" name="EditedRef" runat="server" id="EditedRef" />
                                        <input type="hidden" name="Editedcontent" runat="server" id="Editedcontent" />
                                        <input type="hidden" name="currentdisplay" runat="server" id="currentdisplay" />
                                        <br />
                                    </td>
Shinu
Top achievements
Rank 2
 answered on 02 May 2011
8 answers
343 views
I've got a grid which has an EditForm:

<EditFormSettings EditFormType="Template">
<FormTemplate>      
<asp:CheckBox runat="server" ID="chkPrintedPaper" Text="Printed Paper" Checked='<%# ConvertChecked(Eval("PrintedPaper")) %>' />
 </FormTemplate>
</EditFormSettings>

ConvertChecked is a code-behind function which turns 1, 0, NULL into True, False, False respectively.

For my insert command:

InsertCommandType="StoredProcedure" InsertCommand="csp_reg_saveEMSite"                    
<InsertParameters>                   
    <asp:Parameter Name="PrintedPaper" Type="boolean" />
</InsertParameters>

When I do a trace, the value of chkPrintedPaper isn't picked up (other fields, all textboxes, are fine).  What do I need to do here?
Vasil
Telerik team
 answered on 02 May 2011
1 answer
36 views

Hi,

 I am using Grid component with paging, in ASP.NET MVC2 application, but on page change, all site had been reloaded. I am not using any custom handler, only defaults.

What is the problem here?

Thanks,
Edgar

Iana Tsolova
Telerik team
 answered on 02 May 2011
1 answer
90 views
Hi,
     Please see attached image file.

and please refer foll. code.
<telerik:RadGrid runat="server" ID="rgQuestions" OnNeedDataSource="rgQuestions_NeedDataSource"
                                                        AllowPaging="True" AllowMultiRowSelection="true" OnItemDataBound="rgQuestions_ItemDataBOund"
                                                        PageSize="30" EnableHeaderContextMenu="true" AutoGenerateColumns="false"
                                                       >
                                                        <MasterTableView DataKeyNames="Q_QuestionId" TableLayout="Fixed">
                                                            <GroupByExpressions>
                                                                <telerik:GridGroupByExpression>
                                                                    <SelectFields>
                                                                        <telerik:GridGroupByField FieldAlias="Category" FieldName="Q_CategoryName" HeaderValueSeparator=" : ">
                                                                        </telerik:GridGroupByField>
                                                                    </SelectFields>
                                                                    <GroupByFields>
                                                                        <telerik:GridGroupByField FieldName="Q_CategoryName"></telerik:GridGroupByField>
                                                                    </GroupByFields>
                                                                </telerik:GridGroupByExpression>
                                                            </GroupByExpressions>
                                                            <Columns>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_QuestionId" HeaderText="Question Id">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_Question" HeaderText="Question">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_AnswerType" HeaderText="AnswerType">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_QuestionMark" HeaderText="QuestionMark">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_Mandatory" HeaderText="Mandatory">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_MarksStatus" HeaderText="MarksStatus">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridTemplateColumn Visible="False">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblAnsType" runat="server" Visible="False" Text='<%# DataBinder.Eval(Container.DataItem, "Q_AnswerType") %>'>
                                                                        </asp:Label>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridBoundColumn DataField="Q_Order" HeaderStyle-Width="5%" ItemStyle-VerticalAlign="Top" >
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridTemplateColumn DataField="Q_Question" HeaderText="Question" HeaderStyle-Width="65%">
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblQuestion" runat="server" Text='<%# Eval("Q_Question") %>'>
                                                                        </asp:Label>
                                                                        <br />
                                                                        <asp:Panel ID="QuestionDetails" runat="server">
                                                                            <asp:Label ID="lblAnsType1" runat="server" Visible="False" Text='<%# DataBinder.Eval(Container.DataItem, "Q_AnswerType") %>'>
                                                                                                                                  
                                                                            </asp:Label>
                                                                            <asp:Label ID="lblQuestionID" runat="server" Text='<%# Eval("Q_QuestionId") %>' Visible="false">
                                                                            </asp:Label>
                                                                           
                                                                        </asp:Panel>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                 
                                                                <telerik:GridTemplateColumn   HeaderStyle-Width="15%">
                                                                    <ItemStyle VerticalAlign="top"></ItemStyle>
                                                                    <ItemTemplate>
                                                                        <%--<asp:HyperLink id="hlinkEdit" runat="server" ToolTip="Edit" ImageUrl="../Images/edit.gif" NavigateUrl='<%#"AddQuestion.aspx?mode=Edit&Id="+DataBinder.Eval(Container.DataItem,"Q_Questionid")+"&Choice=Preview&answertype="+ DataBinder.Eval(Container.DataItem,"Q_AnswerType")%>' >
                                            </asp:HyperLink>--%>
                                                                        <asp:HyperLink ID="hlinkEdit" runat="server" ToolTip="Edit Question" ImageUrl="../Images/edit.gif"
                                                                            NavigateUrl='<%#"AddQuestions.aspx?mode=Edit&Id="+DataBinder.Eval(Container.DataItem,"Q_Questionid")+"&Choice=Preview&answertype="+ DataBinder.Eval(Container.DataItem,"Q_AnswerType")%>'>
                                                                        </asp:HyperLink>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn  HeaderStyle-Width="15%">
                                                                    <ItemStyle VerticalAlign="top"></ItemStyle>
                                                                    <ItemTemplate>
                                                                        <a href="#" onclick="Delete('<%# DataBinder.Eval(Container.DataItem, "Q_QuestionId") %>','<%# DataBinder.Eval(Container.DataItem, "Q_QuestionnaireId") %>')">                                                                       
                                                                            <img src="../Images/delete.gif" title="Delete" border="0"></a>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <ClientSettings AllowRowsDragDrop="True" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                                                            <Resizing AllowColumnResize="true" />
                                                            <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                                                            <%-- <ClientEvents OnRowDropping="onRowDropping" />--%>
                                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                        </ClientSettings>
                                                        <PagerStyle Mode="NumericPages" PageButtonCount="4" />
                                                    </telerik:RadGrid>


Regards,
Abhi
Shinu
Top achievements
Rank 2
 answered on 02 May 2011
3 answers
59 views
Hi Telerik Team,
     I want to use a custom skin for a radcontrol.In old version of radcontrol it is possible.Now we are using (Radcontrols for ASP.Net Ajax Q1 2011 SP1).How  can I use custom skin in this version?

Waiting for the reply.

By
Dayana
Veli
Telerik team
 answered on 02 May 2011
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
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
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?