Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
148 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
84 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
187 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
79 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
92 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
359 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
38 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
95 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
62 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
1 answer
476 views

Hello,

I am using the RadTooltip in a RadTreeNode template to display data associated with each node in the tooltip. The length of the text will be different for each node. I am hoping to get the following behavior:

  • Be able to set a maximum height for the tooltip
  • Have the tooltip automatically size the height based on content unless that maximum height is exceeded.
  • If that height is exceeded, set the height of the tootip to the maximum and a add vertical scrollbar so all content can be scrolled to.

 

Can you let me know if this is possible?

Thanks, Craig

Svetlina Anati
Telerik team
 answered on 02 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?