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

Can anyone recommend a decent tool for working with the sprite images and for that matter what would be very useful is a description of what each image in the various sprite files is for. ie, menu hovered background starts at 0,0 ends at 16,200.

I'm working on increasing the height of images in the RadMenu sprite file and am hitting two issues, firstly trawling through the css to work out what I need to change and secondly once I know that editing the images themselves while maintaining one file will be tricky.

Any thoughts?

Cheers,

Jon
Kamen Bundev
Telerik team
 answered on 12 Nov 2009
1 answer
73 views
Hi All,

Have a RadGrid.

I have set Enable="false"

But the pager works. How to stop it.

                   
function DisableGrid(disable)  
    {        
        document.getElementById("RadGridEarnings").disabled = disable;  
        document.getElementById("RadGridDeduction").disabled = disable;          
    }  
<telerik:RadGrid ID=
"RadGridEarnings" runat="server" AutoGenerateColumns="true" Height="202px" 
                        Width="180px"  AllowPaging="true" Skin="Vista" DataSourceID="dsiSmartEarn" 
                        OnItemDataBound="RadGridEarnings_ItemDataBound" >  
                        <PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="{4}" AlwaysVisible="true" />  
                        <MasterTableView AutoGenerateColumns="false" PageSize="7" DataSourceID="dsiSmartEarn" CommandItemDisplay="None" 
                            Width="100%" ClientDataKeyNames="EDShortDesc">  
                            <Columns>  
                                <telerik:GridBoundColumn UniqueName="EDCode" DataField="EDCode" HeaderText="EDCode" 
                                    Visible="false" ReadOnly="true">  
                                </telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn UniqueName="EDShortDesc" DataField="EDShortDesc" HeaderText="Earning">  
                                </telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn UniqueName="Formula" DataField="Formula" HeaderText="Formula">  
                                </telerik:GridBoundColumn>  
                            </Columns>  
                        </MasterTableView>  
                        <ClientSettings>  
                            <ClientEvents OnRowDblClick="EarningDblClick" />  
                        </ClientSettings>  
                    </telerik:RadGrid> 


I have made the Enable= false in javascript.

But only the pager works. Is there any option to stop it.

-Anto
Dimo
Telerik team
 answered on 12 Nov 2009
1 answer
139 views
Question:
    Is there a way to customize the icons so I can allow only 2 settings, like ITS GOOD or ITS  BAD, like thumbs UP or thumbs DOWN?  I can see we can set it to only 2 options, but then I'm getting 2 hearts or stars.  Can I set it to a custom graphic for each choice, and then calculate a score of +1, -1 or 0 for no selection? 

Commentary:
Thanks for adding this control, its a very cool control when doing some UI like perhaps Netflix.  However, am I the only one who feels like a scale of 1-5 is a bit Web 1.0?  What's hot right now is a digg.com style digg / bury button.  For a lot of social media sites like reddit etc, you really just want to either promote content or demote content, so when you crowd source users have less friction.  They can think less; it's generally good or generally not good, rather than rating how good it is.

Tsvetie
Telerik team
 answered on 12 Nov 2009
1 answer
118 views
Hi,
i have a problem with RadGrid ,
I have a RadGrid with Two keys "TID,FID" and client side row selection

when i select a row and call RadGrid1.SelectedValue function only i see "TID" field value
please note me how i can Retrieve all keys values

Thanks
Akhavan
Princy
Top achievements
Rank 2
 answered on 12 Nov 2009
13 answers
298 views
Hello,

I try to get decorated DropDownList value after change.
I'm using jQuery to add event like this

var select = $('#<%= ddlControl.ClinetID %>');
select.change(function() {
    alert($(this).val());
});

event is trigered correctly, but value is always 0. I did also inspect <select> in DOM inspector, and there is also always value = 0.

So, how to get this value if it's not changing?

Gr,
Pawel
Georgi Tunev
Telerik team
 answered on 12 Nov 2009
1 answer
113 views
Everytime that we click an image button inside an RadAjaxPanel in Firefox we get the same error:

"Input string was not in a correct format."

And the event onClick is not executed

In IE works fine.

We are using Q3 2009.

Thanks,

Ricard.
Sebastian
Telerik team
 answered on 12 Nov 2009
6 answers
145 views

Hello Everyone; this is Harshad; & Im completely new to Telerik Family!!... (In fact I'm completely new to the World of Web Development, so I might ask few stupid questions out here....  ;D !!)..

Alright; so; currently I'm working on to develop a Web Application for Shop-Floor Scheduling Software, where in one can view the task allocated for either an employee or a machine.

I'm thinking of taking Telerik Scheduler as a main tool for Drawing the required Gantts of the task. But Gantts being the basic & the most important feature of application I need a tool which Very easy to operate & very much flexible as my Task Start & End Time Calculations are going to be fine tuned to Minute level & most important I need a stable tool.

Please advice me whether I should continue using Telerik Scheduler control or not.


Thanks & Regards
T. Tsonev
Telerik team
 answered on 12 Nov 2009
1 answer
145 views
Hi

I have one Editor.aspx page which contains Rad Editor and Button. I write some text in editor (ex: Text will come here) and put the cursor some where in between ("come" and "here").
Now I click on Button which will open Popup contains Images. I will select Image from popup and will close pop up. once I close popup my original page Editor.aspx will get refreshed again and will call onClientLoad function of editor again.

Now on that page I still get my corsor position in number (ex: 14 as per above case). but I want to know how can I insert text/html at position 14. ?

It can add first image correctly. But when I am trying to add another image in same editor using same process mentioned above , it breakes my existing image code and thats why I am not getting my previous image.

Do you have any inbuild function for editor, so I can pass possition and add text/html at that position.
my code :

 

<telerik:RadEditor ID="RadEditor1" runat="server" Height="600px" ImageManager-EnableImageEditor="false" 
 AllowScripts="true" OnClientLoad="InsertText"></telerik:RadEditor>
<asp:Button ID="Button1" runat="server" Text="Image Gallery AJAX" OnClick="Button1_Click"/>
< script type="text/javascript">
 function InsertText()
 {
var intCPos = GetCursorPosition();
 if (intCPos != 0)
 {

     document.getElementById('hfCPOS').value = intCPos;
}

if(document.getElementById('myValue').value != "")
{
var pos = document.getElementById('hfCPOS').value; //gives 14
 var editorr = $find("<%=RadEditor1.ClientID%>"); //get a reference to the editor
 var strIMG = document.getElementById('myValue').value; // myvalue = <img id='123' src='123.gif' alt=''/>
 var strValue = editorr.get_html(true);
 strValue = strValue.substring(0,pos)+ strIMG + strValue.substring(pos)
//editorr.pasteHtml(strValue);
 
editorr.set_html(strValue);
 document.getElementById('myValue).value = "";
 document.getElementById('hfCPOS').value = "";
 }

}
 </script>

o/p (after adding 1st image)
Text Will Come<img alt="" id="parts_coupon_01.jpg" src="http://192.168.3.27:88/Files/Images/2/gallery/Coupons//parts_coupon_01.jpg" runat="server" /> Here.

o/p (after adding 2nd image)
now my cursor is between "Text Will Come Here " - 'e' and 'r' of Here
Text Will Come<im<img id="service_coupon_02.jpg" runat="server" src="http://192.168.3.27:88/Files/Images/2/gallery/Coupons//service_coupon_02.jpg" />g alt="" id="parts_coupon_01.jpg" src="http://192.168.3.27:88/Files/Images/2/gallery/Coupons//parts_coupon_01.jpg" runat="server" /&gt; Here.

it breaks my code. need help!!!!!!

thanks
DIpsa

 

 

 

Rumen
Telerik team
 answered on 12 Nov 2009
1 answer
88 views
Hi

When I upgraded to the latest version (2009.3.1103.35) I started getting JavaScript errors in some of my pages

I realized that the problem is with the get_value() method because it is returning a null when no value is selected whereas it used to return a blank string before

Of course I can fix my code around this problem but I wish there would not be such changes in the future

Thanks
Simon
Telerik team
 answered on 12 Nov 2009
1 answer
237 views
Hi

I have one Editor.aspx page which contains Rad Editor and Button. I write some text in editor (ex: Text will come here) and put the cursor some where in between ("come" and "here").
Now I click on Button which will open Popup contains Images. I will select Image from popup and will close pop up. once I close popup my original page Editor.aspx will get refreshed again and will call onClientLoad function of editor again.

Now on that page I still get my corsor position in number (ex: 14 as per above case). but I want to know how can I insert text/html at position 14. ?

It can add first image correctly. But when I am trying to add another image in same editor using same process mentioned above , it breakes my existing image code and thats why I am not getting my previous image.

Do you have any inbuild function for editor, so I can pass possition and add text/html at that position.
my code :

 

<telerik:RadEditor ID="RadEditor1" runat="server" Height="600px" ImageManager-EnableImageEditor="false" 
 AllowScripts="true" OnClientLoad="InsertText"></telerik:RadEditor>
<asp:Button ID="Button1" runat="server" Text="Image Gallery AJAX" OnClick="Button1_Click"/>
< script type="text/javascript">
 function InsertText()
 {
var intCPos = GetCursorPosition();
 if (intCPos != 0)
 {

     document.getElementById('hfCPOS').value = intCPos;
}

if(document.getElementById('myValue').value != "")
{
var pos = document.getElementById('hfCPOS').value; //gives 14
 var editorr = $find("<%=RadEditor1.ClientID%>"); //get a reference to the editor
 var strIMG = document.getElementById('myValue').value; // myvalue = <img id='123' src='123.gif' alt=''/>
 var strValue = editorr.get_html(true);
 strValue = strValue.substring(0,pos)+ strIMG + strValue.substring(pos)
//editorr.pasteHtml(strValue);
 
editorr.set_html(strValue);
 document.getElementById('myValue).value = "";
 document.getElementById('hfCPOS').value = "";
 }

}
 </script>

o/p (after adding 1st image)
Text Will Come<img alt="" id="parts_coupon_01.jpg" src="http://192.168.3.27:88/Files/Images/2/gallery/Coupons//parts_coupon_01.jpg" runat="server" /> Here.

o/p (after adding 2nd image)
now my cursor is between "Text Will Come Here " - 'e' and 'r' of Here
Text Will Come<im<img id="service_coupon_02.jpg" runat="server" src="http://192.168.3.27:88/Files/Images/2/gallery/Coupons//service_coupon_02.jpg" />g alt="" id="parts_coupon_01.jpg" src="http://192.168.3.27:88/Files/Images/2/gallery/Coupons//parts_coupon_01.jpg" runat="server" /&gt; Here.

it breaks my code. need help!!!!!!

thanks
DIpsa

 

 

 

 

 

 

Rumen
Telerik team
 answered on 12 Nov 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?