Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
In our app, the user uses a context menu, but in some cases the menu needs to draw pretty close the bottom.  In those cases, the menu is draw off the window and a scroll bar is shown.

Is there any way to make the menu show higher as to not draw a scroll bar?  The same problem exists with the DateTime picker's display.

Instead of drawing bellow the end of the page, the menu show "move up/left/right/down" as to now display a scroll bar.

Any thoughts on this would be great.
Peter
Telerik team
 answered on 09 May 2008
3 answers
216 views
Hi,

Are there any examples/docs on dealing with a many to many relation using rad grid.  one to many seems simple but i cant figure out how to deal with many to many.  for example.

catalogDB
id - name
1    catalog1
2    catalog2

categoriesDB
id - name
1    category1
2    category2
3    category3
4    category4

categoriesDB_X_catalogDB
id - catalogID - categoriesID
1       1               1
2       1               3
3       1               2
4       2               3
5       2               4

Thanks
-Keith
Princy
Top achievements
Rank 2
 answered on 09 May 2008
3 answers
105 views

I am generating the look and feel of the web pages from a master page. I tried to inherit Xhtml class in one of the pages. I am using RadTab and RadMultiviewPage control in this page. Please note the code. I am getting a NullReferenceException in the Xhtml.cs. Is there a version of Xhtml.cs suitable for web pages generated from Master control. I noted that the demo site also does not use Master page.

Line 56:         Control form = FindForm();
Line 57:
Line 58:         return Regex.Replace(input, @"theform\s+=\s+document\..*?;",
Line 59:             string.Format("theform = document.getElementById(\"{0}\");",
Line 60:             form.ClientID)

public

partial class Enroll_Enroll : XhtmlPage

{

protected void Page_Load(object sender, EventArgs e)

{

if (!Page.IsPostBack)

{

AddTab(

"Client Type", true);

RadPageView pageView = new RadPageView();

pageView.ID =

"ClientType";

RadMultiPage1.PageViews.Add(pageView);

AddTab(

"Parents Info", false);

AddTab(

"Home Address", false);

}

}

private void AddTab(string tabName, bool enabled)

{

RadTab tab = new RadTab(tabName);

tab.Enabled = enabled;

RadTabStrip1.Tabs.Add(tab);

}

protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)

{

//Control pageViewContents = LoadControl(@"~\WebControls\ClientType.ascx");

//pageViewContents.ID = e.PageView.ID + "userControl";

//e.PageView.Controls.Add(pageViewContents);

string controlid = @"..\WebControls\" + e.PageView.ID + ".ascx";

Control pageViewContents = LoadControl(controlid);

pageViewContents.ID = e.PageView.ID +

"userControl";

e.PageView.Controls.Add(pageViewContents);

}

}

    

Atanas Korchev
Telerik team
 answered on 09 May 2008
4 answers
267 views
It appears that if I have AllowScroll set to "True" in ClientSettings and have ShowStatusBar set to "True" in the RadGrid settings, the status bar does not display at all.  If I turn off AllowScroll the status bar does display, but the grid is WAY too long...  Is this by design, or is there a ways to get the status bar to display while AllowScroll is enabled?

Thanks!
Eddie
Yavor
Telerik team
 answered on 09 May 2008
1 answer
167 views
Hi,

When I read the contents of a page that contains content that uses RadEditor, I realized that the content is encrypted.

One of our needs is to generate a report with links in each file. Since content from RadEditor is encoded (such as multimedia or flash content embedded using the RadEditor), I am not able to get the references to those links by reading the page.

Is there an API within RadEditor that would give me the decrypted version of the content so that I can generate a report that tells me all the links within a page?

Lini
Telerik team
 answered on 09 May 2008
2 answers
124 views
I have download chm help file of RadGrid

http://www.telerik.com/documents/RadGridManual_v5_NET2.chm

The file does not work, all pages are blank. Is it possible to download a correct help file?

Thanks a lot
Massimo
massimo
Top achievements
Rank 1
 answered on 09 May 2008
1 answer
107 views
Hi,

I tried to implement the following in MOSS 2007, but it didn't seem to work:

    var documentManagerCommand = RadEditorCommandList["TemplateManager"];
    RadEditorCommandList["DocumentManager"] = function(commandName, editor, oTool)
    {
        documentManagerCommand (commandName, editor, callBackFn);
        function callBackFn(retValue)
        {
            if (retValue.href)
            {
                editor.PasteHtml("<IMG src='./images/" + retValue.href.substring(retValue.href.lastIndexOf(".")+1) + ".gif' /><a href='" + retValue.href + "'>" + retValue.href.substring(retValue.href.lastIndexOf("/") + 1) + "</a>");
            };
        }
    };
What I am trying to achieve is to display an icon in front of the filename whenever after I upload the file using the document manager.

Thanks.

Erwin
Top achievements
Rank 1
 answered on 09 May 2008
1 answer
147 views
Is there anyway to dynamically change the color of the slider bar based on what value is selected?  I'm creating a rating control and I want it to be blue when its one and change more towards red when it gets closer to 10.
Dave Wolf
Top achievements
Rank 1
Iron
 answered on 09 May 2008
1 answer
92 views
I'm looking on this site to download 

RadControls for ASPNET AJAX Q1 2007

Project I am working on was done with that version but i have the 2008 version and I cant compile the code.

Where's the link to Q1- 2007 on this site?

Thanks.

camilla

Mark Fitzpatrick
Top achievements
Rank 1
 answered on 08 May 2008
1 answer
187 views
I'm trying to convert an ASP GridView and DropDownList to the RadGridView and RadComboBox.  Here is the old code that works:

<asp:GridView ID="gv_Employee" runat="server" DataSourceID="ds_Employee" AutoGenerateColumns="False" AllowPaging="True" GridLines="Horizontal" BorderStyle="None" BorderWidth="0px" DataKeyNames="EvaluationDetailID">

<Columns>
<

asp:TemplateField HeaderText="Score:" SortExpression="TaskGrade">
<ItemTemplate>

<asp:DropDownList ID="ddl_Score_Emp" runat="server" DataSourceID="ds_Score_Employee" DataTextField="ScoreShort" DataValueField="CompScore" Width="150px" AutoPostBack="True" SelectedValue='<%# Eval("TaskGrade") %>' OnSelectedIndexChanged="ddl_Score_Emp_OnSelectedIndexChanged">
</asp:DropDownList>

<asp:ObjectDataSource ID="ds_Score_Employee" runat="server"> </asp:ObjectDataSource>

</ItemTemplate>
<ItemStyle Width="170px" />
</asp:TemplateField>

<asp:TemplateField HeaderText="Comments:" SortExpression="TaskComments">
<ItemTemplate>
<asp:TextBox ID="TaskCommentsTextBox_Emp" runat="server" Text='<%# Eval("TaskComments") %>' OnTextChanged="TaskCommentsTextBox_Emp_OnTextChanged" AutoPostBack="True" CssClass="notefield" Width="250px">
</
asp:TextBox>

</ItemTemplate>
<ItemStyle Width="270px" />
</asp:TemplateField>

</Columns>
</asp:GridView>

Here is my attempt at conversion - which does not work:

<telerik:RadGrid ID="gv_Employee" runat="server" DataSourceID="ds_Employee" AllowPaging="True" GridLines="Horizontal" BorderStyle="None" BorderWidth="0px" Skin="Office2007">
<MasterTableView AutoGenerateColumns="false" DataKeyNames="EvaluationDetailID">
<Columns>

<
telerik:GridTemplateColumn HeaderText="Score:" SortExpression="TaskGrade">

<ItemTemplate>

<telerik:RadComboBox ID="ddl_Score_Emp" runat="server" DataSourceID="ds_Score_Employee" DataTextField="ScoreShort" DataValueField="CompScore" Width="150px" AutoPostBack="True" SelectedValue='<%# Eval("TaskGrade") %>' OnSelectedIndexChanged="ddl_Score_Emp_OnSelectedIndexChanged">
</telerik:RadComboBox>

<
asp:ObjectDataSource ID="ds_Score_Employee" runat="server"> </asp:ObjectDataSource>

</ItemTemplate>
<ItemStyle Width="170px" />
</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn HeaderText="Comments:" SortExpression="TaskComments">
<ItemTemplate>

<telerik:RadTextBox ID="TaskCommentsTextBox_Emp" runat="server" Text='<%# Eval("TaskComments") %>' OnTextChanged="TaskCommentsTextBox_Emp_OnTextChanged" AutoPostBack="True" CssClass="notefield" Width="250px">
</
telerik:RadTextBox>

</ItemTemplate>
<ItemStyle Width="270px" />
</telerik:GridTemplateColumn>

</Columns>
</MasterTableView>
</telerik:RadGrid>

Any Ideas?
Thanks in advance!
Scott

Scott
Top achievements
Rank 1
 answered on 08 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?