Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
209 views
If you use the standard asp:datagrid and have a hyperlink column, the color will change once the link has been clicked. Same way as a standard web page with a hyperlink. The telerik:radGrid doesn't do this. What I have noticed is the link will slightly "Bold" the font once it has been clicked. How do you make a telerik:GridHyperLinkColumn behave like a "standard" web page hyperlink and change colors once the link has been clicked and maintain that history of being viewed?
dhuss
Top achievements
Rank 1
 answered on 08 Feb 2012
3 answers
119 views
Hi:

I was testing a RadNumericTextBox.  It is somewhat declared as follows:
<telerik:RadNumericTextBox ID="quantityTextBox" Runat="server" MaxLength="4"
    MaxValue="9999" MinValue="1" Text='<%# Bind("Quantity") %>' Width="60px"
    OnTextChanged="quantityTextBox_TextChanged" AutoPostBack="True"
    />
I was testing for XSS (cross site scripting) and was able to paste <scr into the textbox.  I was not able to type the value, but surprisingly, I was able to paste non-numeric data.

Phil
Elliott
Top achievements
Rank 2
 answered on 08 Feb 2012
0 answers
46 views
I need to export multiple tabs to different worksheets into a single excel, how can I do that.

Thanks,
Penchala Pavan.
Penchala
Top achievements
Rank 1
 asked on 08 Feb 2012
0 answers
174 views
I have 2 issues, both in month view of the Scheduler.

We have calendars with many, many events.  On too many days all of the calendar items were not showing.  So I added
<MonthView VisibleAppointmentsPerDay="99" AdaptiveRowHeight="true" />
This solved MOST of the issues. 

First, the last item in a day overlaps the week seperator row (with the day numbers) by about 50%.  See the attached image for an example.

Second, "Show More" is not displaying.  We really can't use AdaptiveRowHeight.  Some days have 20 events and the calendars are just too large.  So we really need to use VIsibleAppointmentsPerDay and MinimumRowHeight with Show More.

I though Show More wasn't appearing because of a CSS issue someplace.  But in looking at the rendered HTML, Show More isn't even being rendered.  I also can't find anything in the code that uses the LocalizationStrings class to set Show More to something else such as a blank string.

I've also attached our CSS (as a .jpg file) file for the rsElements

Does anyone have an idea how I can correct these issues?




Dan
Top achievements
Rank 1
 asked on 08 Feb 2012
2 answers
118 views
I like Kendo Web UI demo at: http://demos.kendoui.com/web/overview/index.html
Is there some way how to tweak ASP.NET AJAX RadPanelBar to behave in the similar way (inject content do page without postback, stay expanded on actual page, change address in URL?)
I’m starting a new web database application (mainly administrative interface) and I’m looking for best responsive and quick UI architecture. I’ve deep Telerik ASP.NET AJAX controls knowledge, so I prefer to stay within borders of ASP.NET AJAX. But if it will be unavoidable, I can switch to other technology as needed, of course.
Thank you very much for your advice.
Zdenek
Zdeněk
Top achievements
Rank 1
 answered on 08 Feb 2012
2 answers
100 views
hi 
i have a RadGrid Popup which is displayed under the RadMenu when it's moved, it a Zindex issue and i've tried to override the Zindex of the RadMenu and Zindex of the popup but nothing happened, can any one help me please ?
Rasheed
Top achievements
Rank 1
 answered on 08 Feb 2012
1 answer
84 views
I've been trying to replace a half a dozen textboxes ties to Tigris calendar controls with RadDateInput controls
when I click on the calendar controls I get an error
I've change the DateFormat to d
is there a way to internally remove the time?
Elliott
Top achievements
Rank 2
 answered on 08 Feb 2012
1 answer
97 views
Hello,
I have a gridview like,
<telerik:RadGrid ID="RadGrid1" GridLines="None" Width="485" ShowGroupPanel="false"
                AllowFilteringByColumn="true" runat="server" CellSpacing="0" AutoGenerateColumns="false"
                OnItemDataBound="RadGrid1_ItemDataBound" AllowSorting="true">
                <ClientSettings AllowDragToGroup="true" AllowRowsDragDrop="true" AllowAutoScrollOnDragDrop="true"
                    AllowGroupExpandCollapse="True" ReorderColumnsOnClient="True" AllowColumnsReorder="True"
                    Animation-AllowColumnRevertAnimation="true" ColumnsReorderMethod="Reorder" Animation-AllowColumnReorderAnimation="true">
                    <ClientEvents OnRowDblClick="RowDblClick" />
                    <Selecting AllowRowSelect="true" />
                </ClientSettings>
                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                </HeaderContextMenu>
                <MasterTableView ShowGroupFooter="false" AllowMultiColumnSorting="true" EnableHeaderContextMenu="true"
                    GroupsDefaultExpanded="false">
                    <Columns>                      
                        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                            Visible="true" UniqueName="Name">
<telerik:GridBoundColumn DataField="userType" HeaderText="Type" SortExpression="userType"
                            Visible="true" UniqueName="userType">
                        </telerik:GridBoundColumn>                       
                        <telerik:GridTemplateColumn DataField="Address" HeaderText="Address" SortExpression="Address"
                            UniqueName="Address">
                            <ItemTemplate>
                                <asp:Label ID="lblVersion" runat="server" Text='<%#Eval("Address") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>                      
                        <telerik:GridTemplateColumn DataField="attachment" AllowFiltering="false" Display="false"
                            UniqueName="attachment">
                            <ItemTemplate>
                                <asp:Label ID="hfattachment" runat="server" Text='<%#Eval("attachment") %>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldName="Name" />
                                <telerik:GridGroupByField FieldName="Type" />                            
                            </GroupByFields>
                            <SelectFields>
                                <telerik:GridGroupByField FieldName="File_Name" HeaderText="Name   " />                               
                            </SelectFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>
                </MasterTableView>
                <GroupingSettings ShowUnGroupButton="false" />
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
            </telerik:RadGrid>
----------------------

I have dabble click option here, when I dabble click a row it show it's attachment....
dabble click function is...

<script type="text/javascript">


            function DownloadFile(filepath) {
                alert(filepath);
                window.open(filepath, '_blank', 'top=200, left=250,height=400,width=700,status=yes,toolbar=no,menubar=no,location=yes,resizable=yes');
            }    

            function RowDblClick(sender, eventArgs) {
                var rowIndex = eventArgs.get_itemIndexHierarchical();
                var grid = $find("<%=RadGrid1.ClientID %>");

                var masterTableView = grid.get_masterTableView();
                var item = masterTableView._dataItems[rowIndex];
                var items = eventArgs.get_gridDataItem();
                var Element = items._element;
                if (Element) {
                    var keyValues = Element.cells[3].innerText;
                    alert(keyValues);
                    DownloadFile(keyValues);                           
                }
            }
    
        </script>

------------------------
Everything is good here for other browser but, when I run the application with safari (i am using 5.0.1) then it take also my localhost address ( like- http://localhost:53809/myapp/%20%20%20http://www.mydomain.com/myfile.doc)
any one please tell me why this is happening ?
Marin Bratanov
Telerik team
 answered on 08 Feb 2012
5 answers
880 views
Please help. I have one column in each row of my radgrid  in which i want to show an image. I am  getting values from database reading 1 or 2 for that particular column and for each of these values i want to show different images for different values. For example if i am getting 1 from database I want to show a particular image and for 2 i want to show a different image. Right now I am hardcodeing the red_circle image as I have not incorporated the database logic. So as of now when I click the imagebutton it is working as intended(it changes the image from red to green or green to red) I just need to figure out how to dynamically tell it which image to load depending on database column value of 1 or 2.
Thanks!

--aspx code

<

Columns>

 <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID" ReadOnly="True" SortExpression="ID" UniqueName="ID" Visible="False">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="NAME" HeaderText="NAME" SortExpression="NAME" UniqueName="NAME">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="TITLE" HeaderText="TITLE" SortExpression="TITLE" UniqueName="TITLE">

 </telerik:GridBoundColumn>

 <telerik:GridTemplateColumn HeaderText="STATUS" UniqueName="STATUS">

 <ItemTemplate>

 <asp:ImageButton ID="lnkStatus" runat="server" ImageUrl = "\Images\circle_red.png" CommandName="StatusChange" CommandArgument='<%# Eval("ID") %>'></asp:ImageButton>

 </ItemTemplate>

 </telerik:GridTemplateColumn>

 </Columns>

 
--.vb code

 Protected Sub gvStaff_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles gvStaff.ItemCommand

 

If e.CommandName = "StatusChange" Then

If TypeOf e.Item Is GridDataItem Then

  

Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)

Dim statusButton As ImageButton = DirectCast(item("STATUS").FindControl("lnkStatus"), ImageButton)

statusButton.ImageUrl = "\Images\circle_green.png"

 End If

 End If

 End Sub

 

Antonio Stoilkov
Telerik team
 answered on 08 Feb 2012
1 answer
69 views
Hi.

In monthview the name of the month that is displayed in the header. This is always right even if the first day in the view is from the previous month.
I need to get this! 
VisibleRangeStart.Month gets the previous month, and selecteddate.month looks random.

I need this because I am creating a MonthPlan as a pdf that starts on the first monday of the Month. This is created from the displayed month. I can find the first monday, but I need to be on the correct month.

Please help.
Ivana
Telerik team
 answered on 08 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?