Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
46 views
Hi,
it open a new window from a selected grid row through OnRowClick. The grid is part of the active window. The new window is opened behind the active window, even though it is set as active. Both windows are accessible. OnRowClick triggers the following client function ShowWin. When calling this function from a button (triggered through onclick), the new window appeares topmost.

function ShowWin(sender, eventArgs)
{
    var itemId = eventArgs.getDataKeyValue("itemId");
    var oWnd = GetRadWindow().BrowserWindow.radopen('/Data.aspx?itemId=' + itemId, null);
    oWnd.set_title('Edit data');
    oWnd.setSize(600, 400);
    oWnd.center();
    oWnd.setActive(true);
}

and in the grid

<ClientSettings EnableRowHoverStyle="True">        
    <ClientEvents OnRowClick="ShowWin"></ClientEvents>
</ClientSettings>

Best regards
Niklas Schneider
Tsvetoslav
Telerik team
 answered on 24 Aug 2009
4 answers
357 views
I have a grid on the screen it has two dropdown filter templates that work perfectly.  My issue is I have another column that I Ihave set the coulmn up as so

 <telerik:GridBoundColumn SortExpression = "Active" AllowFiltering="true" 
 AllowSorting="true" DataField ="Active"  AutoPostBackOnFilter="true"   
CurrentFilterFunction="Contains" ShowFilterIcon="false"/>   

But for some reason when ever I type anything into the filter box and hit enter nothing happens.  Any idea why?
Yavor
Telerik team
 answered on 24 Aug 2009
1 answer
202 views
Hi:

I'm creating codebehind a radnumerictextbox, and I need to have mandatory a positive value between 0 and 100. I found if a set you can still leave empty the textbox and radnumeric doesnt complaint about it, also you can write the negative sign (-) and it permits you write it

- how do I need to configure in my radnumeric for complaint when I have an empty value
- how do I need to configure in my radnumeric for complaint when I write a negative sign
- how can I create a dynamic custom o request validator in the codebehind for a radnumeric textbox
- does the radnumeric have an attribute or method for defining a message when it has an error or warning


Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 24 Aug 2009
3 answers
151 views
i click a goto or refresh button on the radwindow i want it to refresh or go to some other site in the main window. say  my main window has a url of www.test.com. now when i click goto on radwindow, i want my parent to go to www.test.com?url=test or click on refresh to refresh it.
i there a way to do that? appreciate your help. thanks
Georgi Tunev
Telerik team
 answered on 24 Aug 2009
2 answers
194 views
Hi

I am experiencing a frequent problem in Visual Web Developer 2008 SP1 with RadControls q2 2009.
The problem is more of an annoyance than a killer issue.

Often when I open a site I am working on in vwd, pages that are working fine will show all the telerik controls
in the Master page (in design view) in boxes with 'Error Creating Control' ... An unhandled exception error has occurred. Unknown server tag
(etc etc)

This then takes up the screen real estate and makes the page look totally unlike the browser view.

I need to emphasis;
1 ) this does not always happen.
2 ) it does not affect the runtime behaviour. The controls are not really 'uknown' at all.

I have tried closing and reopening vwd, rebooting windows, and this sometimes works.

Can you suggest how I can fix this annoying problem?

Thanks

Clive

Clive Hoggar
Top achievements
Rank 1
 answered on 24 Aug 2009
2 answers
119 views
Hi,

I have a 2 level hierarchical grid which I am trying to export to excel. I have used the following code:

 protected void btnExport_Click(object sender, EventArgs e)  
    {  
        try 
        {  
            rgScenario.ExportSettings.ExportOnlyData = true;  
            rgScenario.ExportSettings.IgnorePaging = true;  
            rgScenario.ExportSettings.OpenInNewWindow = true;  
 
            rgScenario.MasterTableView.HierarchyDefaultExpanded = true;  
            rgScenario.MasterTableView.Rebind();  
 
            rgScenario.MasterTableView.ExportToExcel();  
        }  
        catch(Exception ex)  
        {  
              
        } 

 

But I recieve the following runtime exception:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.GridTableView.PrepareExport() +47
   Telerik.Web.UI.Grid.Export.TableViewExporter.PrepareForExport() +340
   Telerik.Web.UI.Grid.Export.TableViewExporter.page_PreRender(Object sender, EventArgs e) +34
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +8679510
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Is there anything I have missed?

Regards,
Saurabh

Saurabh Srivastava
Top achievements
Rank 1
 answered on 24 Aug 2009
4 answers
300 views
Hi,

I have a GridBoundColumn in my grid. The dataformatstring for this is specified as {0:#,###.##}.

This column does not display anything when my datatable has a value of 0. Could you please resolve?

Regards,
Saurabh
Saurabh Srivastava
Top achievements
Rank 1
 answered on 24 Aug 2009
1 answer
76 views
Hi,

I have a radMenu in a masterpage bound to an object datasource. When clicking on an menuitem in Internet Explorer 6 I get a full page refresh instead of just a contentpage refresh. This behavior is not the case in Internet Explorer 8, where only the contentpage is refreshed.

Any updates within the contentpage that have been AJAXified correctly only update the contentpage itself.

Any idea what could cause this behavior?

Cheers,
Roel
Paul
Telerik team
 answered on 24 Aug 2009
3 answers
174 views
Hi,

In the PagerStyle settings of RAD Grid Q2 2009 release version, a combo box is getting displayed to modify the page size dynamically. I don't want to show the combo box to the end-user. May i know how to show/hide that combo box using any available property or style sheet?

Thanks in advance.
Meenakshi Nagalingam
Top achievements
Rank 1
 answered on 24 Aug 2009
12 answers
161 views
Hi:

If I use the MarkFirstMatch feature in data entry (just typing a 1, 2 or 3) the SelectedIndexChange event does not seem to fire.  If I use the drop-down, then it fires.
<telerik:RadComboBox ID="classComboBox" runat="server"  
    Skin="Outlook" Width="90px" 
    MarkFirstMatch="True" AutoPostBack="True" 
    OnSelectedIndexChanged="classComboBox_SelectedIndexChanged" 
    > 
    <Items> 
        <telerik:radcomboboxitem Value="0" Text="0 None" /> 
        <telerik:radcomboboxitem Value="1" Text="1" /> 
        <telerik:radcomboboxitem Value="2" Text="2" /> 
        <telerik:radcomboboxitem Value="3" Text="3" /> 
    </Items> 
</telerik:RadComboBox> 
 

Thanks
Simon
Telerik team
 answered on 24 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?