Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
237 views
I ran the register controls in toolbox for VS 2008 and it won't install them, here is the log:

INSTALL:  could not be found. (Exception from HRESULT: 0x80030002 (STG_E_FILENOTFOUND))
INSTALL:    at EnvDTE80.Solution2.AddFromTemplate(String FileName, String Destination, String ProjectName, Boolean Exclusive)
   at Telerik.Installation.ToolBoxInstaller.Init()
   at Telerik.Installation.ToolBoxInstaller.Execute(String command)

Anyone else run into this?????








Walter
Top achievements
Rank 1
 answered on 28 Apr 2009
3 answers
215 views
 RadWindow downloaddoc = new RadWindow(); 
             
            
        downloaddoc.NavigateUrl = "ThankYou.aspx"
        downloaddoc.Visible = true
        downloaddoc.VisibleOnPageLoad = true
        RadWindowManager1.Windows.Add(downloaddoc); 
this is my code which is used on a button click

I have a link in the thankYou.aspx...

Once thats clicked i want the Window to close and the Browser to go to the URL which was in the link.

Thanks in advance....
Georgi Tunev
Telerik team
 answered on 28 Apr 2009
2 answers
195 views
I am using an example to show / hide filter rows from documentation, but The Form Decorator is making them behave oddly.

When you go to click the radio button it will not check unless you are slightly off the button to the right side on the First Letter of the Text.

Is this a bug ?  There is no other style applied to the radio buttons.

Show filters

<br /> <input id="Radio1" type="radio" name="showHideGroup" onclick="showFilterItem()"/>Yes &nbsp;

 

 

<input id="Radio2" type="radio" name="showHideGroup" onclick="hideFilterItem()"/>No

 

calls :

 

 

<script type="text/javascript">

 

 

 

 

 

 

function showFilterItem() {

 

$find(

'<%=RadGrid1.ClientID %>').get_masterTableView().showFilterItem();

 

}

 

function hideFilterItem() {

 

$find(

'<%=RadGrid1.ClientID %>').get_masterTableView().hideFilterItem();

 

}

 

</script>

 

 

 

Georgi Tunev
Telerik team
 answered on 28 Apr 2009
5 answers
139 views
I've been searching the forum and demos for the last 2 hours now and nothing i have found has worked.

Here's my scenario

I have a radwindow popping up where the user searches for a company by name and the results are populated to a radGrid. the user then selects the correct company and the Company database ID is retrieved using the following code.
protected void rGridComps_SelectedIndexChanged(object sender, EventArgs e)  
    {  
        foreach (GridDataItem item in rGridComps.MasterTableView.Items)  
        {  
            if (item.Selected)  
            {  
                compID = int.Parse(item["ID"].Text.ToString());  
                Label1.Text = "<script>closeWin()</" + "script>";  
            }  
        }  
    } 
What I want to do is return the value now stored in compID to the parent page along with the contents of a text box which holds the company name. I am trying this using the following.
function closeWin()  
{  
     var oWnd = GetRadWindow();  
     alert(compID);   
     oWnd.close(compID, rtbCompName.Text);  
The window will not close when i add the values to the close function, without these values it works just fine

The closest I have come to a solution is the following demo

http://demos.telerik.com/aspnet-ajax/window/examples/clientsideevents/defaultcs.aspx?product=window

but unfortunately it doesn't show the code for the dialog popup window, which I find very strange

I have the following code server side
function OnClientClose(sender, eventArgs)  
{  
    if (eventArgs.get_argument() != null)  
    {  
        alert("'" + sender.get_name() + "'" + " was closed and returned the following argument: '" + eventArgs.get_argument() + "'");  
     }  
     else  
     {  
         alert("'" + sender.get_name() + "'" + " was closed and returned no arguments'");  
     }  
Paul Taylor
Top achievements
Rank 1
 answered on 28 Apr 2009
1 answer
143 views
Hi,

I have inserted snippets in rad editor using the Snippets property of the rad editor.

Now i want to Show text instead of insert spinnet icon on the rad editor toolbar, or how can i change the icon of the insert snippet.



Thanks,
Amol
Martin
Telerik team
 answered on 28 Apr 2009
4 answers
272 views
Hi,

Here is my simple scenario :  I have one ASP.NET textbox, one ASP.NET requiredfieldvalidator that validate the ASP.NET textbox and two link Telerik RadComboBox and finally one ASP.NET submit button

My requirement is to make those two RadComboBox link each other by using the SelectedValue of the first combo box, in order to populate the other combo box.

I can achieve this by using RadAjax and configure AllowAutoPostBack of the first combo box to True, but the problem is , it cannot fire the server side event because the .ASP.NET requiredfieldvalidator perform a check at the client side.

The questions are :

1) Can i set the RadComboBox to invoke the server side event without performing full postback ? 
2) Can anybody recommend what is the correct control to achieve my business scenario ? or if i change to RadTextBox, is there any validation that i can hook to RadTextBox, but after integrating it with the RadComboBox and RadAjax, will it give an issue ?

Thanks,

hadi

After carefully
ManniAT
Top achievements
Rank 2
 answered on 28 Apr 2009
2 answers
222 views
I am having trouble referencing a user control in edit mode..

the user control of course is 'gallery1' in the edit mode template of the first column.

here are the columns of the grid...

and the code behind follows...


<Columns> 
        <telerik:GridTemplateColumn DataField="WallID" DataType="System.Int32" 
            HeaderText="WallID" SortExpression="WallID" UniqueName="WallID"
            <EditItemTemplate> 
                <uc1:gallery ID="gallery1" runat="server" /> 
            </EditItemTemplate> 
            <ItemTemplate> 
                <asp:Label ID="WallIDLabel" runat="server" Text='<%# Eval("WallID") %>'></asp:Label> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn DataField="Title" HeaderText="Title" 
            SortExpression="Title" UniqueName="Title"
            
            <ItemTemplate> 
                <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>'></asp:Label> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn DataField="Description" HeaderText="Description" 
            SortExpression="Description" UniqueName="Description"
             
            <ItemTemplate> 
                <asp:Label ID="DescriptionLabel" runat="server" 
                    Text='<%# Eval("Description") %>'></asp:Label> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn DataField="Link" HeaderText="Link" 
            SortExpression="Link" UniqueName="Link"
             
            <ItemTemplate> 
                <asp:Label ID="LinkLabel" runat="server" Text='<%# Eval("Link") %>'></asp:Label> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn DataField="Date" DataType="System.DateTime" 
            HeaderText="Date" SortExpression="Date" UniqueName="Date"
             
            <ItemTemplate> 
                <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>'></asp:Label> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
    </Columns> 



Here is the code behind... I am having trouble with the edit mode only... I need to reference the control to populate it....

the insert and everything else is working fine.

 GridDataItem item; 
        GridEditFormItem formitem; 
        GridDataItem dataItem; 
        string id; 
        Wall w; 
        ASP.uc_gallery_ascx gallery; 
        string path = Server.MapPath("~/images/wall"); 
        WebImage wi; 
 
        if (e.Item is GridEditableItem) 
        { 
            if (e.CommandName == "Edit"
            { 
                item = (GridDataItem)e.Item; 
                //item = (GridDataItem)e.Item; 
                gallery = (ASP.uc_gallery_ascx)item.FindControl("gallery1"); 
 
                Label l = (Label)item.FindControl("WallIDLabel"); 
 
                id = l.Text; 
 
                w = DataRepository.WallProvider.GetByWallId(int.Parse(id)); 
 
                gallery.Title = w.Title; 
 
                gallery.Description = w.Description; 
                gallery.DateEntered = (DateTime)w.Date; 
 
 
                //gallery.Reference.SynchronizeFileSystem(true, Server.MapPath("~/images/wall"), w.WallId.ToString()); 
                wi = WebImage.Load(Server.MapPath("~/images/wall/"), w.WallId.ToString()); 
                gallery.Reference.Value = wi; 
 
            } 
 
 
            if (e.CommandName == "Update"
            { 
                formitem = (GridEditFormItem)e.Item; 
                //item = (GridDataItem)e.Item; 
                gallery = (ASP.uc_gallery_ascx)formitem["WallID"].FindControl("gallery1"); 
 
                dataItem = formitem.ParentItem as GridDataItem; 
                id = dataItem["WallID"].Text; 
                w = DataRepository.WallProvider.GetByWallId(int.Parse(id)); 
                w.Title = gallery.Title; 
                w.Description = gallery.Description; 
                w.Date = gallery.DateEntered; 
                 
 
                DataRepository.WallProvider.Save(w); 
 
                gallery.Reference.SynchronizeFileSystem(true,path,w.WallId .ToString()); 
                 
 
            } 
 
            if (e.CommandName == "PerformInsert"
            { 
 
 
                formitem = (GridEditFormItem)e.Item; 
                //item = (GridDataItem)e.Item; 
                gallery = (ASP.uc_gallery_ascx)formitem["WallID"].FindControl("gallery1"); 
 
                dataItem = formitem.ParentItem as GridDataItem; 
                //id = dataItem["WallID"].Text; 
                w = new Wall(); 
                w.Title = gallery.Title; 
                w.Description = gallery.Description; 
                w.Date = gallery.DateEntered; 
 
 
                DataRepository.WallProvider.Save(w); 
 
                gallery.Reference.SynchronizeFileSystem(true, Server.MapPath("~/images/wall"), w.WallId.ToString()); 
 
            } 
 
            if (e.CommandName == "Delete"
            { 
                item = (GridDataItem)e.Item; 
 
                id = item.GetDataKeyValue("WallID").ToString(); 
                w = DataRepository.WallProvider.GetByWallId(int.Parse(id)); 
                 
                wi = Radactive.WebControls.ILoad.WebImage.Load(path, w.WallId.ToString()); 
                if (Radactive.WebControls.ILoad.WebImage.ExistsInFileSystem(path, w.WallId.ToString())) 
                { 
                    Radactive.WebControls.ILoad.WebImage.DeleteFromFileSystem(path, w.WallId.ToString()); 
                } 
                DataRepository.WallProvider.Delete(w); 
            } 
 



Really would appreciate any help... i cant reference gallery in edit mode... the other modes have no issues.
sircutbreaker
Top achievements
Rank 1
 answered on 28 Apr 2009
1 answer
99 views

Requirements

RadControls version

2009.1.402.35
.NET version

2.0
Visual Studio version

2008 Team System
programming language

VB.NET
browser support

all browsers supported by RadControls


Translate Advanced Options Pager
(I know there are a lot of post and telerik documents explain this methode (better then here), but for this component's version, they seems to be incompleted)

To translate the pager's advanced options, by server side code, you can declare the grid's ItemDataBound event as follow:
 Protected Sub RadGrid1_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound 
        If TypeOf e.Item Is Telerik.Web.UI.GridPagerItem Then 
            Dim lblGoToPage As Label = DirectCast(e.Item.FindControl("GoToPageLabel"), Label) 
            If Not lblGoToPage Is Nothing Then lblGoToPage.Text = "your text for PAGE:" 
            Dim lbGoToPage As Button = DirectCast(e.Item.FindControl("GoToPageLinkButton"), Button) 
            If Not lbGoToPage Is Nothing Then lbGoToPage.Text = "your text for GO" 
            Dim lblPageSize As Label = DirectCast(e.Item.FindControl("ChangePageSizeLabel"), Label) 
            If Not lblPageSize Is Nothing Then lblPageSize.Text = "your text for PAGE SIZE:" 
            Dim lbPageSize As Button = DirectCast(e.Item.FindControl("ChangePageSizeLinkButton"), Button) 
            If Not lbPageSize Is Nothing Then lbPageSize.Text = "your text for CHANGE" 
            Dim lblPageOf As Label = DirectCast(e.Item.FindControl("PageOfLabel"), Label) 
            lblPageOf.Text = lblPageOf.Text.Replace("of""your text for OF"
        End If 
    End Sub 

Ellis
Sebastian
Telerik team
 answered on 28 Apr 2009
0 answers
139 views
I have a loginview which I have an update panel wrapped around it to ajaxify it.
THe problem is the window doesnt open when a login error comes..  but it works when the update panel is removed... isnt AJAX working with Rad Window... i went through the forum and found certain topics but didnt help me directly..

protected void Login1_LoginError(object sender, EventArgs e) 
    { 
        RadWindow downloaddoc = new RadWindow(); 
 
 
        downloaddoc.NavigateUrl = "ForgotPasswordPopup.aspx"
        downloaddoc.Visible = true
        downloaddoc.VisibleOnPageLoad = true
        RadWindowManager1.Windows.Add(downloaddoc); 
    } 


Thanks in advance...
Chamira
Top achievements
Rank 1
 asked on 28 Apr 2009
3 answers
333 views
I am new to using rad controls and I am in the process of creating a simple front end to a database. The tables in the database are set up in such a way that I have a many-to-many relationship with an intermediate table. An example is I have a vendor table and a contact table and an intermediate table called vendor-contact which has the vendor id and contact id and it links the other 2 tables. I am using a radgrid control and am having difficulty setting up the hierarchy with the vendor being the master table and the contacts being the detail table. Is it possible to use the hierarchy in radgrid with a many-to-many relationship? If so, does someone have a sample of the select query I could use for the details table?


Also, on a different question, I would like to use the tooltip so that when a user hovers over the vendor name, all the data from the vendor table populates in the tooltip. Is it possible to combine the radgrid and the tooltip?

Thanks in advance,
Laura
Tomasz
Top achievements
Rank 1
 answered on 28 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?