Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
153 views

Hello Telerik,

I can't seem to hide my RadDock's border no matter what. I've tried all the options below but it still shows (see attached screenshot):

In my code behind:

Dim rd As New RadDock
rd.ID = "Dock1"
rd.DockMode = DockMode.Docked
rd.DockHandle = DockHandle.None
rd.ControlStyle.BorderStyle = BorderStyle.None
rd.ControlStyle.BorderWidth = 0
rd.Resizable = False
rd.BorderStyle = BorderStyle.None
rd.BorderWidth = 0
rd.ContentContainer.BorderStyle = BorderStyle.None
rd.ContentContainer.BorderWidth = 0

In my .ASPX file:

<style type="text/css">
    /* Remove border on all docks */
    .rdTable, .rdTop, .rdMiddle, .rdBottom    
    {   
        border-width: 0px !important;   
        border-style: none !important;
    }   
</style>

I'm out of ideas. Am I missing something else?

Thanks for any help.

KOGAN
Top achievements
Rank 1
 answered on 04 Nov 2015
10 answers
486 views
I have a project that is coming to its conclusion of the next day or so.  The last component of the project benefited greatly by implementing Telerik's Ajax.  I wrapped my project in a RadAjaxPanel and all worked incredibly well.... except my export to excel class.  I reworked all with RadGrid in hopes that it would work seamlessly.  It looks great but I get no response from the button that executes the RadGrid export to excel function.  The app hesitates briefly and than returns control to the user.  I tried just using the RadAjaxManager and the wheels fell off of my MultiView views.  I have very limited exposure to Telerik and have spent the last two days searching for specific code on how to handle this.  Could you please point me to code that would show this in action?  I am coding in VB (VS2005).  Another simpler question is how do I left justify the RadGrid.MasterTableView Caption?
Thanks very much
Perumal
Top achievements
Rank 1
 answered on 04 Nov 2015
2 answers
158 views

Hi there, it seems that when the scheduler is given times that overlap on the 1/2 hour, it extends that box up until the next half hour mark. This causes the component to show appointments which "appear" to overlap, even though they do not.

Please see screen attached below

First appointment goes until 09:31, second appointment starts 09:32

However the component shows overlap (highlighted in red box), because the first appointment box has been extended up until the 10:00 half hour mark.

Is there anything that can be done about this, are there any settings which would allow for a more accurate representation of the timings?

http://i.imgur.com/XzTrRET.png

thanks.

ash

ash
Top achievements
Rank 1
 answered on 04 Nov 2015
1 answer
101 views

Hello,

how can i do fadeIn and fadeOut (jQuery?) RadPageView's without RadTabStrip (RadPageView has no event OnSelectedIndexChange?)

Thanks for help...

Andreas

<telerik:RadMultiPage runat="server" ID="MultiPageShop" SelectedIndex="0" RenderSelectedPageOnly="True" RenderMode="Auto">
  <telerik:RadPageView runat="server" ID="PageOverview">
    <div class="shopWrapper">
      <h4 class="section-title">Overview</h4>
      <uc1:ShopOverview ID="ShopOverview1" runat="server" />
    </div>
  </telerik:RadPageView>
  <telerik:RadPageView runat="server" ID="PageAddress">
    <div class="shopWrapper">
      <h4 class="section-title">Address</h4>
      <uc2:ShopAddress ID="ShopAddress1" runat="server" />
    </div>
  </telerik:RadPageView>
  <telerik:RadPageView runat="server" ID="PageInvoice">
    <div class="shopWrapper">
      <h4 class="section-title">Invoice</h4>
      <uc3:ShopInvoice ID="ShopInvoice1" runat="server" />
    </div>
  </telerik:RadPageView>
  <telerik:RadPageView runat="server" ID="PageFinal">
    <div class="shopWrapper">
      <h4 class="section-title">Final</h4>
      <uc4:ShopFinal ID="ShopFinal1" runat="server" />
    </div>
  </telerik:RadPageView>
</telerik:RadMultiPage>

Ivan Danchev
Telerik team
 answered on 04 Nov 2015
1 answer
92 views

Hello!

I am trying to get the sheduler working with a Oracle 11g database. While the select of data works great, inserting / updating produces the error:

 'ORA 01006 missing bind variables'

 While all examples use the @ for the prepared statements, oracle uses a ":". My Insertcommand looks like this:

 InsertCommand="INSERT INTO KALENDER (KALENDER_NR, ZEITPUNKT, ZEITPUNKT_BIS, FIRMENNAME) VALUES (KALENDER_SEQ.nextval, SYSDATE, SYSDATE, :FIRMENNAME)"

 while KALENDER_SEQ is the sequence for creating a unique id, SYSDATE is for the test only, :FIRMENNAME is mapped as subject and works atleast in "readingmode" => The appointments show all given information.

sqldatasourceparamters (select,insert,update):

     <asp:Parameter Name="FIRMENNAME" Direction="InputOutput" Type="String" />

 

Sheduler:

<telerik:RadScheduler runat="server" ID="RadScheduler1"  OnAppointmentCommand="RadScheduler1_AppointmentCommand" OnAppointmentInsert="RadScheduler1_OnAppointmentInsert"
                Width="1250px" Height="1400px" OnFormCreated="RadScheduler1_FormCreated"
                DataKeyField="KALENDER_NR" DataSubjectField="FIRMENNAME" DataStartField="ZEITPUNKT" DataEndField="ZEITPUNKT_BIS" Culture="de-DE" DataSourceID="SqlDataSource1"  Skin="Bootstrap" RowHeight="30px" EnableCustomAttributeEditing="True">
                   <AdvancedForm EnableCustomAttributeEditing="True" ></AdvancedForm>​

...

div id="InlineInsertTemplate">
                        <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("FIRMENNAME") %>' TextMode="MultiLine"></asp:TextBox>
                        <asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert">Insert</asp:LinkButton>AdvancedEditTemplate:

                        <div>
                            <asp:Label ID="Label2" AssociatedControlID="StartInput" runat="server">Start time:</asp:Label>
                            &nbsp;&nbsp;
                        <telerik:RadDateInput ID="StartInput" SelectedDate='<%# Bind("FIRMENNAME") %>' runat="server"></telerik:RadDateInput><br />
                        </div>​...

 

I have tried many things, as @ ? for the prepared Statements, but nothing works. I hope somebody who has a project with an oracle database and different key-names for subject,start,end can help me with a example project.

Thank you very much and best regards,

Mirko

Plamen
Telerik team
 answered on 04 Nov 2015
2 answers
139 views

Hi

 I'm trying to set the MaxLength of TextBoxes in GridBoundColumn.

 I get null for the Textbox...what am I doing wrong?

Code is below, thanks!

 

<telerik:RadGrid ID="grdUser" runat="server" CellSpacing="0" AutoGenerateColumns="False"
Width="95%" ShowStatusBar="True" OnInsertCommand="grdUser_InsertCommand" OnUpdateCommand="grdUser_UpdateCommand"
PageSize="20" AllowPaging="True" OnNeedDataSource="grdUser_NeedDataSource"
OnPreRender="grdUser_PreRender"
OnItemDataBound="grdUser_ItemDataBound"
GridLines="Horizontal">
<PagerStyle Mode="NextPrev"></PagerStyle>
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView InsertItemPageIndexAction="ShowItemOnCurrentPage" EditMode="InPlace" CommandItemDisplay="Top" PagerStyle-Position="Bottom">
<CommandItemTemplate>
<div style="padding: 5px 5px;">
<asp:LinkButton ID="lnkBtnNew" CssClass="buttonClass" runat="server" CommandName="InitInsert"
Visible='<%# !grdUser.MasterTableView.IsItemInserted %>'>New</asp:LinkButton>&nbsp;&nbsp;
</div>
</CommandItemTemplate>
<Columns>
<telerik:GridBoundColumn DataField="UserID" HeaderText="User Id" UniqueName="UserID" Visible="false" />
<telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="FirstName" />
<telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" UniqueName="LastName" />
<telerik:GridBoundColumn DataField="LoginID" HeaderText="Login ID" UniqueName="LoginID" />
<telerik:GridCheckBoxColumn DataField="Active" HeaderText="Active" UniqueName="Active" />
<telerik:GridBoundColumn DataField="CreateUser.UserID" HeaderText="CreateUser.UserID" UniqueName="CreateUserID" Visible="false" />
<telerik:GridBoundColumn DataField="CreatedDate" DataType="System.DateTime" HeaderText="CreatedDate" UniqueName="CreatedDateLabel" ReadOnly="true" />
<telerik:GridBoundColumn DataField="CreatedDate" DataType="System.DateTime" HeaderText="CreatedDate" UniqueName="CreatedDate" Visible="false" />
<telerik:GridBoundColumn DataField="ChangeUser.UserID" HeaderText="ChangeUser.LoginID" UniqueName="ChangeUserID" Visible="false" ReadOnly="true" />
<telerik:GridBoundColumn DataField="ChangedDate" DataType="System.DateTime" HeaderText="ChangedDate" UniqueName="ChangedDate" ReadOnly="true" />
<telerik:GridEditCommandColumn />
</Columns>
</MasterTableView>
</telerik:RadGrid>

 

 

protected void grdUser_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
                    var d = UIProcess.UserGetAllColumnLengths();
var t = ((GridEditableItem)e.Item).FindControl("FirstName");

// t is NULL!
if (t != null)
(e.Item.FindControl("FirstName") as TextBox).MaxLength = d["FirstName"] ?? 0;
                   
                }
}
           

Christopher
Top achievements
Rank 1
 answered on 03 Nov 2015
2 answers
125 views
With an ASP.net Gridview I set the select method in the C# code behind page, and use an IQueryable to access the data entity data to populate the Grid.  Is it possible to do this with the RadGridview or do I have to make that connection with the ASP code?  If so can someone provide instructions on how to do that or an example?
Perry
Top achievements
Rank 1
 answered on 03 Nov 2015
3 answers
275 views

Hello I'm trying to open a radwindow from the server side on the event on some a linked button on a radgrid clicked it makes an ajax call using the ajax manager

the problem is the $find() function always returns null

 I tried every possible solution I found online and the javascript function is at the end of the page

<telerik:RadCodeBlock ID="CodeCodeCode" runat="server">
        <script type="text/javascript">
            function OpenWindow(url)
            {
                var rwindow = $find("<%= rw_customerfeedback.ClientID %>");
                rwindow.setUrl(url);
                rwindow.show(url);
                rwindow.center();
            }
        </script>
 </telerik:RadCodeBlock>

here's how I make the ajax call

<telerik:AjaxSetting AjaxControlID="lnkbtn_complaint">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rw_customerfeedback" />
                    </UpdatedControls>
</telerik:AjaxSetting>

and here's how I call the java script code

string corporateIdentifier = RouteData.Values["CorporateIdentitfier"].ToString();
           string url = Page.GetRouteUrl("Complaints", new RouteValueDictionary{{"CorporateIdentifier", corporateIdentifier }});
           string script = @"OpenWindow('" + url + "');";
           Session["TicketID"] = e.CommandArgument;
           ScriptManager.RegisterStartupScript(this, this.GetType(), "OpenWindow", script, true);

Marin Bratanov
Telerik team
 answered on 03 Nov 2015
4 answers
112 views

I have multiple charts in initially hidden iframe, so i forced to redraw them because of ​known issue.

It seems to me that this slows load quite a bit. Is there anything that can improve the situation?

 Here is the code

  var myIframe = $get("<%= ifSummary.ClientID %>");
  myIframe.contentWindow.redrawChart();

function redrawChart() {
               kendo.drawing.util.TextMetrics.current._cache = new kendo.drawing.util.LRUCache(1000);
               $find("<%=rcImpacts.ClientID%>").get_kendoWidget().redraw();
               $find("<%=pieValueAdded.ClientID%>").get_kendoWidget().redraw();
               $find("<%=rchInvestments.ClientID%>").get_kendoWidget().redraw();
               $find("<%=rhcWages.ClientID%>").get_kendoWidget().redraw();
           }
​

 

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 03 Nov 2015
3 answers
58 views
Hi
I have Telerik Ajax license can I download and use Kendo UI controls with same license or do I need to look for new license.
Thanks
Mike
Telerik team
 answered on 03 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?