Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
50 views
These are my issues;

1) How to change the color of Filter Button Icon (Preferably Red), if filter is on that column.
Reset the Column Filter Button Icon to original color such as this Telerik Example: (grid/examples/generalfeatures/filtering/defaultvb.aspx) if NoFilter is selected from Drop down List of that column. Can this option be done with Multiple Columns?

2) Export all columns from Master Table View into Excel/Word/CSV.  Telerik Example ( Live Demos/grid/examples/dataediting/templateformupdate/defaultvb.aspx). I would like to export all columns of the SQL data source of radgrid (visible/Invisible Columns) with following flexibilites (Current RadGrid Selected Row/All Rows from that Page/All rows from RadGrid).

3) Implementing Export Data to PDF. Telerik Example (grid/examples/generalfeatures/exporting/defaultvb.aspx).I looked at example (grid/examples/generalfeatures/pdfexport/defaultvb.aspx), I feel it is little complex to understand. Can this functionality be run from (grid/examples/generalfeatures/exporting/defaultvb.aspx) which I am trying to implement in my project with adding a now Command Button to run (Export to PdF).

4) Printing (Current RadGrid Selected Row/All Rows from that Page/All rows from RadGrid). Again I would like to all columns of the SQL data source of radgrid (visible/Invisible Columns) should be in the Printout.

I am learning, my biggest problem is that I am overwhelmed with the Flexibilities when I run demo of Telerik Products, thus some time I mixed Apple/Oranges.

Thanks for your help.

Ghulam





Martin
Telerik team
 answered on 04 Aug 2009
1 answer
100 views
Hello Sir

In my Radgrid one column contains date , i want to filter out the data yearly means if i enter the year 2008 then it will automatically search the record of year 2008.

and IInd is
In my Radgrid one column contains Cost , it contains the amount 3000.00 format ,, if i enter the value text format then it will give the error .. Is it possible to validate to users enters only Number format data .....


How to achieve this above two functionality ??


How to customize the Date  ? How to seach data yearly ?


Its urgent.....................................

Thanks
Regard
Rahul

Schlurk
Top achievements
Rank 2
 answered on 04 Aug 2009
6 answers
184 views
I have a page that I have 2 RadUpload controls on, and they work and display fine with IE 7/FF 3.5, however with Safari I only see the first upload control, while the second one is not displayed. Any help would be greatly appreciated.
Nolan
Top achievements
Rank 1
 answered on 04 Aug 2009
1 answer
100 views
I must be missing something. I have a registered copy of RadControls for Asp.Net. All the controls *except* the radlistbox appear in my toolbox. WHen I try to add a tag like:

<

 

telerik:RadListBox ID="RadListBox1" runat="server" Height="200px" />

 


It doesn't recognize it.
Is there a secret handshake or something I need to know about to make this thing appear?
THanks ... Ed
Kamen Bundev
Telerik team
 answered on 04 Aug 2009
3 answers
236 views
Ok, so I have a page that sets visibleonpageload for a radwindow to true in the codebehind after a button click.

This works fine so long as the window is closed by the exit button in the top right.

But if I close the window by using the client side functionality   like this.

        function GetRadWindow() {  
            var oWindow = null;  
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)  
            return oWindow;  
        }  
        function returnArg(arg) {  
            var oWnd = GetRadWindow();  
            if (oWnd) {  
                oWnd.close(arg);  
            }  
            else {  
                alert('oWnD Null');  
            }  
        }  
            


after this I can't get the visibleonpageload = true to work.  the page reloads on button click, but doesn't show the window.
Blasty
Top achievements
Rank 1
 answered on 04 Aug 2009
1 answer
109 views
I have a page that opens a radwindow to give the user a few choices.  Once the choices have been made & posted back, I set a label with the following text in code-behind:

lblScript.Text = string.Format("<script type='text/javascript'>Sys.Application.add_load(Delete_Clicked('{0}'));</script>", sbMsg.ToString());

Here are the javascript functions:

function Delete_Clicked(msg) {            
            var oWindow = GetRadWindow();
            var oWnd = oWindow.BrowserWindow.radalert(msg, 325, 325, 'Attention');
            oWnd.add_close(Redirect);
}
function Redirect() {
           var oWindow = GetRadWindow();
            oWindow.BrowserWindow.location.href= '<%=redirectUrl %>';
            oWindow.close()
}

Basically, I want the user to see a radalert with some confirmation message.  Once the radalert has been closed, I want the original radwindow to close and redirect the opener page to the appropriate location.  I have tried several variations but cannot get this script to work.  At this point, in IE7 I get a stack overflow and FF does not throw an error.  However, neither browser will close the orginal radwindow or redirect.

Is there anything special to make a radalert work the way I need to?  Any help is appreciated.
Fiko
Telerik team
 answered on 04 Aug 2009
10 answers
283 views
Hello,

I need to add some controls in GridGroupHeaderItems, so I am using following code
    foreach (GridGroupHeaderItem groupHeaderItem in myGrid.MasterTableView.GetItems(GridItemType.GroupHeader)){
        //some code
        groupHeaderItem.DataCell.Controls.Add(myControl);
    }
 in Radgrid DataBound event handler.

 Problem is that after ajax callbacks controls from group header are dismissed with groupHeader.text. Could I somehow prevent this behavior?
 I was trying to place my code to radgrid PreRender event handler, but I am using specific data for constructing controls like this:
    (groupHeaderItem.DataItem as DataRowView)["columnName"].ToString()
 but (groupHeaderItem.DataItem as DataRowView) is a NULL in preRender event handler.
 So - Is there a way how to preserve controls in GridGroupHeaderItems between preRender events?

Thank you
Jan
Yavor
Telerik team
 answered on 04 Aug 2009
3 answers
297 views
Please find attached all RadWindow's skins that were embedded in the Q3 2008 RadControls version. They have been adapted to be fully compatible with the Q1 2009 release. The archive also contains all other RadControls skins that were adapted for Q1

In order to use them as external skins for RadWindow, you should do the following:

Direct skin registration:
  1. Add the base and skin's specific CSS files for the RadWindow control to the head section of your page.
  2. Disable the embedded skins for the RadWindow control and the embedded base stylesheet.
  3. Set the Skin property to the name of the skin that you want to use.
    e.g.:
    <head runat="server"
        <title>RadWindow 2008.Q3 skins: Direct skin registration</title> 
        <!-- This example shows registration of the Default skin --> 
        <link href="Skins/Default/Window.Default.css" rel="stylesheet" type="text/css" /> 
        <link href="Skins/Window.css" rel="stylesheet" type="text/css" /> 
    </head> 
    <body> 
        <form id="form1" runat="server"
            <telerik:RadScriptManager ID="ScriptManager1" runat="server" /> 
            <telerik:RadWindow  
                ID="RadWindow1"  
                runat="server"  
                NavigateUrl="http://www.google.com" 
                Width="400px"  
                Height="400px"  
                VisibleOnPageLoad="true" 
                 
                EnableEmbeddedBaseStylesheet="false" 
                EnableEmbeddedSkins="false" 
                Skin="Default" 
                 
                 
                > 
            </telerik:RadWindow> 
        </form> 
    </body> 



ASP.NET Themes:

  1. change the <pages> declaration in your web.config to <pages theme="SkinName"> e.g.
    <pages theme="Gray">
  2. add the following lines to the <appSettings> section of your web.config:
    <add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />
    <add key="Telerik.EnableEmbeddedSkins" value="false" />
    <add key="Telerik.Skin" value="SkinName"/>
    e.g.
    <add key="Telerik.Skin" value="Default"/>
  3. create an ASP.NET Theme, named SkinName and add the following all files and folders from the Q3-ported-skins archive:
    Skins/ Window.css
    Skins/SkinName/*
    e.g.
    Skins/Window.css
    Skins/Default/Window.Gray.css
    Skins/Default/Window/*.*


Best Regards,
Telerik team
German
Top achievements
Rank 1
 answered on 04 Aug 2009
1 answer
90 views
Below is the code in declarative format i need to dynamically build the radgrid and perform grouping. I am new to telerik so please could you help me out to convert it for code behind.


<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceI="SqlDataSource1" 
   GridLines="None" 
   AllowPaging="false" PageSize="25" 
   Skin="Outlook" DataSourceID="SqlDataSource1">  
 
 
 <MasterTableView DataSourceID="SqlDataSource1" GroupsDefaultExpanded="false"  >    
   <GroupByExpressions > 
         <telerik:GridGroupByExpression  > 
         <SelectFields> 
          <telerik:GridGroupByField  
            FieldName="name"  HeaderText=""/>  
         </SelectFields> 
           <GroupByFields> 
              <telerik:GridGroupByField  
                 FieldName="name" /> 
               </GroupByFields> 
         </telerik:GridGroupByExpression> 
         <telerik:GridGroupByExpression  > 
         <SelectFields> 
          <telerik:GridGroupByField  
            FieldName="lft"  HeaderText=""/>  
         </SelectFields> 
           <GroupByFields> 
              <telerik:GridGroupByField  
                 FieldName="lft" /> 
               </GroupByFields> 
         </telerik:GridGroupByExpression> 
   </GroupByExpressions> 
    </MasterTableView> 
   
   
</telerik:RadGrid> 
Princy
Top achievements
Rank 2
 answered on 04 Aug 2009
1 answer
112 views
We have 2 site collections on 1 server
In the WCM HTML Editor scenario, I can declare separate congifile and toolfile and CSS in the layout page
Is it still possible to do this in the Form scenario?  Thanks.

Stanimir
Telerik team
 answered on 04 Aug 2009
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?