Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
311 views
I have an issue I need some help with.  I have a CMS that uses the Rad TreeView to show all of the page titles, values, etc.  I have a panel that sits to the left of that the controls different functions of those pages.  The TreeView is loaded via a ServerSideCallBack.  So the root nodes are loaded, when expanded it makes a call to a database to get all of the child noeds.  That works great.  But if I select a node and want to move it up lets say.  The database get updated successfully, but the state of the TreeView is still the same.  Is there a way to click the "Move Up" button, update the database, then reload and expand the parent of the selected node?  So basically it would rebuild the tree, and on a callback it would call the AddChildNodes for the selected node in the tree and expand it.  Is this possible?

Thank you.
Simon
Telerik team
 answered on 30 Jun 2008
3 answers
120 views
My global theme is not getting displayed  properly (getting rendering errors like can't find Rad dlls) if i use styleSheetTheme property in the web.config file.
This happens only in VS 2008, when i was using VS 2005  everything was fine.
It is the problem only with Design View, runtime everything is fine.
i am also using Master Pages throughout my Site.

And where can i find Telerik.Web.UI dll.I   installed Rad controls for ASP.NET Q1 2008 and could not find that dll in my machine.
And also why are my telerik ASP.NET controls not in GAC by default ??

Venkat Sontineni
Top achievements
Rank 1
 answered on 30 Jun 2008
1 answer
147 views
Hello,

 When we try to copy and paste the excel content into the radEditor it treats as a html table but I wish to take the contents of the copied cells from excel and paste it there without any html formatting.

- Krishna.
Shinu
Top achievements
Rank 2
 answered on 30 Jun 2008
10 answers
380 views
hi

I have an datagrid inside an radajaxpanel.

This way worked for me perfect, until i update to the newest telerik component.

i select the grid client side with this command:

e.Item.Attributes.Add("onclick","javascript:__doPostBack('myClick'," + e.Item.ItemIndex + ");" );

It performs server side an postback, which i can get the information from the selected row !

But today, when i use this, sometimes an alert window occures in IE. This site could not be displayed. Any idea ???
I'm sure, something with radajaxpanel and __doPostPack(...) makes some problem.




protected
void TeilnehmerTable_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)

{

if( (e.Item.ItemType == ListItemType.Item) ||

(e.Item.ItemType ==

ListItemType.AlternatingItem) ||

(e.Item.ItemType ==

ListItemType.SelectedItem) )

{

e.Item.Attributes.Add(

"onmouseover","this.style.cursor='hand'");

e.Item.Attributes.Add(

"onclick","javascript:__doPostBack('myClick'," + e.Item.ItemIndex + ");" );

}


Sebastian
Telerik team
 answered on 30 Jun 2008
1 answer
80 views
I have desined a big project with r.a.d.controls Q4 2006 for ASP.NET (trial version)

When the project was done, we bought (RadControls for ASPNET AJAX Q1 2008)

But we have problems with compatibility.

How can I make the licence to operate a new library and the old controls?


PS: Can you change e-mail in my profile? Please, send copy of your answer to juuunior@inbox.ru, and sorokin@mzta.ru
Paul
Telerik team
 answered on 30 Jun 2008
1 answer
134 views
In the "a step by step learning guide" to RadControls for ASP.NET on page 82:

16. From the Smart Tag of the RadAjaxServiceManager (what a mouthful that is!), select the Configure

Ajax Service Manager Link. In the WebServiceReference Collection Editor dialog, click the Add button.

Type in the Path below and click OK:

How do I do this using the RadAjaxManager? How do I get the Javascipt generated to call my webservice.

Please update the learning guide for the AJAX controls.

Sebastian
Telerik team
 answered on 30 Jun 2008
5 answers
182 views
Hello!

I have a radgrid with a detailtable that is preloaded and expanded at the clientside.
If I switch to editmode, The detailtable is lost but the row is expanded - the expanded symbol is there but no table underneath.

Here is the aspx code:

<telerik:RadGrid ID="rgFiles" runat="server" 
    Skin="Office2007" 
    AllowAutomaticDeletes="false" 
    meta:resourcekey="radGrid" 
    AllowAutomaticInserts="false" 
    AllowAutomaticUpdates="false" 
    AllowMultiRowEdit="false" 
    AllowMultiRowSelection="false" 
    AllowSorting="true" 
    AllowPaging="true" 
    PageSize="10" 
    OnNeedDataSource="rgFiles_NeedDataSource" 
    OnDeleteCommand="rgFiles_Delete" 
    OnItemCommand="rgFiles_ItemCommand" 
    OnDetailTableDataBind="rgFiles_DetailTableDataBind" 
    AutoGenerateColumns="false"> 
    <PagerStyle Mode="NumericPages" /> 
    <ClientSettings> 
        <Selecting AllowRowSelect="true" /> 
    </ClientSettings> 
    <MasterTableView DataKeyNames="Id" HierarchyLoadMode="Client" EditMode="InPlace"> 
        <Columns> 
        <telerik:GridButtonColumn 
                    ButtonType="ImageButton" 
                    UniqueName="Download" 
                    CommandName="ItemCommand" 
                    ImageUrl="~/Img/Type.gif" 
                    CommandArgument="download"> 
            </telerik:GridButtonColumn> 
 
      <telerik:GridBoundColumn meta:resourcekey="colFilename" ReadOnly="true" 
                UniqueName="Filename" DataField="Filename" > 
            </telerik:GridBoundColumn> 
 
     <telerik:GridBoundColumn ReadOnly="true" 
                Visible="false" UniqueName="Mimetype" DataField="Mimetype" > 
            </telerik:GridBoundColumn> 
 
    <telerik:GridBoundColumn meta:resourcekey="colSize" ReadOnly="true" 
                UniqueName="Size" DataField="Size" > 
            </telerik:GridBoundColumn> 
 
    <telerik:GridBoundColumn meta:resourcekey="colCreateDate" ReadOnly="true" 
        UniqueName="CreationDate" DataField="CreationDate" > 
    </telerik:GridBoundColumn> 
 
        <telerik:GridButtonColumn 
                    meta:resourcekey="colDelete" 
                    UniqueName="DeleteColumn"   
                    CommandName="Delete" 
                    ButtonType="ImageButton" 
                    ImageurL="~/Img/delete.gif" 
                    Display="false"> 
        </telerik:GridButtonColumn> 
        </Columns> 
   <DetailTables> 
            <telerik:GridTableView  Name="Keywords" 
                                    EditMode="InPlace" 
                                    ShowFooter="False" 
                                    meta:resourcekey="detailtable"> 
                <columns> 
                    <telerik:GridTemplateColumn UniqueName="colKeywords"> 
                    <HeaderStyle Width="200px"></HeaderStyle> 
                    <HeaderTemplate> 
                        <asp:Label meta:resourcekey="lblHeadKeywords" ID="lblHeadKeywords" runat="server" ></asp:Label> 
                    </HeaderTemplate> 
                    <ItemTemplate> 
                        <p> 
                            <asp:Label meta:resourcekey="lblKeywords" ID="lblKeywords"  
                            runat="server" Text='<%# Eval("SearchField") %>' Width="100%"> 
                            </asp:Label> 
                        </p> 
                    </ItemTemplate> 
                     <EditItemTemplate> 
                        <p> 
                        <asp:TextBox ID="txtKeywords" runat="server" Text='<%# Eval("SearchField") %>' TextMode="MultiLine" > 
                        </asp:TextBox> 
                        </p> 
                      </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridEditCommandColumn FooterText="EditCommand footer" 
                        UniqueName="EditCommandColumn" HeaderText="Edit&#160;Command Column"> 
                    </telerik:GridEditCommandColumn> 
                </columns> 
                </telerik:GridTableView> 
        </DetailTables> 
    </MasterTableView> 
</telerik:RadGrid> 
 
and heres the databinding source:

  protected void rgFiles_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) 
        { 
            if (this.files == null) 
            { 
                if (this.NeedDataSource != null) 
                { 
                    AddFileEventArgs afea = new AddFileEventArgs(); 
                    afea.FileOwnerId = this.OwnerId; 
                    this.NeedDataSource(this, afea); 
                    this.files = afea.Files;             
                } 
            } 
            if (sender is RadGrid) 
            { 
                (sender as RadGrid).DataSource = this.files; 
            } 
        } 
 
  protected void rgFiles_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e) 
        { 
            ICollection<IPortalFile> coll = null; 
            if (rgFiles.DataSource != null) 
            { 
                coll = rgFiles.DataSource as ICollection<IPortalFile>; 
            } 
            if (coll == null && this.files != null) 
            { 
                coll = this.files; 
            } 
 
            if (coll == null) 
                return; 
            string id = (string) e.DetailTableView.ParentItem.GetDataKeyValue("Id"); 
 
            foreach (IPortalFile file in coll) 
            { 
                if (file.Id.Equals(id)) 
                { 
                    e.DetailTableView.DataSource = new IPortalFile[]{ file }; 
                } 
            } 
             
        } 
 
 
        protected void OnPreRender(object sender, EventArgs e) 
        { 
            this.DataBind(); 
            if (this.enabled) 
            { 
                this.btnAddFile.CssClass = CSS_ENABLED; 
                this.rgFiles.Columns[this.rgFiles.Columns.Count - 1].Display = true; 
            } 
            else 
            { 
                this.btnAddFile.CssClass = CSS_DISABLED; 
                this.rgFiles.Columns[this.rgFiles.Columns.Count - 1].Display = false; 
            } 
            this.rgFiles.Rebind(); 
        } 
 

Thx in advance & kind regards
Sebastian
Telerik team
 answered on 30 Jun 2008
3 answers
196 views
Hello!

I have build a control that works as fileuploader. Inside the control I want to ensure that the control is not updated with a radajaxmanager that is placed on the page where the control is inlcuded.

I made a recursive FindControl method to find the RadAjaxManager from the Control hierarchy, now I want to add this conditional Postback eventhandler to the radajaxmanager:

 RadAjaxManager mgr = (RadAjaxManager) this.FindControl(this, typeof(RadAjaxManager));
            if (mgr != null)
            {
                mgr.ClientEvents.OnRequestStart =
                    "function conditionalPostback(sender, args) { "
                            +"if(args.EventTarget == \"<%= btnAddFile.UniqueID %>\")"
                           +"{"
                    +"           args.EnableAjax = false;"
                           +"}"
                       +"}";
            }


This doesn' work, I always encounter the javascript error: " '}' needed" when I load the page.

Is there an other possibility to avoid an ajax request by a control? I really need this feature!

Thx in advance & kind regards
Yavor
Telerik team
 answered on 30 Jun 2008
1 answer
90 views
hello!

Can i overwrite the style for the selected page number in {4}? (NextPrevAndNumeric)

Using Firebug i found out that the style:

.GridPager_WebBlue div span, .GridPager_WebBlue a, .GridPager_WebBlue .sliderPagerLabel_WebBlue

changes the color of the selected page number. But i can't overwrite it.

Thanks for help!
Regards, radek

Dimo
Telerik team
 answered on 30 Jun 2008
1 answer
115 views
None of the items in the ToolStrip in the RadEditor for MOSS (ver. 5.1.0) respond and the second row of of the ToolStrip is only displaying the vertical seperators.  Let me know how to send a screenshot and I'll get you a pic of what is going on.

George
Telerik team
 answered on 30 Jun 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?