Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
165 views
Hi,
I have a Rad Textbox in the form at page load i added style of display none,
now at rad combox selection change  at client event, i have to set style display block of that textbox.

function pageLoad() {
       txt = $find("<%=txtFuelsNameSearch.ClientID  %>");
       alert(txt);
   }






Thanks in advance.


Regards
Krishna
Princy
Top achievements
Rank 2
 answered on 06 Jul 2012
1 answer
42 views
Sir,

As hierarchical radgrid not suppor the databind method but is there any support how can we bind the data to hierarchical radgrid 
through webservice through client side.



Shinu
Top achievements
Rank 2
 answered on 06 Jul 2012
4 answers
480 views
Hi,

Radgrid details:
- I have setup only one column in the grid as a text box in item template. I need to implement something like excel, where user can enter/edit data in this cell, and press enter or down key to move to the cell on the row below.
- I have registered double click event on the row to redirect the user to a different page.

Can you please help me out with the problems below:
- On pressing enter in the cell (text box), a refresh / rebind happens. How can I avoid it? I tried putting in a default invisible button as well, but even that didn't work.
- On Double click of the cell (text box), the redirect happens. How can I avoid it? I tried having an "ondblclick" return false, but it didn't work.

Regards,
Saumil
Princy
Top achievements
Rank 2
 answered on 06 Jul 2012
2 answers
120 views
Hi All,

Just getting into creating custom skins, and have completed the combobox. All is working well other than the fact the check boxes still use the old skin sprites. How do i change the skin for the check boxes in the combo box? Is there a common gif that needs changing as there is seemingly no reference to anything the ComboBox_{skinname}.css file, and there are no check box sprites in the copied skin folder.

Any help would be appreciated.

Thanks
rpm
Top achievements
Rank 1
 answered on 05 Jul 2012
1 answer
107 views
Hi there
I created a custom skin for my RadGrid, but the Filter Items are not displaying correctly, they are too big.

I have tried setting almost every available option of the rgFilterRow height, I have set the FilterItemStyle and even created a code behind section

GridFilteringItem filteringItem = e.Item as GridFilteringItem;
            //set dimensions for the filter textbox 
            filteringItem["Date"].Width = Unit.Pixel(120);
            TextBox box = filteringItem["Status"].Controls[0] as TextBox;
            box.Height = Unit.Pixel(22);

All the other CSS works fine, but I can't get this to work and its driving me crazy :)

Here is a section of the css
.RadGrid_CustomGrid .rgFilterRow
{
    background:#eee;
    height:22px;
}
 
.RadGrid_CustomGrid .rgFilterRow input
{
    height:22px;
}
 
.RadGrid_CustomGrid .rgFilterRow td
{
    border-bottom:1px solid #828282;
    height:22px;
}
 
.RadGrid_CustomGrid .rgFilter
{
    background-position:0 -300px;
    height:22px;
}
 
.RadGrid_CustomGrid .rgFilter:hover
{
    background-position:0 -350px;
}
 
.RadGrid_CustomGrid .rgFilterActive,
.RadGrid_CustomGrid .rgFilterActive:hover
{
    background-position:0 -400px;
}
 
.RadGrid_CustomGrid .rgFilterBox
{
    border-color:#8e8e8e #c9c9c9 #c9c9c9 #8e8e8e;
    font-family:Arial, Helvetica, sans-serif;
    color:#333;
}

Jako
Top achievements
Rank 1
 answered on 05 Jul 2012
2 answers
95 views
I have run into, what appears to be, a bug in RadPanelBar. The problem is as follows.

I have the following layout:
->Parent 1
-> Child 1
-> Grandchild 1
-> Grandchild 2
-> Child 2
-> Grandchild 1
-> Grandchild 2

I set "Child 2 -> Grandchild 2" to invisible (VIsible = false) on every post back. Everything works fine, until I click on "Child 2 -> Grandchild 1" or "Child 2 -> Grandchild 2". 
. After I click on that link, "Child 1 -> Grandchild 2" also becomes hidden.

To reproduce the problem, launch the application (1), Expand "Child 2" and click on "Grandchild 1". Now expand "Child 1" (2). "Grandchild 2" under "Child 1" is invisible now, even though it should be visible.

(1)
->Parent 1
-> Child 1
-> Grandchild 1
-> Grandchild 2
-> Child 2
-> Grandchild 1   <- CLICK
(2)
->Parent 1
-> Child 1
-> Grandchild 1
-> Child 2
-> Grandchild 1 


Site.Master.cs:
http://pastebin.com/NLFVY6C6 
SIte.Master
http://pastebin.com/1jYD7Uz9 
Default.aspx.cs
http://pastebin.com/TPtBu35n 
Default.aspx
http://pastebin.com/4tqATYyi
Web.config
http://pastebin.com/fKKZwbkD 

Thank you for any help,
Andrey
Andrey
Top achievements
Rank 1
 answered on 05 Jul 2012
1 answer
342 views
I don't want to save a physical file anywhere.  The user needs to upload a CSV file and then I want to read it directly in memory and do things based off what I find in that file.

I found a sample on this site saying you could use the "InputStream" property to read in the file, but the example showed a simple table with "file name", "file size", and one big blob column for "file contents", which is not really reading the file itself.  I need to get the contents of the file into a string and then break that apart by commas and process accordingly.

Is there a way for me to take the uploaded file bytes and turn them into a string that contains the exact data the CSV file contains, or is a byte array the best I can do without writing the file to disk?
Kevin
Top achievements
Rank 1
 answered on 05 Jul 2012
0 answers
165 views
protected void gvgrid_CustomAggregate(object sender, GridCustomAggregateEventArgs e)
    {
        if (((Telerik.Web.UI.GridBoundColumn)e.Column).UniqueName == "Actual")
        {
 
            Double intNrvalue = 0;
            Double intDrvalue = 0;
             
 
            foreach (GridDataItem item in gvgrid.MasterTableView.Items)
            {
                
                    intNrvalue += Convert.ToDouble(item["intNumeratorvalue"].Text);
                    intDrvalue += Convert.ToDouble(item["intDenominatorvalue"].Text);
  
            }
 
            double intResult=(intNrvalue / intDrvalue)*100;
            e.Result = intResult;
             
        }
    }
I have a grid that  needs to have a custom aggregate function (for a Grid Bound Column having Aggregate="Custom") such that it need to calculate the Actual by calculating the sum(numerators) / sum(denominators).
Now if we group that grid by dragging one column in the group panel then it should show calculation at the group level(means at group footer). Any help or samples would be appreciated.
E.g. The same functionality is provided for Aggregate="Sum" for a grid bound column by default.When we drag a particular column in a group panel,then it calculates sum at group level in group footer and overall sum at grid footer.
Anuj
Top achievements
Rank 1
 asked on 05 Jul 2012
2 answers
485 views
Hi All

can anyone give me a solution to get the values binded to radgrid and made the column as hidden/visible =false

i need to get the hiddden values of the rows where checkboxes are checked, if header checkox is checked i need to get all values and use those values...

this is my radgrid

            <telerik:RadGrid ID="M" runat="server" Width="99%" AllowPaging="True" EnableViewState="False"
                GridLines="None" meta:resourcekey="MResource1" AllowFilteringByColumn="true"
                OnInit="GridControl_Init" EnableLinqExpressions="false" 
                EnableEmbeddedSkins="false" AutoGenerateColumns="False">
                <HeaderContextMenu EnableEmbeddedSkins="True">
                </HeaderContextMenu>
                <FilterMenu Skin="Nediso" EnableEmbeddedSkins="false">
                </FilterMenu>
                <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" AlwaysVisible="true" />
                <MasterTableView Width="100%" EnableViewState="False" AllowFilteringByColumn="true">
                   <Columns>  


                   <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" AllowFiltering="false">
                   <HeaderStyle Width="3%" HorizontalAlign="Justify" />
                    <ItemStyle Width="3%" HorizontalAlign="Justify" />
                            <HeaderTemplate>
                             <asp:CheckBox id="headerChkbox"  runat="server" onclick="SelectAll(this)"></asp:CheckBox>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                   
                     <telerik:GridBoundColumn DataField="TOKEN" Visible="false" UniqueName="TOKEN" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FIRST NAME" HeaderText="FIRST NAME" UniqueName="FIRST NAME1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="LAST NAME" HeaderText="LAST NAME" UniqueName="LAST NAME1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" UniqueName="STATUS1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DESIGNATION" HeaderText="DESIGNATION" UniqueName="DESIGNATION1">
                    </telerik:GridBoundColumn>
                    </Columns>
                    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" Position="TopAndBottom" />
                    
                </MasterTableView>
                <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnableRowHoverStyle="True">
                    <Resizing AllowColumnResize="True" />
                    <Selecting AllowRowSelect="True" />                    
                    <ClientEvents OnFilterMenuShowing="OnFilterMenuShowing"></ClientEvents> 
                    </ClientSettings>
                <FilterMenu EnableTheming="True">
                    <CollapseAnimation Type="None" />
                    <ExpandAnimation Type="None" />
                </FilterMenu>
            </telerik:RadGrid>

i have a button outside the grid when the button is clicked i need to get the value placed in hidden column for only which the textbox is checked..  pls reply me soon.
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Jul 2012
3 answers
466 views
Hi,

I have rad grid in my application. In that I have export buttons (export to pdf / word / excel). My issue is how to disable the button if there is no data inside the grid. Now, if there is no data in grid, if click on the export buttons empty file is creating. To avoid this, I need to disable export buttons if there is no data in grid. Thanks in Advance.

Regards,
Akki
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?