Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
Hi

I need to modify some data before the export so the pdf file will contain the updated data.

I tried to go over all the items of the MasterTableView and update the Text property of cell (gridView1.MasterTableView.Items[i]["columnNAme"].Text).

It did not worked.

Is there any way to do it ?

Thanks a lot
David
Daniel
Telerik team
 answered on 10 May 2010
2 answers
117 views
As I understand the RadEditor control, there are a number of client-side javascript content Filters that can convert the entered text to valid XHTML. 

Is this functionality also exposed on the server in managed code?  Are there any server-side methods of the RadEditor that will let me do the conversion to XHTML on the server in C#?

Thanks for the help.

Joe
Joseph Alfano
Top achievements
Rank 1
 answered on 10 May 2010
6 answers
234 views
Hey guys,

i have a roblem with the Treeview (but only in IE 7.0, Firefox works perfect).

If i put my mousecursor over the Treeview (and only then) an popup-error occures (without clicking).

It says:
Runtimeerror (...) Error: 'childNodes' is null or not a object.

If i look up in debug-mode it shows this:
(file: http://localhost/[projectname]/ScriptResource.axd)
getChildrenByTagName:function(_c6,_c7){ 
var _c8=new Array(); 
var _c9=_c6.childNodes; <-- THIS IS HIGHLIGHTED 
if($telerik.isIE){ 
_c9=_c6.children; 
} 

Hope this might help you by finding an answer for my problem.

Any ideas? :)

p.s. I´m on (2008, 3, 1314, 35)

kind regards

thank you and have a nice weekend


Yana
Telerik team
 answered on 10 May 2010
3 answers
118 views
Hi

When i use the RadComboBox's new feature of AutomaticLoadOnDemand inside RadScheduler's AdvancedForm.ascx i get the entire list instead of the "ItemPerRequest" number of 10 items.
It happends when the appointment Modal Dialog first pops up. when i choose an item or change the text for the first time, the AutomaticLoadOnDemand starts working properly but it takes lots of time because the list is too long at the begining
This code works perfectly on a normal aspx page.

 

<asp:Panel runat="server" ID="AdvancedControlsPanel" CssClass="rsAdvMoreControls">  
                  
                    <telerik:RadComboBox ID="rcb_patient" runat="server" CssClass="rsAdvResourceValue" 
                        DataTextField="FullName" MarkFirstMatch="true" ShowDropDownOnTextboxClick="true" 
                        ShowWhileLoading="true" DataValueField="PatID" EnableVirtualScrolling="true" 
                        AllowCustomText="true" ShowMoreResultsBox="true" ItemsPerRequest="10" 
                        LoadingMessage="loading..." EnableAutomaticLoadOnDemand="true" DataSourceID="sds_patients">  
                    </telerik:RadComboBox> 

 

 

I'll appreciate any help.
Lior

 

 

Simon
Telerik team
 answered on 10 May 2010
2 answers
124 views
I have the following code in the ModalPopup Panel. The problem is that I can see checkbox but no item on the side. If I remove the checkbox control then the items are visible. Is it a bug or do I have to include anything else in my code.

 

 

 

<asp:Panel ID="pn1" runat="server" CssClass="popup" Width="1200px" Style="display: none;"> <div class="body"><telerik:RadComboBox runat="server" ID="RadComboBox1" ZIndex="10000000" HighlightTemplatedItems="true">

<Items>

<telerik:RadComboBoxItem Text="One" Value="One" />

<telerik:RadComboBoxItem Text="Two" Value="Two" />

<telerik:RadComboBoxItem Text="Three" Value="Three" />

</Items>

<ItemTemplate>

<asp:CheckBox runat="server" ID="CheckBox" onclick="stopPropagation(event);" Text="" />

 

<%

# DataBinder.Eval(Container, "Text") %> </ItemTemplate> </telerik:RadComboBox> </div> </asp:Panel>

 

 

 

 

Thanks.

 

 

 

 

 

 

 

 

Jessy Joseph
Top achievements
Rank 1
 answered on 10 May 2010
4 answers
178 views
hi admin
how i can show detail image in your sample
http://demos.telerik.com/aspnet-ajax/rotator/examples/gallery/defaultcs.aspx
when i mouse over that

thanks a lot
Petio Petkov
Telerik team
 answered on 10 May 2010
1 answer
123 views
Hi guys... I'm building a nested grid and I always get the "No child records to display." error message when I collapse the grid...

My code is this:

protected void Page_Load(object sender, EventArgs e) 
    { 
        if (! IsPostBack) 
        { 
             string id = "dc945a82-d738-df11-b155-080027bfbfb8"; 
             LlenaGrid(id); 
             this.GridCompromisoHeader.DataBind(); 
        }     
    } 
 
    private void LlenaGrid(string id) 
    { 
        SqlDataAdapter ADA = new SqlDataAdapter(); 
        StringBuilder sSql = new StringBuilder(); 
 
        sSql.Append(" SELECT CAMPO1 'CAMPO1', "); 
        sSql.Append(" CAMPO2 'CAMPO2'"); 
        sSql.Append(" FROM TABLA"); 
        sSql.Append(" WHERE"); 
        sSql.Append(" LLAVE = @id"); 
 
        SqlCommand sqlcmd = new SqlCommand(sSql.ToString()); 
        SqlParameter sqlParam = new SqlParameter("@id", SqlDbType.NVarChar); 
 
        sqlParam.Value=id; 
        sqlcmd.Parameters.Add(sqlParam); 
 
        ADA.SelectCommand = sqlcmd; 
        this.GridCompromisoHeader.DataSource = ObtenerDataTable(ADA); 
              
    } 
 
    static DataTable ObtenerDataTable(SqlDataAdapter sqlAda) 
    { 
        SqlConnection sqlCnn = new SqlConnection(ConfigurationManager.ConnectionStrings["MyCnnStr"].ConnectionString); 
        DataTable dt = new DataTable(); 
 
        try 
        { 
            sqlAda.SelectCommand.Connection = sqlCnn; 
            sqlCnn.Open(); 
            sqlAda.Fill(dt); 
            sqlCnn.Close(); 
        } 
        catch (Exception ex) 
        { 
 
            if (sqlCnn.State == ConnectionState.Open) 
            { 
                sqlCnn.Close(); 
            } 
        } 
 
        return dt;  
    } 
 
 
    protected void GridCompromisoHeader_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e) 
    { 
        GridDataItem dataItem = ((GridDataItem)(e.DetailTableView.ParentItem)); 
        SqlDataAdapter ADA = new SqlDataAdapter(); 
        StringBuilder sSql = new StringBuilder(); 
 
        sSql.Append(" SELECT CAMPO1 "); 
        sSql.Append(" FROM TABLA2"); 
        sSql.Append(" WHERE"); 
        sSql.Append(" LLAVE2 = @id"); 
        
 
        SqlCommand sqlcmd = new SqlCommand(sSql.ToString()); 
        SqlParameter sqlParam = new SqlParameter("@id", SqlDbType.NVarChar); 
 
        sqlParam.Value = dataItem["CAMPO1"].Text; 
        sqlcmd.Parameters.Add(sqlParam); 
 
        ADA.SelectCommand = sqlcmd; 
        
        try 
        { 
             
            e.DetailTableView.DataSource = ObtenerDataTable(ADA); 
             
        } 
        catch (System.Exception ex) 
        { 
             
        } 
 
    } 

Pavlina
Telerik team
 answered on 10 May 2010
4 answers
328 views
Hey Everyone,

I have hit a hard spot here.....I have no idea why this isn't working.

Code
DataRowView dataItem = (DataRowView)commandEventArgs.Item.DataItem; 
int _value= Convert.ToInt32(dataItem.Row["valueToRetrieve"]); 
dataItem.Row[NUMBER] = GetDisplay(value); 
NOTE: I have change some variable names for organizational purposes......

I don't know why this isn't working.  It has worked for me in the past.  Am i not calling a method I need to call.  I know the GetDisplay() returns the right value.  However, this isn't being displayed when the screen comes back up. 

Any thoughts....

Thanks,

-zd


zach davis
Top achievements
Rank 1
 answered on 10 May 2010
3 answers
184 views
Hi,

I have a page wich contains left a radgrid with about 750 records (no paging) and right a formview.
The formview is databound on the radgrid, so when you select a row in the radgrid the formview refreshes with the selected record.

Pretty basic so far.

Now when i initialy load the page it takes about 3 seconds for everything to load.
Then, without the ajax it takes about 3 seconds for page to reload after i select a row in the radgrid. As you expect the whole page is reloaded. Something we dont want.

Now i added an Ajax manager in the hope i could cut down on this load time. I set the ajaxmanager so that for request on the radgrid it should only refresh the formview.
But this seems to make the application run slower! It now takes about 5 to 10 seconds for the formview to refresh.
What did i do wrong?

Anybody an idea,

Regards,
Jelte
Pavlina
Telerik team
 answered on 10 May 2010
4 answers
243 views
Hi all,

I wonder if I am doing something "wrong" here...

I have a relatively simple form with one RadAjaxPanel, a few rad or ASP controls all within the panel and a button.
I saw the warnings about RadAjaxManager and RadAjaxPanel but there is no RadAjaxManager on my page.

When I press the button a first time, it goes to the server (Ajax request) to fetch some more information and then ask confirmation from the end user via some javascript injected with

                RadAjaxPanel1.ResponseScripts.Add("AskConfirmation();");

The user gets correctly a radprompt dialog.
When he presses "OK", I set a hiddenfield to "1" and fires the click() method on the same button.

However, from that point on, no more request seems to work and I get the error

Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

I tried to debug on the server side but I can't hit any breakpoint even break all does not work.

Am I doing something drastically wrong by firing a button from within an injected javascript?

Many thanks

Eric



Eric
Top achievements
Rank 1
 answered on 10 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?