Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
162 views
Hi
I tried to hide and unhide columns with different option but nothing looks working with RadGrid.

1. I have a dropdown- checkbox with Column names,whose values I am storing in hashtable on button click.

protected void btnChooseColumns_Clicked(object sender, EventArgs e)
   {
       ht = new Hashtable();
       foreach (RadComboBoxItem item in rcColumnChooser.Items)
       {
           CheckBox checkBox = (CheckBox)item.FindControl("CheckBox");
           ht.Add(item.Text, checkBox.Checked);
       }
          BindGrid();
   }

Now after the BindGrid() method executed it is going to ColumnCreated event and executing as expected.

protected void rgCatalogs_ColumnCreated(object sender, Telerik.Web.UI.GridColumnCreatedEventArgs e)
    {
        if (ht != null)
        {
            if (ht.Contains(e.Column.HeaderText.ToUpper()))
            {
                GridBoundColumn boundColumn = e.Column as GridBoundColumn;
                e.Column.Visible = (bool)ht[e.Column.HeaderText];
            }
        }
         
    }

But column hide and unhide is not happening.

Thanks in Advance
RamC
Kalina
Telerik team
 answered on 13 Sep 2011
1 answer
45 views
I am searching for a way to scroll the expanded/selected row to the top of the grid.  Please Advice. 

Thanks in advance.
Vasil
Telerik team
 answered on 13 Sep 2011
1 answer
130 views
Hi,

ran into this issue:

I have a RadGrid, with GridTemplate columns. Some of these columns have DatePicker controls in EditItemTemplate.
After I have enabled filtering and put in FilterItemTemplate RadComboBox controls, icons on Datepickers disappared and instead there was either link with text "opens the callendar control" or blank. When you are clicking on such a crippled link, a calendar pops up but its skin is lost and it looks transparant.

if I use a plain asp:DropDownList, then icons are ok, - somehow presence of RadComboBox there messes up calendar and DateTimePicker control
However if I use asp:DropDownList, then SelectedIndexChanged event is not firing , even though I have  AutoPostBack="true"

Any clues?

running licensed version of controls from  ASP.NET AJAX Q3 2010, VS 2010.
Radoslav
Telerik team
 answered on 13 Sep 2011
2 answers
567 views
Hi,

Good day!

I use different ASP.Net Telerik controls in every page in my project.
I'm getting this javascript error: "e.startsWith is not a function"
every time I click every where on the page.

The error is in MicrosoftAjax.js which is embedded in the page by the Telerik.
I attached here the screenshot of the error I'm getting.

Does anybody here also experienced this error? How did you fix it?

Thank you.


Jan
Jan Jerell
Top achievements
Rank 1
 answered on 13 Sep 2011
8 answers
88 views
Hi all,

I want to use Splitter as a CollapsiblePanel. It means there are 2 areas on my page and I just want one area is visible at one time.
For ex : 
1. As default the first pane is visible, the second pane invisible.
2. When user clicks on the Splitbar, the second pane is visible & the first pane will be invisible.
If user clicks again on the Splitbar the step  "1" will be applied. When Splitbar is clicked, it will be slided from left to right / right to left depending on which pane is visible.

Thanks for your help.
Phuc
Top achievements
Rank 1
 answered on 13 Sep 2011
3 answers
317 views
Hi ,
What is the equivalent of className property in telerik controls.I want to update the css based on client click using javascript.


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
            <script type="text/javascript" language="javascript">

            function AssignValue() {
                var rdtb1 = document.getElementById('<%#rdtb1.ClientID%>');                
                    rdtb1.className = "red_bgd";
                    rdtb1.skin = "red_bgd";              
            }
    </script>
        <style type="text/css">
    .red_bgd{
    background-color:#F8E5E5;
   color:#A90000;    
}   
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
               <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
             <telerik:RadTextBox ID="rdtb1" Runat="server" EnableEmbeddedSkins="false" >
        </telerik:RadTextBox>
        <br />
        <br />
           <asp:Button ID="btnFillRdTb" runat="server"   Text="FillTextBox" onClientClick="AssignValue()" />
    </div>
    </form>
</body>
</html>
Princy
Top achievements
Rank 2
 answered on 13 Sep 2011
2 answers
96 views
We have a SharePoint 2010 Visual Web part which has a RadUpload control inside a EditForm template within a RadGrid.  If we are browsing the page from the server itself; the browse for file dialog opens correctly; but if we access it from any other computer the browse dialog does not appear?

We're using the latest version of the ASP.NET Ajaz controls 2011.2.712.35.
JR
Top achievements
Rank 1
 answered on 13 Sep 2011
6 answers
75 views
How would I grab the radgrid close editmode if I click an item outside the masterpage? For some reason when radgrid is in editmode and click on an item outside the contenttemplate of the masterpage it causes issues.  If I could grab the radgrid and use  e.Item.Edit = false

thanks.
Jon-Jon
Top achievements
Rank 2
 answered on 12 Sep 2011
4 answers
100 views
Greetings,

We have a RadGrid with filtering enabled; the page is ajaxified and includes a RadWindowManager as well.
We've been using filtering for a while now with no problem. However, here the filtering fails with an error message:
Error: Sys.WebForms.PageRequestManagerServerErrorException: Conversion from type 'Pair' to type 'String' is not valid.

Anyone has encountered this kind of error message?
The only difference from other RadGrids where filtering works without a problem is the RadWindowManagers. Is there a conflict we're not aware of?

Thanks in advance.
Chanan Zass
Top achievements
Rank 1
 answered on 12 Sep 2011
2 answers
82 views

Getting a script error   ' ScriptResource.axd  was not found'

Any help?
Eva
Top achievements
Rank 1
 answered on 12 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?