Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
107 views
Hi,
I am using the Telerik grid to display an image column alongwith other data columns. I am also making an Ajax call for data binding to allow for a searching records.The problem is that after that Ajax call the image column doesnt display anything.
I am using the template column for displaying the image as shown below:-

columns.Template(

@<text>

<img alt="@item.CountryIcon" style='width:30px;height:auto' src="@Url.Content("http://url.com/" + item.CountryIcon) "/>

</text>).Title(

"Icon_2").Width(30);


But the image is shown after an Ajax call when I use the client template code as shown below:-

columns.Bound(b => b.CountryIcon)

.ClientTemplate(

" <img alt='<#= CountryIcon #>' style='width:30px;height:auto' src=" + Url.Content("http://url.com/") + "<#= CountryIcon #> />")

.Title(

"Icon").Width(30);

The problem with the client template code is that the image is not shown on page load and only after the Ajax call is made.



I would like someone to suggest a solution for this problem.
Sanjay
Top achievements
Rank 1
 answered on 26 Jul 2011
0 answers
61 views
I am have created hierarchical grid and binded it with the object datasource from code behind.

But when I execute this, I keep on getting the dialog window on my  IE 8  with following warning - 

Stop running the script?

A script on this page is causing the Internet Explorer to run slowly. 
If it continues to run, your computer might become unresponsive.

I am using the OnDetailTableDataBind to bind the child grid datasource.

Please advise how to resolve this.
Paddy
Top achievements
Rank 1
 asked on 26 Jul 2011
2 answers
119 views
I'm running into an issue with the calendar and file explorer controls within the confines of Telligent's community server. Everything works as expected on my dev machine which is windows 7 with IIS 7 but when pushed to the dev server which is windows server 2003 and IIS 6 things go bad. The controls load just fine but when a postback occurs I get a page not found error. It seems as if the site url mapping of community server is not being used. I will be posting on both sites hoping someone can point me in the correct direction.
Adam
Top achievements
Rank 1
 answered on 26 Jul 2011
0 answers
86 views
Hi All,
I have a simple problem that has made me pondering for days on Google and still have no answer:
For example, I have following SQL query:

SELECT 
    ID, AccountNum, Name 
FROM
    Table1
WHERE
     AccountNum = @AccountNum
     Name = @Name

(In which @AccountNum and @Name are session variable).

Then in the C# code behind. I wrote:
Session["AccountNum"] = DBNull.Value;
Session["Name"] = DBNull.Value;

Logically, It would return for me a list of row in which both AccountNum and Name are NULL value. However, it didn't work. It's only work if both Name and AccountNum are varchar datatype in database (But in this case, AccountNum is a Int32 datatype).

Please let me know if any of you know any work around.

Thanks All

Lamk.
LamKhoa
Top achievements
Rank 1
 asked on 26 Jul 2011
2 answers
98 views
Hi,

today I opened VS and I got notification about new version of Telerik product. I click on download but in the middle of download my connectino broke and download did not continue after reconect so I click cancel.

Now I cannot get that notification to popup again?

Marko
Marko Gluhak
Top achievements
Rank 1
 answered on 26 Jul 2011
16 answers
646 views
I have a scenario where I'd like to have a vertical splitter with two panes: one on the right, one on the left.

Dynamic content is loaded into both panes.  The pane on the left has tree controls which can be expanded to vertically lengthen the page and the pane on the right has a data grid with resizable columns which can horizontally lengthen the size of the page. 

There is a requirement that there are no scroll bars inside the splitter/panes and that the only content that can be clipped is the horizontal content in the left pane.  This means that the height will need to expand as needed in both panes and that the width would expand as needed in the right pane so that all content is visible without scrollbars.

Is it possible to configure the splitter and panes to do this?


Edit:
I noticed using IE Developer Tools and viewing the html that the rad splitter is rendered as a table with the panes as divs inside of cells.  The pane divs appear to have an inline height and width that is apparently calculated and set in pixels.  If I change these values to 100% in the developer tool, I get the display I am looking for.   However, as soon as I move the splitter, they of course reset back to fixed pixels and the scroll bars reappear. 

Kevin
Top achievements
Rank 1
 answered on 26 Jul 2011
1 answer
307 views
Hello All,

I want to open modal popup window from already opened modal popup window.

Let's say I have already opened popup window called "open.aspx". I have hyperlink on that page. When I click on that hyperlink it should open another popup window "AnotherOpen.aspx". When I tried this, it showed me an error "radopen is not defined". So I put 
<telerik:RadWindowManager> in head section of that "open.asp". When I run again, it said it needs 
<telerik:RadScriptManager> .
When I put RadScriptManager on the page. It gave me the error stating "The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases".

How can solve this problem?

Any help would be appreciated.

Thanks in advance.

Sincerely,
JJ
Marin Bratanov
Telerik team
 answered on 26 Jul 2011
5 answers
115 views
Hello.
I have a problem with caching embedded script.
So each time when request is being proccessed, WebResource.axd generated and did not take from cache.
I have several RadWindows and each time I open them embedded script is generated. How can i make static link to embedded script(not Telerik.Web.UI.WebResource.axd) that browser could cache it?
Marin Bratanov
Telerik team
 answered on 26 Jul 2011
3 answers
67 views
Hi,

I'm hoping this is a simple one, but I can't find an answer by searching.

I have a PanelBar with multiple items. However, instead of them all being URL links (RadPanelItem.NavigateURL), I want a few of them to handle OnClick events (each one of this type with it's own method) instead.

Is this possible? I know there's an ItemClick event on the RadPanelBar itself, but there doesn't seem to be one on the RadPanelItems.

Many thanks for any help that can be offered.
Ivan Zhekov
Telerik team
 answered on 26 Jul 2011
1 answer
110 views
  1. How do i change css on a check item using RadTreeNodeBinding
  2. also onnodecheck (postback) way to loop thru all checked items and will it include items checked as a result of CheckChildNodes being set

The data binds just fine pickup the is_closed column from the database

<td align="left" colspan="3">
                    <telerik:RadTreeView runat="server" ID="RadTreeView1" DataSourceID="SqlDataSource1"
                        DataFieldID="pk" DataFieldParentID="parent_pk" CheckBoxes="True"
                        CheckChildNodes="True" TriStateCheckBoxes="False"   
                        DataValueField="is_closed" onnodecheck="RadTreeView1_NodeCheck"   >
                        <DataBindings>
                            <telerik:RadTreeNodeBinding TextField="Description" Expanded="True" 
                                AllowDrag="False" AllowDrop="False"  
                                CheckedField="is_closed" AllowEdit="False"  />
                        </DataBindings>
                    </telerik:RadTreeView>
                </td>
Plamen
Telerik team
 answered on 26 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?