Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
I'm trying to set the properties for a radeditor control, but when I right click to select Show SmartTag it's grayed out.  Any ideas?

Using VS2008 Team Developer on Vista Ultimate x64 SP 1.
Rumen
Telerik team
 answered on 23 Sep 2009
3 answers
129 views

I am utilizing client databinding and I cannot get the grid to populate with
anything.  I am returning all my data is JSON format and its verified by
Web Developer Helper.  The grid keeps displaying "No records to display.".
Code is posted below.  Any ideas.

<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
 <title></title>  
</head> 
 <script type="text/javascript">  
     function RebindGrid() {  
         var mtv = $find("<%= RadGrid2.ClientID %>").get_masterTableView();  
         mtv.rebind();  
        return false;  
    }  
    function GridCommand(sender, args) {  
 
    }    
 </script> 
<body> 
<form id="form1" runat="server">  
<asp:ScriptManager id="PlaybookScriptManager" runat="server" /> 
<asp:Button ID="dsd" runat="server" OnClientClick="return RebindGrid();" text="Rebind" /> 
<br /> 
 
<rad:RadGrid runat="server" ID="RadGrid2" AutoGenerateColumns="false" Height="670px" AllowFilteringByColumn="true">  
<MasterTableView DataKeyNames="EventID" ClientDataKeyNames="EventID" Height="670px" > 
<Columns> 
 <rad:GridBoundColumn HeaderText="EventID" DataField="EventID" /> 
 <rad:GridBoundColumn HeaderText="EventName" DataField="EventName" />
</Columns> 
</MasterTableView> 
<ClientSettings> 
 <ClientEvents OnCommand="GridCommand" /> 
 <Scrolling AllowScroll="true" /> 
 <DataBinding Location="Default.aspx" SelectMethod="GetEvents" DataPropertyName="Events"   
 FilterParameterName="filterexp" FilterParameterType="Linq" /> 
 <Selecting AllowRowSelect="true" /> 
</ClientSettings> 
</rad:RadGrid> 
</form> 
</body> 
</html> 
 

[WebMethod]  
        public static Dictionary<stringobject> GetEvents(string filterexp)  
        {  
            var filter = !string.IsNullOrEmpty(filterexp);  
            var data = new DataClasses1DataContext();  
            var events = (from e in data.Events  
                          select new 
                          {  
                              EventID = e.EventID,  
                              EventName = e.EventName  
                          })  
                         .Where(filter ? filterexp : "EventID > 0");  
 
            return new Dictionary<string,object> {{"Events", events}};  
        } 
Nikolay Rusev
Telerik team
 answered on 23 Sep 2009
3 answers
99 views
I am not able to get functioning scrollbars on a radMenu nested inside of a radpanelbar.  Here is the code:  Any help you could give would be appreciated!

//code behind

 

 

 RadPanelItem panelItem = (RadPanelItem)RadPanelBar2.FindItemByValue("templateHolder");  
            panelItem.Expanded = true;  
            panelItem.ChildGroupHeight = Unit.Pixel(150);  
 
 
            RadMenu myMenu = new RadMenu();  
            myMenu.Width = Unit.Percentage(100);  
 
 
            //myMenu.Height = Unit.Pixel(500);  
            myMenu.DefaultGroupSettings.Height = Unit.Percentage(100);  
            myMenu.EnableRootItemScroll = true;  
            //myMenu.EnableAutoScroll = true;  
 
            myMenu.AutoScrollMinimumHeight = 150;  
            myMenu.Flow = ItemFlow.Vertical;  
            myMenu.DataTextField = "Text";  
            myMenu.DataFieldID = "ID";  
            myMenu.DataFieldParentID = "ParentId";  
            myMenu.DataSource = siteData;  
            myMenu.DataBind();  
 
            panelItem.Controls.Add(myMenu);   


<telerik:RadPanelBar ID="RadPanelBar2" runat="server" Width="350px" Height="400px" 
                ExpandMode="FullExpandedItem" ExpandAnimation-Type="none" 
                CollapseAnimation-Type="none" > 
                <Items> 
                    <telerik:RadPanelItem runat="server" Text="Major" > 
                          
                        <Items> 
                            <telerik:RadPanelItem runat="server" Value="templateHolder">  
                            </telerik:RadPanelItem> 
                        </Items> 
                    </telerik:RadPanelItem> 
                </Items> 
               <%-- <CollapseAnimation Duration="100" Type="None" /> 
                <ExpandAnimation Duration="100" Type="None" />--%> 
            </telerik:RadPanelBar> 
 

 

 

 

Paul
Telerik team
 answered on 23 Sep 2009
4 answers
116 views
I have a page with an AjaxManager on it.

This page opens a modal RadWindow that displays a page that does not have either an AjaxManager or AjaxManagerProxy on it.

This popup page has a RadMultiPage control on it, one page of which contains a RadUpload control and a RadProgressManager.

When I hit the 'save' button on my popup page, the upload starts but the progress manager doesn't.

I can't figure out why.

I wondered if the controls on my popup page where being ajaxified by default as the result of being called by an ajaxified page and if the fact there were no appropriate AjaxSettings was why the progress manager wasn't appearing? TBH, I don't think it is 'cos I'm pretty sure that the upload wouldn't work if the Upload control was ajaxified.

Thoughts?

--
Stuart
Veselin Vasilev
Telerik team
 answered on 23 Sep 2009
1 answer
130 views
Hi Everybody,

I have been find a solution but until now I dint solve the problem. I'm going to explain about it.

There is a .aspx page where there is a radgrid. There are also two buttons - word button and excel button.
When the user clicks on word button for example it is invoked its event:

protected

 

void btnExportWord_Click(object sender, System.Web.UI.ImageClickEventArgs e)

 

{

 

    RadGrid radGrid = this.getData();

 

 

    this.ConfigureExportation(radGrid);

 

    radGrid.MasterTableView.ExportToWord();

}

How you can see, I create a new radgrid where it is filled out by getData method. I created a new radgrid because on page, the radgrid has jus some columns and I'd like to export all columns from table to word or excel file.

See the getData() Method:

 

private

 

RadGrid getData()

 

{

 

    RadGrid radGrid = new RadGrid();

 

    radGrid.DataSource = gobjBLProduct.List(

this.Company, this.txtSearch.Text.Trim());

 

    radGrid.DataBind();

 

 

    return radGrid;

 

}

Now, See ConfigureExportatio() Method:

 

private

 

void ConfigureExportation(RadGrid pradGrid)

 

{

    pradGrid.ExportSettings.ExportOnlyData =

true;

 

    pradGrid.ExportSettings.IgnorePaging =

true;

 

    pradGrid.ExportSettings.OpenInNewWindow =

true;

 

    pradGrid.ExportSettings.FileName =

"List of Product - " + DateTime.Now.ToShortDateString();

 

}

The problem is when I click on word button there is an exception where it is showed this message: "RadGrid must be DataBound" before exporting."

I didnt undertand why this error. What mistake did i do?

Can anybody help me, please?

Thank you for attention,

Carlos

Daniel
Telerik team
 answered on 23 Sep 2009
3 answers
305 views
Hi,

I have a RadWindow in which a page is shown, containing a form. I wish the first RadTextBox in that Form to have focus, which works as it should when the page is loaded directly.
But, when I load the page in a RadWindow (dynamically, as it uses a QueryString for parameters, so the url is set from javascript), none of the Controls have focus.
I have altered the page by adding a line that explicitly sets focus to the control in the page load event, but it didn't work. I finally discovered, that setting ShowContentDuringLoad="true" on the RadWindow solved the problem. But that has a negative effect, because if the RadWindow is opened a second time (with a different QueryString), the old page is displayed while the new is loading, which gives a strange effect.

I have tried adding a javascript function to the onload event of the page, which sets focus to the RadTextBox, but even that seems cancelled by the RadWindow.

How can I make sure that the RadTextBox has focus after opening the page in a RadWindow?
Georgi Tunev
Telerik team
 answered on 23 Sep 2009
1 answer
228 views
Hi

Currently I have integrated a page with Telerik controls to a site that already uses Ajax.
This site is an external site, hence firewall settings, load balancer are all present
Everything works fine in IE6. But the problem is with IE 7.

I have update panels on my page, then Telerik Tree View , editor, toolbar , splitter , rad pane etc.
We have a save button , this save performs an ajax postback. After the ajax postback, any thing that we do throws javascript error , stating "Object does not support this property or function".

Has any one faced this issue before. If so was it solved.
If any details reagarding the configurations can be provided if required.

Any help would be appreciated.
This is occuring in our live environment , when we connect through the internet.

Thanks and Regards
Anumole Mathew
T. Tsonev
Telerik team
 answered on 23 Sep 2009
3 answers
190 views
I have a GridDropDownColumn as
<telerik:GridDropDownColumn DataField="CategoryID" DataSourceID="SqlDataSource2" HeaderText="Category" ListTextField="CategoryName" ListValueField="CategoryID" UniqueName="Category"></telerik:GridDropDownColumn>
and the radgrid has DataSourceID="SqlDatSource1". EditMode=InPlace.
It works fine in Edit mode but when it is not in Edit mode, the Category column will show the first value of the DropDown if SqlDatSource1 SelectCommand returns a row with Category is null. How to keep the cell value blank in View mode in this case?
Thanks,
d-cpt

Nikolay Rusev
Telerik team
 answered on 23 Sep 2009
3 answers
134 views

Hi,

I have a problem with a custom fields in my RadEditor.Modules.<lang>.resx file. I've decided to extend NodeInspector with several fields for custom attributes (e.g. attr1, attr2, etc.), using ~\Scripts\Editor\Modules.js 

In RadEditor.Modules.<lang>.resx file I've added additional fields for each attribute with description, also to the RadEditor.Modules.resx file add the same attributes. 

But when I launch app near custom attributes always stands description «undefined». When I change default fields changes is apllying, but custom fields are ignored. 

Can you help me?

Thanks in advance

P.s. sorry for my english

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 23 Sep 2009
2 answers
211 views
I have various sliders in my application, and have noticed that every time the page (or even UpdatePanel) posts back, the slider's items flicker.  When the slider's items are dynamically retrieved from a database, this flickering is much more noticeable and interfering.  I tried implementing a simple slider with only a few hard-coded items, and I still get the flicker (see code below).

<asp:UpdatePanel runat="server" ID="upSlider">  
    <ContentTemplate> 
        <telerik:RadSlider runat="server" ID="sldrTest" AutoPostBack="true" ItemType="Item">  
            <Items> 
                <telerik:RadSliderItem Text="Value 1" Value="1" /> 
                <telerik:RadSliderItem Text="Value 2" Value="2" /> 
                <telerik:RadSliderItem Text="Value 3" Value="3" /> 
                <telerik:RadSliderItem Text="Value 4" Value="4" /> 
                <telerik:RadSliderItem Text="Value 5" Value="5" /> 
            </Items> 
        </telerik:RadSlider> 
    </ContentTemplate> 
</asp:UpdatePanel> 

Is there any way to have my slider persist its items across postbacks, without having to re-draw them?  Obviously, if I set AutoPostBack="false" then there won't be any flickering, but I would have no way to handle a value change.

I've already tried the following:
  • Setting EnableAjaxSkinRendering="true"
  • Setting EnableViewState="true"
  • Setting AutoPostBack="false"
  • Placing slider inside and outside of an <asp:UpdatePanel>
  • Hard-coding slider items and dynamically adding slider items
Ryan
Top achievements
Rank 1
 answered on 23 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?