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

I'm trying to create a grid with a template column - see below.    Please see attached print screen.  There is something that looks weird behind the button.  I don't know how to fix this.

        <telerik:RadGrid ID="grd" runat="server" AutoGenerateColumns="False">
            <ClientSettings>
                <Scrolling AllowScroll="true" ScrollHeight="300px" UseStaticHeaders="true" />  
            </ClientSettings> 
            <MasterTableView AutoGenerateColumns="False" TableLayout="Fixed" DataKeyNames="OrderId">
                <Columns  >
                    <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                        <ItemTemplate >
                            <telerik:RadButton ID="id" runat="server" Text='<%# Eval("Id") %>'></telerik:RadButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>

Thanks for your help.
            </MasterTableView>
        </telerik:RadGrid>






Maria Ilieva
Telerik team
 answered on 14 Jan 2015
6 answers
654 views
Hi,
What is the property or how I can show the calendar so that users can only select a specific day. Example: Only Saturday.

Thanks,
Vasil
Telerik team
 answered on 14 Jan 2015
1 answer
197 views
I have created a sample web site that consists of a Master Page with a RadTabStrip and three tabs that link to three content pages ==> PageOne.aspx, PageTwo.aspx, and PageThree.aspx. The Master Page displays the current date/time which changes as each new tab is clicked.

My question, is there a way to have the new pages load without having to reload the Master Page, using Ajax or something. In this simple example, the date / time would not update as each new tab is clicked.

If so, how would I do this.  How would I change this.

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Untitled Page</title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
   <form id="form1" runat="server">
   <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
   </telerik:RadScriptManager>
   <div>
      <asp:Label ID="lblDateTime" runat="server" Text="Label"></asp:Label>
   </div>
   <div>
      <telerik:RadTabStrip ID="RadTabStrip" runat="server">
         <Tabs>
            <telerik:RadTab Text="Page One" NavigateUrl="PageOne.aspx" Value="PageOne.aspx"></telerik:RadTab>
            <telerik:RadTab Text="Page Two" NavigateUrl="PageTwo.aspx" Value="PageTwo.aspx"></telerik:RadTab>
            <telerik:RadTab Text="Page Three" NavigateUrl="PageThree.aspx" Value="PageThree.aspx"></telerik:RadTab>
         </Tabs>
      </telerik:RadTabStrip>
      <br /><br />
      <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
         
      </asp:ContentPlaceHolder>
   </div>
   </form>
</body>
</html>
 
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="PageOne.aspx.vb" Inherits="PageOne" %>
 
<%@ MasterType VirtualPath="~/MasterPage.master" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <b>Page One</b>
</asp:Content>
 
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="PageTwo.aspx.vb" Inherits="PageOne" %>
 
<%@ MasterType VirtualPath="~/MasterPage.master" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <b>Page Two</b>
</asp:Content>
 
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="PageThree.aspx.vb" Inherits="PageOne" %>
 
<%@ MasterType VirtualPath="~/MasterPage.master" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <b>Page Three</b>
</asp:Content>
 
On Page Load
Public Sub SetCurrentTab()
      Dim tab As RadTab = RadTabStrip.FindTabByValue(System.IO.Path.GetFileName(Request.Url.ToString()))
 
      If tab IsNot Nothing Then
         tab.Selected = True
      End If
   End Sub
End Class

Boyan Dimitrov
Telerik team
 answered on 14 Jan 2015
1 answer
144 views
Greetings,

Has anybody uploaded a library of custom RadButton icons anywhere?  I would love to get ahold of some icons that extend the embedded icons for additional features like a calculator or a cash register or dollar sign.

Thank you!

Matt
Danail Vasilev
Telerik team
 answered on 14 Jan 2015
3 answers
91 views
I noticed that if you enlarge the width of the box and then release your mouse button, you cannot reduce the width of the box to less than what it was when you released the button previously.

Any suggestions would be great!

Thanks,
Bala
Danail Vasilev
Telerik team
 answered on 14 Jan 2015
1 answer
54 views
protected void Button1_Click(object sender, EventArgs e)
{
    int PartyRowId = 0;
    foreach (UploadedFile file in AsyncUpload1.UploadedFiles)
    {
        byte[] bytes = new byte[file.ContentLength];
        file.InputStream.Read(bytes, 0, Convert.ToInt32(file.ContentLength));
        string json3 = "{'PartyRowId':" + PartyRowId + ",'CommonCategoryRowId':" + PartyRowId + ",'CommnonCategoryAttributesRowId':" + PartyRowId + ",'PartyDoc':" + bytes + "}";
          
 
    }
}


Here i am getting json as

{'PartyRowId':0,'CommonCategoryRowId':0,'CommnonCategoryAttributesRowId':0,'PartyDoc':System.Byte[]}

Not retreving the byte info.....

could u pls help me
Boyan Dimitrov
Telerik team
 answered on 14 Jan 2015
1 answer
179 views
I have two custom controls (A and B) on same page, corresponding to two radgrids.

Both .ascx files of these controls include:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
</telerik:RadWindowManager>

<telerik:RadNotification ID="n1" runat="server" Text="" Position="Center"
  AutoCloseDelay="5000" Width="450" Title="" KeepOnMouseOver="true"
  EnableRoundedCorners="true" Animation="Resize" ContentIcon="warning"
  AnimationDuration="700" TitleIcon="none" Font-Size="12px" Font-Bold="True"
  ShowCloseButton ="true">
</telerik:RadNotification>


...and in both .vb files I am using the following code to flash a message:

n1.Title = "Error Adding"
n1.Text = "Must have valid or non-Zero received qty!"
n1.Show()

What would be the possible reasons for the messages to come out empty (the window opens with no message) in only one of the custom controls?

In other words...
In all cases, where the message is generated in custom control A, it comes out fine.
In all cases, where the message is generated in custom control B, it comes out EMPTY.


Thanks for your time...
Marin Bratanov
Telerik team
 answered on 14 Jan 2015
1 answer
87 views
Hi....
     Is there a way that we can get the resourceID when there is a resource grouping done in OnClientTimeSlotClick event.

Thanks in advance.
Venkat

Got it....

 

 

function OnClientTimeSlotClick(sender, eventArgs) {

 

var

 

 

slot = eventArgs.get_targetSlot();

 

 

 

 

var

 

 

currentRoom = slot.get_resource(); 
}
or

 

function

 

 

OnClientAppointmentInserting(sender, eventArgs) {

 

 

 

var slot = eventArgs.get_targetSlot();

 

 

 

var start = slot.get_startTime();

 

 

 

var end = slot.get_endTime();

 

 

 

var currentRoom = slot.get_resource();

 

eventArgs.set_cancel(

 

true);

 

}

Olivier
Top achievements
Rank 2
 answered on 14 Jan 2015
3 answers
205 views
In our web application we open other web pages inside a radwindow within the application that show reports or graphs. I have a javascript function for the OnClientDragEnd event and in this event I just do an alert like the following

function newPosition(sender,args) {
alert('left='+sender.get_left()+'  top='+sender.get_top());
}

The alert shown states the left and top both equal null. I am using radwindowmanager and the event is set in here to be applied to the radwindows that are created. There is no restriction zone being applied so I dont know why I would not get values from these calls.


Marin Bratanov
Telerik team
 answered on 14 Jan 2015
1 answer
182 views
Hey !

I have a little problem with my CSS and my ToolTipSetting :

http://puu.sh/epSZn/cbbd6a007d.png

How can I put my background on my ToolTip ? Without white.

this is my CSS :
.rightCol {
    font-size: 14px;
    font-family: "Segoe UI",Segoe,"Roboto","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    text-align: left;
    line-height: 19px;
    background-image: linear-gradient(white, black);
}

and my ToolTip :
string template = @"
      <div class=""rightCol"">
      <div class=""NameStation"">{1}</div>
      <div class=""CodeSandre"">{2}</div><br/>
      <div class=""MaitreOuvrage"">{3}</div><br/>
      <div class=""Capacite"">{4}</div>
</div>";


Thx !
Ianko
Telerik team
 answered on 14 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?