Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
93 views
Hi
I require a new column for edit link button in the self referencing radgrid. The edit button should not appear for the parent folder alone.

Krishnan
Princy
Top achievements
Rank 2
 answered on 20 Feb 2010
4 answers
127 views
hello , 
i am using panel at rtl direction but the collapse button doen't work when the direction of the panel is rtl , and works fine when the direction is ltr.
is this a bug at the control  ??? 
Michael
Top achievements
Rank 2
 answered on 20 Feb 2010
0 answers
53 views
I am using vs 2008sp1 and after I installed telerik trial version, I found that when I try to debug my web page, all of my aspx.vb file in the text editor will be locked (Read-only). But I am sure that would not be happened b4 I install this tool kit. Why?
Stephen Lam
Top achievements
Rank 1
 asked on 20 Feb 2010
3 answers
168 views
Hi,

I'm using ASP.NET Ajax RadGrid. Is there a way to specify the column width programmatically from the code behind?
I need store column widths on the server side or cookies and further load those values, so the next time user opens the web page he get same columns size.

Thanks,
Ruben.
Princy
Top achievements
Rank 2
 answered on 20 Feb 2010
1 answer
116 views
Hi,

I am getting the following error when I try to edit a Grid Row. One of the columns in the grid is a templated column (created programatically):

Microsoft Jscript runtime error:
Sys.WebForms.PageRequestManagerServerErrorException: Unable to cast object of Type RadLookupTextBox to type System.Web.UI.IBindableTemplate.

Below is the source code of the function that creates the Templated Column as well as the Templated Class.
Please let me know where the problem is.

private void CreateTemplatedColumn(string caption, string datafield, string hyperlinkfield, int width)  
    {  
        RadLookupTextBox txt = new RadLookupTextBox();  
        txt.BindingName = datafield;  
        txt.ControlName = "gridtextboxcoleditor_" + datafield;  
        txt.FieldName = datafield;  
        txt.HyperlinkFieldName = hyperlinkfield;  
        txt.Skin = "Office2007";  
        txt.Width = width;  
        txt.ButtonCssClass = "RadInputButton";  
        txt.ButtonClickFunctionName = "RadTextBoxButtonClick";  
        txt.EditMode = true;  
 
        RadLookupTextBox link = new RadLookupTextBox();  
        link.BindingName = datafield;  
        link.ControlName = "gridhyperlinkcoleditor_" + datafield;  
        link.FieldName = datafield;  
        link.HyperlinkFieldName = hyperlinkfield;  
        link.Width = width;  
        link.EditMode = false;  
          
        GridTemplateColumn col = new GridTemplateColumn();  
        col.EditItemTemplate = txt;  
        col.ItemTemplate = link;  
        col.UniqueName = datafield;  
        col.DataField = datafield;  
        col.HeaderText = caption;  
        col.ItemStyle.Width = Unit.Pixel(width);  
          
        rgEntity.MasterTableView.Columns.Add(col);  
                  
    }  
 

public class RadLookupTextBox : ITemplate   
{  
    // Make Properties  
    private string m_controlName = "", m_bindingName = "";  
    private string m_fieldName = "", m_hyperlinkFieldName;  
    private string m_skin = "", m_buttonCssClass = "";  
    private string m_functionButtonClick;  
    private int m_width = 0;  
    private bool m_editMode = false;  
 
    public string ControlName  
    {  
        set 
        {  
            m_controlName = value;  
        }  
    }  
    public string BindingName  
    {  
        set 
        {  
            m_bindingName = value;  
        }  
    }  
    public string FieldName  
    {  
        set 
        {  
            m_fieldName = value;  
        }  
    }  
    public string HyperlinkFieldName  
    {  
        set 
        {  
            m_hyperlinkFieldName = value;  
        }  
    }  
    public string Skin  
    {  
        set 
        {  
            m_skin = value;  
        }  
    }  
    public string ButtonCssClass  
    {  
        set 
        {  
            m_buttonCssClass = value;  
        }  
    }  
    public string ButtonClickFunctionName  
    {  
        set 
        {  
            m_functionButtonClick = value;  
        }  
    }  
    public int Width  
    {  
        set 
        {  
            m_width = value;  
        }  
    }  
    public bool EditMode  
    {  
        set 
        {  
            m_editMode = value;  
        }  
    }  
 
 
    public RadLookupTextBox()  
    {  
        //  
        // TODO: Add constructor logic here  
        //  
    }  
 
    public RadLookupTextBox(string controlName, string bindingName)  
    {  
        this.m_controlName = controlName;  
        if (bindingName != string.Empty)  
            this.m_bindingName = bindingName;  
    }  
 
    public void InstantiateIn(System.Web.UI.Control container)  
    {  
        if (m_editMode)  
        {  
            RadTextBox textbox = new RadTextBox();  
            textbox.DataBinding += new EventHandler(textbox_DataBinding);  
            textbox.ID = this.m_controlName;  
            textbox.Skin = m_skin;  
            textbox.Width = Unit.Pixel(m_width);  
            textbox.ShowButton = true;  
            textbox.ButtonCssClass = m_buttonCssClass;  
            textbox.ClientEvents.OnButtonClick = m_functionButtonClick;  
            container.Controls.Add(textbox);  
        }  
        else 
        {  
            HyperLink hl = new HyperLink();  
            hl.DataBinding += new EventHandler(hyperlink_DataBinding);  
            hl.ID = this.m_controlName;  
            hl.Width = Unit.Pixel(m_width);  
            container.Controls.Add(hl);  
        }  
    }  
 
    private void textbox_DataBinding(object sender, EventArgs e)  
    {  
        RadTextBox textbox = (RadTextBox)sender;  
        GridEditableItem container = (GridEditableItem)textbox.NamingContainer;  
        textbox.Text = ((DataRowView)container.DataItem)[m_fieldName].ToString();  
    }  
 
    private void hyperlink_DataBinding(object sender, EventArgs e)  
    {  
        HyperLink hl = (HyperLink)sender;  
        GridItem container = (GridItem)hl.NamingContainer;  
        hl.Text = ((DataRowView)container.DataItem)[m_fieldName].ToString();  
        hl.NavigateUrl = ((DataRowView)container.DataItem)[m_hyperlinkFieldName].ToString();  
    }  
 
 
}  

Thanks.
Princy
Top achievements
Rank 2
 answered on 20 Feb 2010
1 answer
78 views
Using a RadGrid that has 'WebUserControl' as EditFormType:

<EditFormSettings EditFormType="WebUserControl" UserControlName="UserControls/NewsAddUpdate.ascx"
    <EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
</EditFormSettings> 

In the WebUserControl I would love to use a RadToolbar to issue commands. That is instead of
<asp:Button ID="buttonAddUpdate" Text='<%# DataItem is Telerik.Web.UI.GridInsertionObject ? "Insert" : "Update" %>' runat="server" CommandName='<%# DataItem is Telerik.Web.UI.GridInsertionObject ? "PerformInsert" : "Update"%>' /> 
<asp:Button ID="buttonCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" /> 
 

I want to use
<telerik:RadToolBar runat="server" ID="toolbarCommands" Skin="Office2007"  > 
    <Items> 
        <telerik:RadToolBarButton runat="server" Text="Cancel" CommandName="Cancel" CausesValidation="false" /> 
        <telerik:RadToolBarButton runat="server" CommandName="Update" /> 
        <telerik:RadToolBarButton runat="server" CommandName="PerformInsert" /> 
    </Items> 
</telerik:RadToolBar> 

However, clicking the RadToolBarButtons has no effect.
What am I missing

Shinu
Top achievements
Rank 2
 answered on 20 Feb 2010
2 answers
130 views
Hi,

this shanker my  requirement is Rad grid filter by rad combo box with insert and update and delete 

I already seen this demo 



but here not insert and update and delete. I want filter and  with insert and update and delete .

please how to do this and  it's argent please send the solution ..

I want same application but with insert and update and delete


thanks and regrades 
shanker.B


shanker bangari
Top achievements
Rank 1
 answered on 20 Feb 2010
5 answers
136 views
Hi,
Im using the delf referencing radgrid. I need a requirement to display a image before the text in the grid column. I dont require a new image column for that, just the image before the text. Can you help me out?

Krishnan
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2010
4 answers
74 views
I Want to used RadEditor to caputure Body part of the email.
when i am typing 4 to 5 lines in radeditor without enter key, and send as Email, it comes up as one line...
for exapmle,
testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing

but i would like to have in email like.

testing testing testing testing testing testing
testing testing testing testing testing testing testing
testing testing testing testing testing testing

so i would like to have Radeditor to add <Br> some where but do not want to break the one word.
in other word i would like to give specific length for one line in editorm, and then after it will add <br>

Thanks in advance,
Vish
vick
Top achievements
Rank 1
 answered on 19 Feb 2010
3 answers
151 views
Hello,

I am doing an export to CSV for a grid.
When testing in IE7, when opening the file (in excel) without saving first, the file name is converted to its URL Encoded equivalent.
e.g. %53%74%6f%72%65%45%78%70%6f%72%.csv
We have determined that this behavior is specific to IE7 and only occurs if opening the file, not saving the file first.

Export settings:
//set the export settings  
rgStoreManagement.ExportSettings.FileName = "StoreExport";  
rgStoreManagement.ExportSettings.OpenInNewWindow = true;  
rgStoreManagement.ExportSettings.IgnorePaging = true;  
rgStoreManagement.ExportSettings.ExportOnlyData = true;  
 
//export to csv  
rgStoreManagement.MasterTableView.ExportToCSV(); 


Is there a work around?

Thanks,
Jon
Daniel
Telerik team
 answered on 19 Feb 2010
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?