Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
113 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
173 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
111 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
319 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
177 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
234 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
1 answer
123 views


Hi,

In my application I am invoking a RadAlert from server-side through RegisterStartupScript. The Skin applied to RadWindowManager is Web20, but when I invoke my radalert, the Fontcolor of the button doenot get changed; it is not white in color(expected color) but in Black color.

What could be the reason?

Is it because of calling the window from server-side??

Expecting your reply....


 
Georgi Tunev
Telerik team
 answered on 10 May 2010
1 answer
84 views
Hi,

I am using the Q1 2010 release of the form decorator and the styles, especially the button and textbox styles, get screwed up if I use a masterpage.  I have tried everything I can think of to fix it.  I have removed the Controls to decorate, I have removed all style sheets, I have tried putting the formdecorator on the masterpage, on the page itself, on the control it pulls in, everything i can think of.  I can't break it on a standard page that doesn't use a master page; but i can't get it to work when I use a masterpage.  Any ideas?

Thanks,
Dave
Georgi Tunev
Telerik team
 answered on 10 May 2010
1 answer
92 views
I have a problem where the string being returned by
server side : MarkingEditor.content
client side : var edcon = $find("<%= MarkingEditor.ClientID %>").get_html(true);

if the content is say
abc <font size=6>xyz</font>

server side has quotes so the returned string is   "abc <font size='6'>xyz</font>"
client side no quotes the returned string is  "abc <font size=6>xyz</font>"

When pasting from word quotes and hyphens are also different - server code : code 150, client : code 8211  (&#8211 being a hypen)

I have diabled all content filters

This is the case even thought the editors content is set from the database witht he server side values, when posting back different ?

HOW CAN I GET BOTH SIDES  TO RETURN THE SAME VALUE (which is important for reason i will not go into here)
Using Q1 2010 RadControl AJAX
Rumen
Telerik team
 answered on 10 May 2010
1 answer
144 views
Hi
I have a usercontrol in my form.The user control consist of a windomanager and a popup page is used with the window manager.
I have to refresh the content page when the user closes the pop up window  generated from the user control.I have done this using the following code in content page

 protected void Page_Load(object sender, EventArgs e)
    {
//The ajax manager is placed in the  master page

 RadAjaxManager.GetCurrent(this).AjaxSettings.AddAjaxSetting(RadAjaxManager.GetCurrent(this), ucUsercontrolTorefresh);
      
}
This was perfectly working with the version Q32009 and now i have updated to Q12010 sp1 and I am getting a javacript error when using the above code .But the user control is refreshing and its design is distorted .Is there any difference in using the dynamic ajax settings for the user controls in Q12010 version
Thanks
Sreeraj N.R



Maria Ilieva
Telerik team
 answered on 10 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?