Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
I am wondering if there is a way to turn off the "Move" cursor when a radwindow has been maximized? If you check out the demo at 
http://demos.telerik.com/aspnet-ajax/window/examples/behaviors/defaultcs.aspx and then maximize the window, notice that when you hover over the title bar, you are still given the cursor to move or drag the window, even the the position is locked. 

Is there a setting or process to change this? Thanks in advance to any ideas/advice.
Bozhidar
Telerik team
 answered on 08 Oct 2010
4 answers
123 views

Hi:

I have a RadGrid, the Radgrid contains  a form template, his control are binding to a SqlDataSource.

  

When insert an element sends a mail (with .net libraries) into a mail that the user have inserted in a specific field. 

The code works fine, but when the user introduce a invalid mail like  'badmail@badmail.com' when the user press insert button,  send of mail fail (I manage the error in the event), radgrid shows what happen,  but all fields are empty.

The code is the following

01.  protected void SqlDataSource1_Inserting(object sender, SqlDataSourceCommandEventArgs e)
02.  {        
03.  
04.      
05.  
06.        SqlDataSource1_Inserted        
07.        DbCommand command = e.Command;
08.        DbConnection cx = command.Connection;
09.        cx.Open();
10.        DbTransaction tx = cx.BeginTransaction();
11.        command.Transaction = tx;
12.    }
13.  
14.  
15.  
16.  
17.protected void SqlDataSource1_Inserted(object sender, SqlDataSourceStatusEventArgs e)
18.{
19. try
20. {
21.        DbCommand command = e.Command;
22.        DbTransaction tx = command.Transaction;
23.        //Here code that sends email, process can fail.
24.        tx.Commit();
25. }
26. catch (Exception exception)
27. {
28.        tx.Rollback();
29.        throw exception;
30. }
31.}
32.  
33.protected void RadGrid1_ItemInserted(object source, Telerik.WebControls.GridInsertedEventArgs e)
34.    {
35.        if (e.Exception != null)
36.        {
37.            e.ExceptionHandled = true;
38.            e.KeepInInsertMode = true;
39.            //Display a message to show the error
40.        }
41.    }

I whish that when the sent of mail fails, all the data of the form were preserve ¿Is it possible?

Thanks.

manu
Top achievements
Rank 1
 answered on 08 Oct 2010
4 answers
244 views

Hello.

I it is necessary from Default.aspx to cause function in open window RadWindow. Function cause when window is loaded,

Default.spx  javascript code:

var oWnd = GetRadWindowManager().getWindowByName( "RadWindow1");

oWnd.get_contentFrame().contentWindow.CalledFn();

Radwindow  javascript code:

function calledFn()
{
  alert("ok");  
}

Error:Mistake of the execution Microsoft JScript: Object does not support this characteristic or method

That wrong?

Sari
Top achievements
Rank 1
 answered on 08 Oct 2010
0 answers
182 views
Hi Team,

In my application i'm using combobox with enable load on demand but if i given any value to filter like "a" means it will take too much time to loading and  showing the Text with name "a" .. i want to use webservice but not able to access webservice in my application.. i want to store combobox value to database so based on condition i want to create Webservice..

i'm using filter is start with..

I"m Using Method to load the combobox from dataset.. and i'm using this method in page load.

Please Give me the Solution as soon as possible...Else tell us how to use webserveice using dataset ...


Regards,
Ashok Anbarasu

Ashok
Top achievements
Rank 1
 asked on 08 Oct 2010
1 answer
126 views
Hi,

I have a treeview which has a few nodes disabled. Now the problem is the disbaled nodes could not be collapsed. The full node ia disabled. I want the node text to be disabled however they should be collapsable.

Please suggest.

Thanks
Shinu
Top achievements
Rank 2
 answered on 08 Oct 2010
2 answers
124 views
Hi. I've got several radgrids inside a radajaxpanel. Some are shown or hidden based on rows selected in other grids. I've populated the nested grids with data from the code behind based on http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx example. I've also followed http://www.telerik.com/help/aspnet-ajax/grdhideexpandcollapseimageswhennorecords.html help article on how to hide child grids if no records exist. This works okay for a static nested grid. But not all my grids are populated with data on page load as I've stated above. It hides all child grids as the rowcount is obviously zero because they weren't populated with data initially. I've tried using the code inside the needdatasource details table routine but it yields the same results. Is there any way around this? Maybe on the client side? Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 08 Oct 2010
2 answers
50 views
Hi, I have a stange problem with Localized Grid Pager. My DLL number is 2010.2.929.35

If I set PagerTextFormat nothing appear.

This exemple working and the text "xxx items in yyy pages" is displayed

 

<PagerStyle AlwaysVisible="True" FirstPageToolTip="Début" LastPageToolTip="Fin" 
               NextPagesToolTip="Page suivante" NextPageToolTip="Page suivante" 
               PageSizeLabelText="Taille de page:" PrevPagesToolTip="Page précédente" 
               PrevPageToolTip="Page précédente" ShowPagerText="True" Mode="NextPrevAndNumeric"/>


This pager not working. Test "xxx emails" is not displayed

 

<PagerStyle AlwaysVisible="True" FirstPageToolTip="Début" LastPageToolTip="Fin" 
               NextPagesToolTip="Page suivante" NextPageToolTip="Page suivante" 
               PageSizeLabelText="Taille de page:" PrevPagesToolTip="Page précédente" 
               PrevPageToolTip="Page précédente" ShowPagerText="True" PagerTextFormat="{1} emails"
                                         Mode="NextPrevAndNumeric"/>

Regards
Luc

Luc
Top achievements
Rank 1
 answered on 07 Oct 2010
1 answer
126 views
I would like to see if you have any examples on how to check the box for the checkboxlist and/or radiobuttonlist.
The UserControl has several checkboxlists and radiobuttonlists and referenced by ID.
Example: 
I have tblOrder which has OrderFrequencyID, OrderReportTypeID.  There are two checkboxlists on that usercontrol, 1 for Frequency and 1 for ReportType.  When I click on Edit, I want to have the checkboxlists checked the box(es). 

Problem:
As I debug, I can see the checkboxes are checked but on the IE, the boxes arent checked.

Thanks

Vinh
Vinh
Top achievements
Rank 1
 answered on 07 Oct 2010
2 answers
117 views
Hi,

I have a purely code loaded RadGrid (latest v.) that has pop-up insert edit forms that work perfectly. Since the datasource is dynamic I can't build custom forms in ascx code.

I need to change field types and insert drop down lists etc.. into the auto generated forms before they load.

Are there any examples available, as I could not locate one.

Thanks for the great products.

-Eric
TheLostLeaf
Top achievements
Rank 2
 answered on 07 Oct 2010
4 answers
271 views
I have a RadToolBar (tbActions) within a GridTemplateColumn in a RadGrid.  When I click a button in tbActions, I want to access the ID column of the GridDataItem row that contains the tbActions that I just clicked in.  How can I get that reference?
<rad:RadGrid ...>
        <MasterTableView ...>
            <Columns>
                <rad:GridBoundColumn DataField="ID" UniqueName="ID" />
                <!--...more columns...-->
                <rad:GridTemplateColumn UniqueName="Actions">
                    <ItemTemplate>
                        <rad:RadToolBar ID="tbActions" Orientation="Horizontal" runat="server"
                            OnButtonClick="tbActions_OnButtonClick" >
                            <Items>
                                <rad:RadToolBarButton ImageUrl="images/button1.png" Value="1" />
                                <rad:RadToolBarButton ImageUrl="images/button2.png" Value="2" />
                                <rad:RadToolBarButton ImageUrl="images/button3.png" Value="3" />
                            </Items>
                        </rad:RadToolBar>
                    </ItemTemplate>
                </rad:GridTemplateColumn>
            </Columns>
            <DetailTables>
                ...            
            </DetailTables>
        </MasterTableView>
    </rad:RadGrid>

protected void tbActions_OnButtonClick(object sender, RadToolBarEventArgs e)
{
    //How can I get a reference to the GridDataItem that contains the toolbar
    //of the button that I just clicked?
    //this is not working:
    GridDataItem item = (GridDataItem)e.Item.ToolBar.Parent.Parent;
         string id;
    if (e.Item.Value == "1")
    {
          id = item["ID"].Text;
          //more code here, use ID for db update
 
    }
    else if (e.Item.Value == "2")
    {
          id = item["ID"].Text;
          //more code here, use ID for db update
    }
    else if (e.Item.Value == "3")
    {
          id = item["ID"].Text;
          //more code here, use ID for db update
    }
}
The Wire
Top achievements
Rank 1
 answered on 07 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?