Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
224 views

I have a web app that's been using a RadGrid for some years now.  The original layout was established in part by trial and error and has worked out fairly well.

I've only recently upgraded to the latest Telerik controls and I'm trying to use the BootStrap skin. 

It looks to me like this particular skin is somehow affecting (increasing) row height and none of the solutions that I've found in the forums seem to affect it. 

Everything looks fine except for this one particular issue. 

Any way to get this under control?

Nencho
Telerik team
 answered on 30 Jan 2017
0 answers
172 views

Hi,

I'm using a RAD Scheduler Timeline view which should show users appointment in a timeline view. Im using a datatable to bind the data. howewer for the same resource there are multiple rows in the data table in turn there are multiple rows for that resouce in RAD Scheduler. 

Example:

Sankar - 01/30/2017 - 09:00 AM

Sankar - 01/30/2017 - 05:00 PM

For the above mentioned rows in Datatable Im getting two individual rows in RADScheduler. But I should get both 9 AM and 5 AM appointments in the same row. Please help as its urgent. Thanks in Advance..

Allwin
Top achievements
Rank 1
 asked on 30 Jan 2017
1 answer
143 views

Hi,

Have NumericTextBox inside asp:Repeater ItemTemplate:

<telerik:RadNumericTextBox ID="ntbPrice" runat="server" Value='<%# Convert.ToDouble(DataBinder.Eval(Container.DataItem, "DefaultPrice")) %>' MinValue="1" Type="Currency" Width="60px" InvalidStyleDuration="200" OnKeyDown = "return (event.keyCode!=13);">
</telerik:RadNumericTextBox>

Problem is that I am not receiving updated values at post back (user types some value in the numeric text box). Value is always initial value automatically set during control data binding.

Any idea?

Thanks in advance,
Sanjin

Sanjin
Top achievements
Rank 1
 answered on 28 Jan 2017
0 answers
123 views

Hi,

I am new to this rad rotator object and I came across the following old code. The issue at hand is that when I run the page, nothing shows up in the rotator control and it is blank. I performed some debugging and I do see that there are some invisible objects but I am not able to see anything. I have connected the rotator control to a sql data source and there is data in the table but nothing is getting presented in the page. I would appreciate your help in fixing this issue.

Thanks

<telerik:RadDock ID="RadDock12" runat="server" Text="Blog" Collapsed="False"
Title="Breaking Security"  Width="25%" Height="170">
 
                <ContentTemplate>                                                 
 
                    <telerik:RadRotator ID="RadRotator2" runat="server" Width="100%" Height="100%"  ScrollDuration="10000" ScrollDirection="Down"
                        FrameDuration="6000" ItemHeight="170px" ItemWidth="100%" DataSourceID="Sql_Security" >
                        <ItemTemplate>
                            <table style="width: 100%; height: 140px; display:block; border:solid; margin-top:100px;" onclick="<%# DataBinder.Eval(Container.DataItem, "Info_Link")%>">
                                <tr>
                                    <td style="vertical-align: middle; padding-right: 10px;">
                                        <%# DataBinder.Eval(Container.DataItem, "Alert_Title")%>
                                    </td>
                                    <td style="font-size: 11px; vertical-align: middle">
                                        <%# DataBinder.Eval(Container.DataItem, "Alert_Details")%>
                                    </td>
                                    <td style="vertical-align: middle;">
                                    <a href="<%# DataBinder.Eval(Container.DataItem, "Info_Link") %>" target="_blank">details</a>
                                        <%--<asp:Image ID="CustomerImage" runat="server" ImageAlign="Left" ImageUrl='<%# String.Format("~/Img/Northwind/Customers/Thumbs/{0}.jpg", DataBinder.Eval(Container.DataItem, "Alert_Title_Image")) %>' />--%>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </telerik:RadRotator>
                    <asp:SqlDataSource ID="Sql_Security" runat="server" ConnectionString="<%$ ConnectionStrings:OLD_Reporting_Prod_DB %>"
                        SelectCommand="SELECT TOP 1000 [Alert_Source]
                                                ,[Alert_Title]
                                                ,[Alert_Title_Image]
                                                ,[Alert_Arrow]
                                                ,[Alert_Arrow_Image]
                                                ,[Alert_Number]
                                                ,[Alert_Number_Image]
                                                ,[Alert_Details]
                                                ,[Date_Inserted]
                                                ,[Info_Link]
                                            FROM [Reporting].[dbo].[Security_Alert_Feed]
                                            WHERE LEN(Alert_Details)>= 15 AND Info_Link != ''">
                    </asp:SqlDataSource>
                
                </ContentTemplate>
 
            </telerik:RadDock>
Mahadevan
Top achievements
Rank 1
 asked on 27 Jan 2017
0 answers
153 views

Hi Everyone!

I had a question about the autogenerated source of an image by webresources...

I have a custom Skin and I'm trying to load by background-image the image that should be in the input..

But the old skin that was in use before, is not allowing to load this image because it already has a src calling a webresource. I wanted to know a way

so that this webresources doesn't load so that my css can load the correct image...

 

I leave what I see in the code:

 

aspx.

"

telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                                    EditText="Editar" CancelText="Cancela" HeaderStyle-Width="15px" ></telerik:GridEditCommandColumn>
                                </Columns>
                            <EditFormSettings EditColumn-UpdateText="Grabar" EditColumn-CancelText="Cancelar"
                                EditColumn-EditText="Editar" EditColumn-InsertText="Agregar">
                                <FormTableItemStyle Wrap="False" Width="100%" HorizontalAlign="Center"></FormTableItemStyle>
                                <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                                <FormStyle Width="80%"></FormStyle>
                                <EditColumn ButtonType="ImageButton" InsertText="Agregar registro" UpdateText="Grabar registro"
                                    UniqueName="EditCommandColumn1" CancelText="Cancelar">
                                </EditColumn>

"

 

and in HTML it goes like this:

"

<input type="image" name="rgTabla$ctl00$ctl02$ctl03$PerformInsertButton" id="rgTabla_ctl00_ctl02_ctl03_PerformInsertButton" title="Agregar registro" src="/WebResource.axd?d=-LdubnxzpGsEX0PhLR4Nioi-oDbpYooCwOm9x3Fkw1G9S5YMd-2KNwfyIWIWU4cxTCaAhi-faGCTg1_lqbNwR9CmU-W4uj9fSGQPXL9jkzqDtNRR63VoEHu6DD8vG6WcChcK4m4WNj60wyl2Tpg7xQ2&amp;t=636192352887214136" alt="Agregar registro" style="border-width:0px;">

"

 

and my css that is working but is under this image that is loading is the following:

"

.RadGrid_HS .rgEditForm [type="image"]#rgTabla_ctl00_ctl02_ctl03_PerformInsertButton{
    width: 18px !important;
    height: 18px !important;
    background-image: url('Common/radActionsSprite.png') !important;
    background-position: -8px -2610px !important;
}

"

 

Thanks for reading!

Hernan,

 

 

Hernan
Top achievements
Rank 1
 asked on 27 Jan 2017
1 answer
151 views
Hi,
I have downloaded the Telerik components recently, but no skin is available for ComboBox although they are available in the directory (C:\Program Files\Telerik\UI for ASP.NET AJAX R1 2017\Skins)
Regards,
Sara
Ivan Danchev
Telerik team
 answered on 27 Jan 2017
1 answer
142 views

Hey!

I want to remove the PageView of a tab and give the tab a new PageView. Currently I'm doing it like this:

// Delete PageView from tab
RadTab tabToReset = TabStripBookings.FindTab(t => Convert.ToInt32(t.Attributes["bookingId"]) == bookingId);
 
if (tabToReset == null)
{
    System.Diagnostics.Debug.WriteLine($"Tab with booking id {bookingId} not found.");
    return;
}
 
// Remove old PageView
MultiPageBookings.PageViews.Remove(tabToReset.PageView);
 
// Add new PageView to tab
AddPageView(tabToReset);

 

The "AddPageView" Method looks like this:

RadPageView pageView = new RadPageView();
pageView.ID = "PageView_" + tab.Attributes["bookingId"] ;      // set the id of the pageview depending on the booking ID (0 for new booking)
pageView.CssClass = "contentWrapper" + tab.Index;
pageView.Attributes.Add("bookingId", tab.Attributes["bookingId"]);
pageView.Attributes.Add("day", tab.Attributes["day"]);
tab.PageViewID = pageView.ID;
MultiPageBookings.PageViews.Add(pageView);

 

And finally my PageViewCreated Event:

BookingControl userControl = (BookingControl) Page.LoadControl("BookingControl.ascx");
 
// PageView ID is: PageView_BookingId -> split in PageView & BookingId
// Set UserControl id to UserControl_BookingId
userControl.ID = "UserControl_" + e.PageView.ID.ToString().Split('_')[1];
userControl.BookingDeleted += UserControl_BookingDeleted;       // Subscribe to event when a booking is deleted
userControl.FormReset += UserControl_FormReset;                 // Subscribe to event when the form shall be reseted
 
if (e.PageView.HasAttributes)
{
    userControl.ValuesSet = true;
    userControl.BookingId = Convert.ToInt32(e.PageView.Attributes["bookingId"]);
    userControl.SelectedDay = DateTime.ParseExact(e.PageView.Attributes["day"], "dd.MM.yyyy", null);
}
 
e.PageView.Controls.Add(userControl);

 

How it shall work:

The first method is called via an event. The MultiPage should be removed and a new one (basically the same one as before, but freshly initialized from the database) is added to the MultiPage.

What it actually does:

At first I don't see the new Tab where it should be. Instead the content of the next tab is shown, but when I switch to another tab and then switch back, the correct PageView is shown.

 

Is there any solution for this problem? Am I missing something? Can I maybe tell the TabStrip to reload its PageView?

Greetings

Felix

Peter Milchev
Telerik team
 answered on 27 Jan 2017
3 answers
192 views
Hi telerik team

i'm trying to select date from calendar. when i click raddtepricker it show buddhist year and i choose date , it not show buddhist year in text box.(can see in attach file)

how can i fix that ?? 

thanks you
Burawat
Top achievements
Rank 2
 answered on 27 Jan 2017
4 answers
109 views

I use RadEditor in MasterPage and Delete button is disabled into ImageManager. I have ViewPaths, UploadPaths, and DeletePaths in server side.

Se attached image....

I get error:
Message 
System.Web.HttpException (0x80004005): This is an invalid webresource request.
at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

 

<telerik:RadEditor ID="RadEditor1" RenderMode="Lightweight" Culture="sv-SE" StripFormattingOptions="All" ContentAreaMode="Div" ToolsFile="~/medlemsidor/minsida/presentation/Toolbar.xml" ExternalDialogsPath="~/EditorDialogs/" Width="578px" Height="400px" EditModes="Design" MaxHtmlLength="8000" runat="server" />

 

RadEditor1.ImageManager.MaxUploadFileSize = "10485760"
RadEditor1.ImageManager.SearchPatterns = New String() {"*.jpg", "*.png", "*.gif"}
RadEditor1.ImageManager.ViewPaths = New String() {"~/medlemsidor/pressbilder/" & UserFolder & "/bilder/"}
RadEditor1.ImageManager.UploadPaths = New String() {"~/medlemsidor/pressbilder/" & UserFolder & "/bilder/"}
RadEditor1.ImageManager.DeletePaths = New String() {"~/medlemsidor/pressbilder/" & UserFolder & "/bilder/"}
RadEditor1.ImageManager.EnableAsyncUpload = True
RadEditor1.ImageManager.ContentProviderTypeName = GetType(ChangeImageSizeProvider).AssemblyQualifiedName


Rumen
Telerik team
 answered on 26 Jan 2017
2 answers
324 views

Hi, I am using the built-in Excel exporting feature, but sometimes I get this error

We found a problem with this formula. Try clicking Insert Function on the Formulas tab to fix it.\n\nNot trying to type a formula? When the first character is an equal (=) or minus (-) sign, RadSpreadsheet thinks it is a formula. For example, when you type =1+1 the cell shows 2.

Since the cells content depend on the database, I cannot be sure there are no formula-like characters in some cells.

How can I catch this exception? Or, better yet, how can I manipulate the data in order for the Excel exporting to not complain?

Thanks

Luca

Pavlina
Telerik team
 answered on 26 Jan 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?