Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views
When using a combo box, that would display a value and the value is something like <SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>, what is the best way to filter or encode this so that it doesn't break the combo box?

The velow is an image link to what the issue looks like.

Rosi
Telerik team
 answered on 21 Oct 2008
2 answers
128 views
Hey there,

In my heading.master i have a asp:menu with numberous menu items... I also have a RadSplitter with a slidingzone and 3 RadSlidingPane's. This is just below the menu which goes horizontally accross the page and the RadSlidingPane's are attached vertically to the left of the screen (following so far?)

So my problem is when the any of the RadSlidingPane's are Docked and the users try to hover over the asp menu to navigate to a different page the ASP menu is hidden behind..

I have tried to alter the z-index of the RadSlidingPane and also increased the zindex of the asp menu + items. but to no avail...

Any help on this matter would be appreciated :)
Kevin
Top achievements
Rank 2
 answered on 21 Oct 2008
1 answer
133 views
I had a problem with my web.config
The telerik support team helped me to solve it.
There is a missing line in all web.config that I am using.
The missing line is that :

<add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

and it must be inserted in the <handlers> tag.

The big problem is that I must add this line manually at every web.config file that I am using.
Is there any way to solve that?
Thank you very much!



Sebastian
Telerik team
 answered on 21 Oct 2008
3 answers
100 views
Hi,

According to your documentation:

http://www.telerik.com/help/aspnet-ajax/addcustomdialogs.html

and this thread:

http://www.telerik.com/community/forums/thread/b311D-bgkmmk.aspx

The method should be available, but its not in the Editor control class. The .nET 2 compiler simply throws an error saying:

BC30456: 'AddDialogDefintion' is not a member of 'Telerik.Web.UI.RadEditor'.

How do I add a dialogdefintion to my editor from the codebehind?

Thanks

John
Lini
Telerik team
 answered on 21 Oct 2008
4 answers
228 views
Hello all,

I am having several problems trying to add panels to a tabstrip.

Configuration:
Telerik.Web.UI.dll 2008.2.1001.35
VS2008
ASP.NET 3.5

Scenario:  I have a tabstrip that will have a panel bar in it, in each panel there will be a grid control.  I am adding the panels and grids within a server event. 

My aspx looks basically like:
...
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="radMP" SelectedIndex="0">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Identify">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                
                
                <telerik:RadMultiPage ID="radMP" runat="server" CssClass="pageView"  SelectedIndex="0">
                    <telerik:RadPageView ID="pvIdentify" runat="server" >
                       
                        <telerik:RadPanelBar ID="pbIdentifyResults" runat="server" Skin="Vista" CssClass="panelBar" ExpandMode="FullExpandedItem"
                            EnableViewState="true">
                            <CollapseAnimation Duration="100" Type="None" />
                            <ExpandAnimation Duration="100" Type="None" />
                        </telerik:RadPanelBar>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
...
My css:
...

.pageView
{
    border: 1px solid #898c95;
    overflow: visible;
}

.panelBar
{
    width: 100%;
}

.indentifyGrid
{
    padding: 0em 1em 1em 1em;
    width: 100%;
    overflow: scroll;
}
...


My code basically looks like:
private void Identify()
{
...
              RadGrid rg = new RadGrid();
              rg.ID = "identify" + l.Title;
              rg.AllowPaging = false;
              rg.AllowFilteringByColumn = true;
              rg.AllowAutomaticDeletes = false;
              rg.AllowAutomaticInserts = false;
              rg.AllowAutomaticUpdates = false;
              rg.AllowMultiRowEdit = false;
              rg.Skin = Profile.GridSkin;
              rg.CssClass = "indentifyGrid";
              rg.AutoGenerateColumns = true;
              GridHyperLinkColumn link = new GridHyperLinkColumn();
              link.HeaderText = "View";
              link.DataTextField = "extents";
              link.DataTextFormatString = "<a href=\"#\" onclick=\"javascript:ViewTheme({0});return true;\">View On Map</a>";
              link.Visible = true;
              link.AllowFiltering = false;
              link.SortExpression = "";
              rg.Columns.Add(link);
              rg.Columns[0].ItemStyle.Width = new Unit("7em");


              SqlDataSource sds = Utilities.SpatialDataSource(sql);
              sds.DataSourceMode = SqlDataSourceMode.DataReader;
              sds.SelectCommandType = SqlDataSourceCommandType.Text;

              rg.DataSource = sds;
              rg.DataBind();
             
              RadPanelItem panel = new RadPanelItem(l.Title);
              panel.Attributes.Add("rowcnt", rg.Items.Count.ToString());
              panel.Expanded = true;

              RadPanelItem item = new RadPanelItem();
              item.Expanded = true;
              item.Value = l.Title;
              item.Controls.Add(rg);
              panel.Items.Add(item);
              this.pbIdentifyResults.Items.Add(panel);
...
}

Now my list of problems:
  1. I could not get the items to expand and collapse properly with adding the items directly to the panelbar.  So I found this link: http://www.telerik.com/community/forums/thread/b311D-bgdgdd.aspx that told me to add a panel, then add another panel to that.  The problem now is that I still can't get the panels to expand.  I see them with the Expand\Collapse icon, but they won't do anything when I click on them.  I have looked at the response on the page and the html is there, just that the panelbar is hiding it.
  2. This is really a styling issue that I think is only kind of related.  When I was using just a single panel right on the panelbar, I could see my grid, but it extended off the end of the page while my panelbar was only 300px or so wide.  What I really want is to have the panels extend all the way across the page (ie: width: 100%) and have the grid be contained within there.  If the grid needs to extend past that, it should have scrollbars at the bottom.  Can anyone tell me what I have wrong in my css that is causing the panelbar not to extend to the width of the page?
I know this is kind of long, but I hope I have given enough detail to get the appropriate help.

Thanks in advance,
Lee
Paul
Telerik team
 answered on 21 Oct 2008
2 answers
64 views
The issue:
I opened a radwindow with the name window1. I then minimized the said radwindow and now in minimized state. I then clicked a link to reopen the window1 radwindow, what happens is that the minimized window1 block floats from the minimize zone up to the center of the page.

I tried to browse the forum but i wasnt able to find a solution. Ive also tested the previous radwindow release and Ive noticed that the behaviour in that previous version is correct unlike in the latest version.

Id apprecate any help i can get, Thanks and more power!
xxxtreme_pasaway
Top achievements
Rank 1
 answered on 21 Oct 2008
4 answers
150 views
Hi,

I'm using an ImageButton to traverse to other pages using a RadGrid. Here is the aspx code.

<

asp:ImageButton ID="Button1" runat="server" ImageUrl="~/images/first.gif" OnClientClick="changePage('first'); return false;" CommandName="Page" CommandArgument="First" />

 

And the associated code in JavaScript is as follows:

function

changePage(argument)
{
tableView.page(argument);
}

 

But it the error "Microsoft JScript runtime error: Object doesn't support this property or method" at the JavaScript code.

Anyone help me please.

Thank You,
Pradeep
Pradeep
Top achievements
Rank 1
 answered on 21 Oct 2008
0 answers
118 views
Hi,

I am using telerik controls and I beleive I am having a compatablity issues with ajax and telerik controls, I have designed a simple page which has some telerik textboxes,grid and  buttons Clear and Search. When I click on Search button it fetches some data from the database and bounds to the grid and when I click on Clear button it clears the data of the grid and textboxes, this button click event is behaving abruptly, that is when I click on Search button or Clear button the event doesn't fire, only I can see the Update progress and after some time i get the follwing error

Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.

The most weired thing is that the search button event works fine at the first instance but gives the above error afterwards.

So kindly advice regarding this behaviour.

Regards,

Santhosh


santhosh
Top achievements
Rank 2
 asked on 21 Oct 2008
3 answers
207 views
I've got a RadGrid below a RadMenu, and there seems to be some wierd overlap happening. In Firefox, I get a gray box partially behind the menu, and the contents of the grid are shoved to the right of the menu. I suspect the gray box is supposed to be the Grid's div, since the box and the grid text seem to line up pretty well.

It's also broken in IE, though it appears differently. In IE the gray box is still underneath the menu, but it is almost entirely covered by the grid contents. The grid contents are below the menu, not to the right as in Firefox.

A picture of the Firefox bug:
http://i27.tinypic.com/30uv4lf.png

The IE bug (note the circled area where the gray box is visible):
http://i30.tinypic.com/wimx1.png
Nate
Top achievements
Rank 1
 answered on 21 Oct 2008
5 answers
198 views
Ascx:
------------


 

<telerik:GridDropDownColumn DropDownControlType="DropDownList" UniqueName="UserGroupTypeID" SortExpression="UserGroupTypeName" HeaderText="Type"   

 

DataSourceID

="dsUserGrpTypes"

 

 

 DataField="UserGroupType" ListTextField="UserGroupTypeName" ListValueField="UserGroupTypeID" />


Ascx.cs:
--------------

 

protected

void UserGroupsGrid_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

 

if (e.Item is GridEditableItem && e.Item.IsInEditMode)

 

{

 

GridEditableItem editedItem = e.Item as GridEditableItem;

 

 

GridEditManager editMan = editedItem.EditManager;

 

 

GridDropDownListColumnEditor editor = (GridDropDownListColumnEditor)(editMan.GetColumnEditor("UserGroupTypeID"));

 

 

DropDownList ddList = editor.DropDownListControl;

 

 

PortalData pd = new PortalData();

 

 

DataSet dsUserGrpTypes = new DataSet();

 

dsUserGrpTypes =

UserGroupsData.UserGroupGetUserGroupTyeps();

 

ddList.DataSource = dsUserGrpTypes.Tables[0];

}

 }



Dropdown is showing no records even though my dataset is having records in it.

Pls help me out in this regard.

--Srinath

Srinath
Top achievements
Rank 1
 answered on 21 Oct 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?