Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views

Hi,

I am using RadGrid of version "2009.2.701.35". I need have some 5 to 7 columns as invisible columns.  My template column goes like this:
<telerik:GridTemplateColumn HeaderText="" UniqueName="colAttributeId" DataField="AttributeId" ItemStyle-Width="0px" HeaderStyle-Width="0px">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" />
<ItemTemplate><asp:Label ID="lblAttributeId" runat="server" Text='<%# Bind("AttributeId") %>'></asp:Label></ItemTemplate>
</telerik:GridTemplateColumn>

 

But in the screen the borders are getting displayed (which we want to avoid). Please see the screenshot attached.

We want to access those data from clientside. If we made the column's visible property as 'False' means we couldnt access those data from clientside javascript code. So we specified the width as "0px".

I tried even setting the border's to 0px, it shows an empty space.
<HeaderStyle BorderStyle="None" BorderWidth="0px" />
<ItemStyle BorderStyle="None" BorderWidth="0px" />

If anyone know how to access the invisible column's data from client-side pls share with me.

Thanks in advance.

 

 

Shinu
Top achievements
Rank 2
 answered on 30 Jun 2010
1 answer
167 views
Hello ,

I have a list box which items are check boxes
I need to add a textbox that filters that list items by the check boxes content
Is there any telerik control that perform this function?

Thanks in advance
Sebastian
Telerik team
 answered on 30 Jun 2010
1 answer
129 views
Is there a parameter to specify WHERE to load the scripts in the resulting markup?

I'd like them to load at the bottom of the page if possible...
T. Tsonev
Telerik team
 answered on 30 Jun 2010
1 answer
162 views
Hello Guys,

I am using from the demos the code to validate a control within the grid and it works well.  I had to add a few additional lines to validate more than one control, and I wonder whether you would review it and tell me whether there is a better way to do it, or if this is optimum.

Thanks a lot, here is the code that works but may need improving.  You can see that I have taken the demo code and then added editor2, cell2, validator2 etc

            if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
            { 
                GridEditableItem item = e.Item as GridEditableItem; 
                GridTextBoxColumnEditor editor = (GridTextBoxColumnEditor)item.EditManager.GetColumnEditor("PersonId"); 
                TableCell cell = (TableCell)editor.TextBoxControl.Parent; 
 
                RequiredFieldValidator validator = new RequiredFieldValidator(); 
                editor.TextBoxControl.ID = "ID_for_validation"; 
                validator.ControlToValidate = editor.TextBoxControl.ID; 
                validator.ErrorMessage = "You must enter a PersonId"; 
                cell.Controls.Add(validator); 
 
                GridTextBoxColumnEditor editor2 = (GridTextBoxColumnEditor)item.EditManager.GetColumnEditor("ContactWhere"); 
                TableCell cell2 = (TableCell)editor2.TextBoxControl.Parent; 
 
                RequiredFieldValidator validator2 = new RequiredFieldValidator(); 
                editor2.TextBoxControl.ID = "ID_for_validation2"; 
                validator2.ControlToValidate = editor2.TextBoxControl.ID; 
                validator2.ErrorMessage = "You must enter a H, C or M"; 
                cell2.Controls.Add(validator2); 
 

Thanks in advance for any comments you wish to make,

Mark Breen
Ireland
1987 BMW R80 g/s

Tsvetoslav
Telerik team
 answered on 30 Jun 2010
4 answers
186 views
Hi,

I am a new user to the Telerik controls.
My requirements are to display, add, edit, activate and deactivate records from the Radgrid.

Now the above functionalities are required to be integrated using code behind, c# pages.
The stored procedures, middle layer c# classes have been written already.

I need to integrate the controls by creating objects of the classes and then bind the controls usign the methods in the classes.
I found the edit and add functionalities have been integrated using the ASPX codes, which is not my requirement.

Code examples would be of great help.

Thanks.

Regards,
Debashis
Debashis Pyne
Top achievements
Rank 1
 answered on 30 Jun 2010
1 answer
87 views
Team,

In my apllication I have RadComboBox for Template Selection.
RadUpload Control for selecting the Word Document .
There's a Button (called Merge) to merge the Word Docs with the Templates.
Problem is, if the merge happens successfully I need to show the Hyperlink otherwise not.
I'm handling this at the Radcombbox selectedindexchanged....but its not working...pls. advise.


thanks
Yana
Telerik team
 answered on 30 Jun 2010
3 answers
98 views
We have an issue with the display of a vertical RadTabStrip in IE 6 (which I guess we're still supporting).

Rendered html is:
<td valign="top" class="grayBak" style="width: 300px;"> <%-- Background for tabs: tabs should fill its width --%>
    <div id="ctl00_ctl00_CPH1_TabStripMyProfilePanel">
        <div id="ctl00_CPH1_TabStripMyProfile" class="RadTabStripVertical RadTabStrip_SimpleAMHC RadTabStripLeft_SimpleAMHC">
            <div class="rtsLevel rtsLevel1">

Even though our containing div is 300px and we've styled several components (e.g. .rtsIn) to be wide,  in IE 6 the tabstrip width appears to be limited to 150px (See attached image "vertical radtabstrip width in ie6.jpg).  Other browsers are OK.

Any ideas on fixing this for IE6?

Thanks,
Tom
Yana
Telerik team
 answered on 30 Jun 2010
3 answers
184 views
I've got a problem with selected the active node.

It works on the root nodes but not on child nodes, if a child node is selected the root node is not expanded.

 Protected Sub panelmenu1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles panelmenu1.ItemDataBound 
 
        Dim dataRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView) 
  
       If functions.FucGetPageID = dataRow("ID").ToString() Then 
 
            e.Item.Selected = True 
            e.Item.Expanded = True 
 
        End If 
 
    End Sub 

Also viewstate is disabled if it matters.

Frontside code:

<telerik:RadPanelBar runat="server" EnableViewState="false" CausesValidation="False" EnableEmbeddedSkins="False" ID="panelmenu1" Width="100%" OnPreRender="panelmenu1_PreRender" OnItemClick="RadPanelBar1_ItemClick" /> 


Anyone has an idea how to select the parent node and expand it ?
David Blok
Top achievements
Rank 1
 answered on 30 Jun 2010
1 answer
144 views
I have to make a static website, it cannot use a database.  My co-worker needs to modify menu.xml which loads the RadMenu menu items.  I want to make a managment panel that will allow them to modify items in the menu.xml, which will also export a sitemap.xml for search engines.

My lead developer suggested looking to see if the RadMenu editor had a builder like the GUI design time builder that can be used at runtime, instead of creating something from scratch with a treeview.  Using VS object browser, there doesn't seem to be any method that can XML write out the tree structure of the RadMenu during runtime.  Am I overlooking something?  Can this be done with the RadMenu builder at runtime, or is it better to write something from scratch?

Thanks in advance.
Yana
Telerik team
 answered on 30 Jun 2010
1 answer
179 views
I have a telerik radgrid inside of an xmlhttp panel that I refresh at a given interval with the following javascript...
function startWorklistRefresh() {
                if (wlIntervalId == 0) {
                    wlIntervalId = setInterval("reloadWorklist();", wlCtrlAutoRefreshRate);
                }
            }
            function reloadWorklist() {
                $find("<%= XmlGridPanel.ClientID %>").set_value("Reload");
            }
function OnClientResponseError(panel,args){
    alert('wtf');
}

We update our site using the app_offline.htm trick for IIS. The problem is that I can see (via FF/Firebug) the reloadworklist happening but there are 404 errors happening (as expected) when I take the site offline...but the user is does not see our app_offline page..I tried adding a clientside event for OnClientResponseError but that event was never hit...what I would like to have is a hook so I can redirect the user to some default.aspx page...I also tried the custom errors web.config but apparently that doesn't take effect for an xmlhttppanel request...any help would be greatly appreciated.

thanks
ds


Pero
Telerik team
 answered on 30 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?