Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
158 views
I have a dynamically generated RadGrid created during Page_Init and added to a placeholder control on the page. For some reason if I set a SkinID to our custom skin, it does not take it. The RadGrid renders with the RadGrid_default skin styles instead. Is there something I am missing? Note: a static grid on the same page does apply the skin correctly.

Thanks
Shanthala
Mira
Telerik team
 answered on 09 Oct 2009
1 answer
82 views
when i set AccessKey to the tab and set it to disabled i get an error after i use this shortcut (sth like):  preventDefault is empty or it is not an object

Paul
Telerik team
 answered on 09 Oct 2009
3 answers
191 views
hi,    

    We have a requirement. There are 30 bound columns in the rad grid and 2 of them are freezed. All the column widths are set using  headerstyle width property and we have even set the resizing property of radgrid. Everything works fine. But when any column is resized the freezed columns behaviour is weird, its size increases once horizontal scroll is done. Freezing and resizing doesnt work  properly. plz find the code below. any inputs will be appreciated

<

 

telerik:RadGrid runat="server" ID="dummy" AutoGenerateColumns="true"

 

 

Visible="false" OnColumnCreated="dummy_ColumnCreated"  HeaderStyle-Width="200" HeaderStyle-Wrap="false" >

 

 

<MasterTableView TableLayout="Fixed" CellSpacing="1"/>

 

 

<ClientSettings>

 

 

<ClientEvents OnRowSelected="RowSelectedOU" />

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="true" FrozenColumnsCount="1" ScrollHeight="275px">

 

 

</Scrolling>

 

 

<Selecting AllowRowSelect="true" />

 

 

<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowRowResize="false" EnableRealTimeResize="false" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

Regards,
Srikanth

 

Pavlina
Telerik team
 answered on 09 Oct 2009
1 answer
65 views
hi,

I'm having a checkboxlist which is binding from the db, it has the following values

1.family
2. friends
3. business

on selecting the checkbox the scheduler populates with the appropriate values, so  what i want is i want to give different colors to these three for eg for family -blue , friends-green, business - orange
so that we can identify
 
any idea

regards
chinnu
Schlurk
Top achievements
Rank 2
 answered on 09 Oct 2009
1 answer
78 views

 

I have RadGrid in web application, Paging Working Perfectly when pagerStyle Mode is set to "NumericPages" and "Advanced"

When Mode is

1) set  to ="NextPrevAndNumeric"  Paging is not working properly.  i.e.,  I have total 4 pages is in grid.  When I click Page 2, data on page 2 displayed properly.  When I click Page 3.  Data on page 4 is displayed.  Now if i press Page 2 then Data on Page 3 is displayed.  when I click Page 1 then data on page 2 is dispalyed.

I have binded datagrid on pageload  also I have Grid's pageIndexChanged Method.  When I remove Pageindex changed mehtod then also same issue occurs..

2) set mode to = "NextPrev"   then also paging have issues.  i.e.  I have total 4 pages is in grid, when I click "next" data on page 2 displayed.   Then again if you click "Next"  data on page 1 displayed instead of data on page 3.

Kindly suggest what is the reason behind this odd behavior ??

Pavlina
Telerik team
 answered on 09 Oct 2009
4 answers
315 views

I've tested under IE6, 7, 8, without issues.
However under current Windows releases of Chrome and Safari, the radWindow title appears for a moment when the window is created and then immediately disappears after the passed form is loaded.

The simplest example:

var wnd = radopen("MyDialog.aspx?", null);  
wnd.set_title("My RadWindow Caption");  
 
I've also tested with RadWindow using:
var oWnd = $find("<%= RadWindow1.ClientID %>");  
oWnd.set_title("My Dialog Title"); 

with same results.
However, if I pass a URL (http://www.telerik.com) vs a relative webform, the caption is not cleared.
Karen
Top achievements
Rank 1
 answered on 09 Oct 2009
3 answers
112 views
I have an issue with the Upload progress monitor. It works fine when I leave out my tracking information from the global.asax file.

If I put the following in my global.asax, I get the error asking if I registered the RadUploadProgressHandler in the web.config.

Why????   If I comment out everything from my PreRequestHandler, the progress monitor works fine...

In my global asax...

Protected Sub Application_PreRequestHandlerExecute()
 If HttpContext.Current.User.Identity.IsAuthenticated Then
    Dim MyConnection As SqlConnection
   
       MyConnection = New SqlConnection("server=kkkkkkk;" _
       & "database=kkkkkk;User ID=kkkk;Password=kkkkkkkkkkkk;")
     
       Dim myCommand As SqlCommand
       Dim insertCmd As String
     
       insertCmd = "insert into PageLog (PageUI, PageUD, PageIP, PageAG, PageBW, PageUL, PageUR, PageDT) values ('" & Session("UserID") & "', '" & Session("LoginID") & "', '" & Request.UserHostAddress & "', '" & Request.UserAgent & "', '" & Request.Browser.Browser & "', '" & Request.Path & "', '" & Request.RawUrl & "', getdate());"
   
       myCommand = New SqlCommand(insertCmd, MyConnection)
       myCommand.Connection.Open()
       myCommand.ExecuteNonQuery()
       myCommand.Connection.Close()
 End If
End Sub
Rumen
Telerik team
 answered on 09 Oct 2009
2 answers
74 views
At first, I created (as VS defines) an ASP.NET web application.  I added the controls to my pages and defined custom CSS for the controls.

Now, however, as the applcation has grown, I created (again as VS defines) an ASP.NET web site.  I, then, created an additional project for my classes.  I compile the classes, of course, and place the dll in the bin folder.  My pages use the compiled classes as the code-behind.  However, now, the Telerik controls don't use the CSS.

I've tried two different ways: 1)Placed the css files in the actual web site itself and referenced them through literal paths within the page headers. 2) I've also tried using them as Embedded resources and referenced them in the page headers as a WebResource.  Neither works.

What do I have to do to get the controls to find/use the CSS.  If I type the CSS path or WebResource URL in my browser, then the CSS shows fine.

Thanks,
Joshua
Iana Tsolova
Telerik team
 answered on 09 Oct 2009
1 answer
610 views
Hi, I try to use the RadMaskedTextbox, but I run into several issues. Because I use several RadMaskedTextboxes in one user control and this user control is rendered 4 times on my page, I have quit a view of these TextBoxes. But for starters, I try to add a onClientside Blur event. This I do in the codebehind (page_Load event):

 tbxWachttijdEind.ClientEvents.OnBlur = "CalcWachtBlokken('" + tbxWachttijdStart.ClientID + "','" + tbxWerkTijdEind.ClientID + "')"; 

Oh, BTW, I use these textboxes to have the user only input a valid time between 0 and 23 and 15,30 or45 minutes. This is working perfectly.
So what I try to do is calculate the time difference between two times. The problem is the onblur event does not fire when I leave the textbox, but i fires on page_load. 

An other thing is, I cannot get the values of the controls in my js-code. I tried the get_value() method, but I just get an js-errormessage.

Any suggestions?

Never mind about the get_value issue. I used the $get(objectId) function, where I should use the $find(objectId) function. But the main problem still exists. OnBlur firing when the page load instead of when leaving the textbox.
Tsvetoslav
Telerik team
 answered on 09 Oct 2009
2 answers
103 views
Hello,
I have several tabs. On each tab I placed my control. When I change date on first tab I would like to refresh grid on second tab. Is is possible?
Code looks like:
    <telerik:RadTabStrip ID="CtrlTabStripAccount" CausesValidation="false"  OnClientTabSelecting="onTabSelecting"
        runat="server" MultiPageID="CtrlPageMultiAccount" ShowBaseLine="true"  Skin="Vista"
        AutoPostBack="true">
        <Tabs>
            <telerik:RadTab runat="server" Text="KanaÅ‚y dostÄ™py" Selected="true" ImageUrl="~/App_Themes/EcodTheme/Icons/inbox.gif" />
            <telerik:RadTab runat="server" Text="Zmiana hasÅ‚a" ImageUrl="~/App_Themes/EcodTheme/Icons/outbox.gif" />
            <telerik:RadTab runat="server" Text="ZarzÄ…dzanie adresami" ImageUrl="~/App_Themes/EcodTheme/Icons/relations.gif" />
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="CtrlPageMultiAccount" runat="server" SelectedIndex="0"
        RenderSelectedPageOnly="true">
        <!-- my control 1 -->
        <telerik:RadPageView ID="CtrlAccessChannels" runat="server" Selected="true">
            <div class="BoxOutermost">
                <ecod:Channels ID="CtrlChannels" runat="server" />
            </div>
        </telerik:RadPageView>
        <!-- my control 2-->
        <telerik:RadPageView ID="CtrlPassword" runat="server" Selected="true">
            <div class="BoxOutermost">
                <ecod:Password ID="ChPassword" runat="server" />
            </div>
        </telerik:RadPageView>
        <!-- my control 3-->
        <telerik:RadPageView ID="CtrlAddresses" runat="server" Selected="true">
            <div class="BoxOutermostBig">
                <ecod:Addresses ID="Addresses" runat="server" />
            </div>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
Paul
Telerik team
 answered on 09 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?