Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
97 views
If I have a Grid with a CommandItem refresh button like this:
<rad:RadGrid ID="myRadGrid" runat="server">
    <MasterTableView CommandItemDisplay="Top" CommandItemSettings-ShowAddNewRecordButton="false">
    </MasterTableView>
</rad:RadGrid>

How do I change the behavior of that refresh button?
Calvin
Top achievements
Rank 1
 asked on 26 Jul 2011
7 answers
126 views
Hi,
I have a treelist within which I use a template column with a pencil icon that I assign an onclick event from the code behind.  The event simply calls a js function with the current row GUID.  This works well.

However with the recent release the OnItemClick client event can now be called and I use that to call a JS function that opens a popup page.

The issue that I have is that now both functions are called when the user clicks on the edit pencil so I get a details and an admin page being opened!  Is there a way to determine the column that was clicked from the OnItemClick event and thus exclude the column?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 26 Jul 2011
2 answers
179 views
Is there a way to remove the border between the radpanel bars? (Please see attached). I am using Outlook skin on the radPanelBar, and was wondering if there is a way to remove the 1px line shows up right above the radpanelitem.

I tried to manipulate it by using the following css code, but wasn't successful.

.RadPanelBar .rpRootGroup .rpOut
{
    border: 0 !important;
    padding: 0 !important;
}

Thank you.
Jacob
Top achievements
Rank 1
 answered on 26 Jul 2011
0 answers
83 views
I have created a page that consumes an rss feed. I have six boxes that display the feeds, I have attached a screenshot, there are three at the top and three below.
I have used the following markup:
<div id="allNewsTop" class="allNews">
    <div id="newsDiv1" class="newsItem" runat="server">
        <asp:Image ID="Image1" runat="server" />
        <br />
        <asp:HyperLink ID="HyperLink1" runat="server"></asp:HyperLink>
        <p id="desc1" runat="server"></p>
    </div>
    <div id="newsDiv2" class="newsItem" runat="server">
        <asp:Image ID="Image2" runat="server" />
        <br />
        <asp:HyperLink ID="HyperLink2" runat="server"></asp:HyperLink>
        <p id="desc2" runat="server"></p>
    </div>
    <div id="newsDiv3" class="newsItem" runat="server">
        <asp:Image ID="Image3" runat="server" />
        <br />
        <asp:HyperLink ID="HyperLink3" runat="server"></asp:HyperLink>
        <p id="desc3" runat="server"></p>
    </div>
</div>
<div id="allNewsBottom" class="allNews">
    <div id="newsDiv4" class="newsItem" runat="server">
        <asp:Image ID="Image4" runat="server" />
        <br />
        <asp:HyperLink ID="HyperLink4" runat="server"></asp:HyperLink>
        <p id="desc4" runat="server"></p>
    </div>
    <div id="newsDiv5" class="newsItem" runat="server">
        <asp:Image ID="Image5" runat="server" />
        <br />
        <asp:HyperLink ID="HyperLink5" runat="server"></asp:HyperLink>
        <p id="desc5" runat="server"></p>
    </div>
    <div id="newsDiv6" class="newsItem" runat="server">
        <asp:Image ID="Image6" runat="server" />
        <br />
        <asp:HyperLink ID="HyperLink6" runat="server"></asp:HyperLink>
        <p id="desc6" runat="server"></p>
    </div>
</div>
I have the following CSS:
.newsItem
{
    width:220px;
    height:225px;
    float:left;
    margin-left:5px;
    margin-top:5px;
    border: 1px solid white;
    padding-left:5px;
}
.allNews
{
    padding-left:8px;   
}
.searchLists
{
    width:689px;
    height:50px;
    margin-left:13px;
}
#sourceSearch
{
    width:335px;
    padding-left:5px;
    float:left;
    padding-top:2px;
}
#teamSearch
{
    width:335px;
    padding-left:5px;
    padding-top:2px;
    float:right;
}
.newsItem img
{
    padding-left:10px;
    padding-top:10px;
    padding-bottom:10px;
    width:130px;
    height:70px;
}
.newsItem a
{
    padding-bottom:10px;
    padding-right:5px;
}
.newsItem p
{
    padding-right:5px;
}


It then dawned on me to use a list view with paging so that i can display further feeds as at the moment the page can only display the first six feeds retrieved.

I have attempted using the radlistview but i dont know how to make the page have two rows of three boxes, the display always puts 6 boxes in a single row.

Do i need to use nested listviews? Not sure how that works.

Any help isappreciated.
Antony
Top achievements
Rank 1
 asked on 26 Jul 2011
3 answers
95 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
54 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
108 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
63 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
74 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
599 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?